File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
" Script Name: mark.vim
2
- " Version: 1.1.5
3
- " Last Change: September 20 , 2005
2
+ " Version: 1.1.7
3
+ " Last Change: September 30 , 2005
4
4
" Author: Yuheng Xie <[email protected] >
5
5
" Contributor: Luc Hermitte
6
6
"
@@ -303,7 +303,7 @@ function! s:CurrentMark()
303
303
let b = match (line , b: mwWord {i }, start )
304
304
let e = matchend (line , b: mwWord {i }, start )
305
305
if b < col (" ." ) && col (" ." ) <= e
306
- let s: current_mark_position = line . " _" . b
306
+ let s: current_mark_position = line ( " . " ) . " _" . b
307
307
return b: mwWord {i }
308
308
endif
309
309
let start = e
@@ -323,10 +323,11 @@ function! s:SearchCurrentMark(...) " SearchCurrentMark(flags)
323
323
let w = s: CurrentMark ()
324
324
if w != " "
325
325
let p = s: current_mark_position
326
- while p == s: current_mark_position
326
+ call search (w , flags)
327
+ call s: CurrentMark ()
328
+ if p == s: current_mark_position
327
329
call search (w , flags)
328
- call s: CurrentMark ()
329
- endwhile
330
+ endif
330
331
return 1
331
332
else
332
333
return 0
You can’t perform that action at this time.
0 commit comments