mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-25 03:02:21 +08:00
fix(iedit): fix cursor_stack index checking
This commit is contained in:
parent
4ff3eaf3e2
commit
30137f4c64
@ -532,7 +532,7 @@ function! s:handle_normal(char) abort
|
|||||||
let s:index -= 1
|
let s:index -= 1
|
||||||
endif
|
endif
|
||||||
let s:cursor_stack[s:index].active = 1
|
let s:cursor_stack[s:index].active = 1
|
||||||
silent! call s:highlight_cursor()
|
silent! call s:highlight_cursor()
|
||||||
call cursor(s:cursor_stack[s:index].lnum,
|
call cursor(s:cursor_stack[s:index].lnum,
|
||||||
\ s:cursor_stack[s:index].col + len(s:cursor_stack[s:index].begin))
|
\ s:cursor_stack[s:index].col + len(s:cursor_stack[s:index].begin))
|
||||||
elseif a:char ==# 'n'
|
elseif a:char ==# 'n'
|
||||||
@ -739,7 +739,9 @@ function! s:parse_symbol(begin, end, symbol, use_expr, selectall) abort
|
|||||||
let s:index = 0
|
let s:index = 0
|
||||||
call cursor(s:cursor_stack[0].lnum, s:cursor_stack[0].col)
|
call cursor(s:cursor_stack[0].lnum, s:cursor_stack[0].col)
|
||||||
endif
|
endif
|
||||||
let s:cursor_stack[s:index].active = 1
|
if !empty(s:cursor_stack)
|
||||||
|
let s:cursor_stack[s:index].active = 1
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user