Do not alter registers when changing batchmode
Fixes https://github.com/mhinz/vim-startify/issues/467
This commit is contained in:
parent
f2fc11844b
commit
6654e37a1e
|
@ -919,13 +919,13 @@ function! startify#set_mark(type, ...) abort
|
||||||
if entry.marked && index[0] == a:type
|
if entry.marked && index[0] == a:type
|
||||||
let entry.cmd = 'edit'
|
let entry.cmd = 'edit'
|
||||||
let entry.marked = 0
|
let entry.marked = 0
|
||||||
execute 'normal! ci]'. entry.index
|
execute 'normal! "_ci]'. entry.index
|
||||||
else
|
else
|
||||||
let entry.cmd = default_cmds[a:type]
|
let entry.cmd = default_cmds[a:type]
|
||||||
let entry.marked = 1
|
let entry.marked = 1
|
||||||
let entry.tick = b:startify.tick
|
let entry.tick = b:startify.tick
|
||||||
let b:startify.tick += 1
|
let b:startify.tick += 1
|
||||||
execute 'normal! ci]'. repeat(a:type, len(index))
|
execute 'normal! "_ci]'. repeat(a:type, len(index))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal nomodifiable nomodified
|
setlocal nomodifiable nomodified
|
||||||
|
|
Loading…
Reference in a new issue