fix: scroll misbehaving + fixed jump to middle (#547)

* fix: scroll misbehaving + fixed jump to middle

* add test

* fixx

* fix nil
This commit is contained in:
elianiva
2021-02-24 21:40:11 +07:00
committed by GitHub
parent b5051eeb01
commit 8b3d08d7a6
4 changed files with 23 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ local set = setmetatable({}, {
set.shift_selection = function(prompt_bufnr, change)
local count = vim.v.count
count = count == 0 and 1 or count
count = a.nvim_get_mode().mode == "n" and count or 1
action_state.get_current_picker(prompt_bufnr):move_selection(change * count)
end