Skip to content

Commit

Permalink
Use normal! instead of normal.
Browse files Browse the repository at this point in the history
This avoids remapping the commands by custom user mappings.
infokiller committed Sep 27, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
universalmind303 Cory Grinstead
1 parent 5489d33 commit ef019d6
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autoload/ferret/private.vim
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ function! s:delete(first, last)
endif

" Move focus back to listing.
execute "normal \<C-W>\<C-P>"
execute "normal! \<C-W>\<C-P>"
endfunction

" Returns 1 if we should use Neovim's |job-control| features.
8 changes: 4 additions & 4 deletions plugin/ferret.vim
Original file line number Diff line number Diff line change
@@ -850,10 +850,10 @@ command! -bar Largs execute 'args' ferret#private#args('location')
let s:commands=get(g:, 'FerretQFCommands', 1)
if s:commands
" Keep quickfix result centered, if possible, when jumping from result to result.
cabbrev <silent> <expr> cn ((getcmdtype() == ':' && getcmdpos() == 3) ? 'cn <bar> normal zz' : 'cn')
cabbrev <silent> <expr> cnf ((getcmdtype() == ':' && getcmdpos() == 4) ? 'cnf <bar> normal zz' : 'cnf')
cabbrev <silent> <expr> cp ((getcmdtype() == ':' && getcmdpos() == 3) ? 'cp <bar> normal zz' : 'cp')
cabbrev <silent> <expr> cpf ((getcmdtype() == ':' && getcmdpos() == 4) ? 'cpf <bar> normal zz' : 'cpf')
cabbrev <silent> <expr> cn ((getcmdtype() == ':' && getcmdpos() == 3) ? 'cn <bar> normal! zz' : 'cn')
cabbrev <silent> <expr> cnf ((getcmdtype() == ':' && getcmdpos() == 4) ? 'cnf <bar> normal! zz' : 'cnf')
cabbrev <silent> <expr> cp ((getcmdtype() == ':' && getcmdpos() == 3) ? 'cp <bar> normal! zz' : 'cp')
cabbrev <silent> <expr> cpf ((getcmdtype() == ':' && getcmdpos() == 4) ? 'cpf <bar> normal! zz' : 'cpf')
endif

""

0 comments on commit ef019d6

Please sign in to comment.