Skip to content

Commit

Permalink
showcmd ate my visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
dahu committed Oct 13, 2012
1 parent 279c8ca commit 7291943
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugin/fanfingtastic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ function! s:set_find_char(args, cmd, a) "{{{2
endif
"call inputrestore()
if showcmd
call feedkeys((v:operator ==# 'c' ? "\<CR>" : "\<Esc>"), 'n')
"call feedkeys((v:operator ==# 'c' ? "\<CR>" : "\<Esc>"), 'n')
call feedkeys("\<CR>", 'n')
endif
endfunction

Expand Down
7 changes: 6 additions & 1 deletion test/002_visual_f.vim
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
call vimtest#StartTap()
call vimtap#Plan(43) " <== XXX Keep plan number updated. XXX
call vimtap#Plan(49) " <== XXX Keep plan number updated. XXX
"call vimtap#Diag('Test')
append
abc abc abc abc abc abc
abcd abcd abcd abcd abcd
abcde
one two three four five six
.

" run these tests twice; the first time without f,ing loaded
Expand All @@ -26,6 +27,10 @@ for loop in range(2)
call LineColPos(1, 3)
call VisualMatch('c abc abc abc abc')

normal 4G$hviwoF ;y
call LineColPos(4, 19)
call VisualMatch(' five six')

runtime plugin/fanfingtastic.vim
endfor

Expand Down

0 comments on commit 7291943

Please sign in to comment.