Skip to content

Commit 2e62cc3

Browse files
committed
use g:unimpaired_prevnext
This is especially important for repeating [q/]q across buffers.
1 parent 5bc3b40 commit 2e62cc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/unimpaired.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ call s:MapNextFamily('t','t')
6161

6262
" Handle previous/next movements, storing the last used one.
6363
function! s:prevnext(cmd, dir, prevnext) abort
64-
let b:unimpaired_prevnext = a:prevnext
64+
let g:unimpaired_prevnext = a:prevnext
6565
let cmd = (v:count ? v:count : '').a:cmd.a:dir
6666
if a:cmd ==# 'l' || a:cmd ==# 'c'
6767
let cmd .= '|normal zv'
6868
endif
6969
return cmd
7070
endfunction
7171
function! s:last_prevnext_cmd(dir) abort
72-
let prevnext = get(b:, 'unimpaired_prevnext', [])
72+
let prevnext = get(g:, 'unimpaired_prevnext', [])
7373
if empty(prevnext)
7474
if &diff
7575
let m = 'c'

0 commit comments

Comments
 (0)