Prevent the cursor from jumping around on gl*

This commit is contained in:
EinfachToll
2013-10-29 13:10:16 +01:00
parent a389d7ebd7
commit e9b1b66807
2 changed files with 7 additions and 7 deletions

View File

@ -826,8 +826,8 @@ function! s:set_new_mrkr(item, new_mrkr) "{{{
endif
endfunction "}}}
function! vimwiki#lst#change_marker(line1, line2, new_mrkr) "{{{
let cur_col_from_eol = col("$") - col("'^")
function! vimwiki#lst#change_marker(line1, line2, new_mrkr, mode) "{{{
let cur_col_from_eol = col("$") - (a:mode == "i" ? col("'^") : col('.'))
let new_mrkr = a:new_mrkr
let cur_ln = a:line1
while 1