Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 1.41

FIX: Directly ring the bell to avoid problems when running under :silent!.
  • Loading branch information...
commit 34a6d172744916f6e6a0c2d4a675db69a56932fd 1 parent 433018f
Ingo Karkat authored committed
View
10 autoload/CountJump.vim
@@ -2,12 +2,14 @@
"
" DEPENDENCIES:
"
-" Copyright: (C) 2009-2010 Ingo Karkat
+" Copyright: (C) 2009-2011 Ingo Karkat
" The VIM LICENSE applies to this script; see ':help copyright'.
"
" Maintainer: Ingo Karkat <ingo@karkat.de>
"
" REVISION DATE REMARKS
+" 1.41.012 13-Jun-2011 FIX: Directly ring the bell to avoid problems
+" when running under :silent!.
" 1.30.011 19-Dec-2010 Removed return value of jump position from
" CountJump#CountJump() and CountJump#JumpFunc();
" it isn't needed, as these functions are
@@ -90,11 +92,7 @@ function! CountJump#CountSearch( count, searchArguments )
endif
" Ring the bell to indicate that no further match exists.
- "
- " As long as this mapping does not exist, it causes a beep in both
- " normal and visual mode. This is easier than the customary "normal!
- " \<Esc>", which only works in normal mode.
- execute "normal \<Plug>RingTheBell"
+ execute "normal! \<C-\>\<C-n>\<Esc>"
return l:matchPosition
endif
View
10 autoload/CountJump/Region.vim
@@ -2,12 +2,14 @@
"
" DEPENDENCIES:
"
-" Copyright: (C) 2010 Ingo Karkat
+" Copyright: (C) 2010-2011 Ingo Karkat
" The VIM LICENSE applies to this script; see ':help copyright'.
"
" Maintainer: Ingo Karkat <ingo@karkat.de>
"
" REVISION DATE REMARKS
+" 1.41.009 13-Jun-2011 FIX: Directly ring the bell to avoid problems
+" when running under :silent!.
" 1.40.008 20-Dec-2010 Jump functions again return position (and
" actual, corrected one for a:isToEndOfLine).
" Though the position is not used for motions, it
@@ -63,11 +65,7 @@
function! s:DoJump( position, isToEndOfLine )
if a:position == [0, 0]
" Ring the bell to indicate that no further match exists.
- "
- " As long as this mapping does not exist, it causes a beep in both
- " normal and visual mode. This is easier than the customary "normal!
- " \<Esc>", which only works in normal mode.
- execute "normal \<Plug>RingTheBell"
+ execute "normal! \<C-\>\<C-n>\<Esc>"
else
call setpos('.', [0] + a:position + [0])
if a:isToEndOfLine
View
3  doc/CountJump.txt
@@ -194,6 +194,9 @@ IDEAS *CountJump-ideas*
==============================================================================
HISTORY *CountJump-history*
+1.41 13-Jun-2011
+- FIX: Directly ring the bell to avoid problems when running under :silent!.
+
1.40 20-Dec-2010
- ENH: Added CountJump#Region#TextObject#Make() to easily define text objects
for regions.
Please sign in to comment.
Something went wrong with that request. Please try again.