Skip to content

Commit

Permalink
clear range in plug map after entering normal mode
Browse files Browse the repository at this point in the history
This closes #50.
  • Loading branch information
ap committed Feb 18, 2018
1 parent ca73a4e commit 3ddbc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/buftabline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ autocmd BufDelete * call buftabline#update(str2nr(expand('<abuf>')))

for s:n in range(1, g:buftabline_plug_max) + ( g:buftabline_plug_max > 0 ? [-1] : [] )
let s:b = s:n == -1 ? -1 : s:n - 1
execute printf("noremap <silent> <Plug>BufTabLine.Go(%d) :exe 'b'.get(buftabline#user_buffers(),%d,'')<cr>", s:n, s:b)
execute printf("noremap <silent> <Plug>BufTabLine.Go(%d) :<C-U>exe 'b'.get(buftabline#user_buffers(),%d,'')<cr>", s:n, s:b)
endfor
unlet! s:n s:b

Expand Down

0 comments on commit 3ddbc98

Please sign in to comment.