Skip to content

Commit 5cc4fb2

Browse files
Yuheng Xievim-scripts
Yuheng Xie
authored andcommitted
Version 1.1.7: bug fix again
1 parent fc87ef1 commit 5cc4fb2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

plugin/mark.vim

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" 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
44
" Author: Yuheng Xie <[email protected]>
55
" Contributor: Luc Hermitte
66
"
@@ -303,7 +303,7 @@ function! s:CurrentMark()
303303
let b = match(line, b:mwWord{i}, start)
304304
let e = matchend(line, b:mwWord{i}, start)
305305
if b < col(".") && col(".") <= e
306-
let s:current_mark_position = line . "_" . b
306+
let s:current_mark_position = line(".") . "_" . b
307307
return b:mwWord{i}
308308
endif
309309
let start = e
@@ -323,10 +323,11 @@ function! s:SearchCurrentMark(...) " SearchCurrentMark(flags)
323323
let w = s:CurrentMark()
324324
if w != ""
325325
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
327329
call search(w, flags)
328-
call s:CurrentMark()
329-
endwhile
330+
endif
330331
return 1
331332
else
332333
return 0

0 commit comments

Comments
 (0)