浏览代码

Do not alter registers when changing batchmode

Fixes https://github.com/mhinz/vim-startify/issues/467
Marco Hinz 4 年之前
父节点
当前提交
6654e37a1e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -919,13 +919,13 @@ function! startify#set_mark(type, ...) abort
   if entry.marked && index[0] == a:type
     let entry.cmd = 'edit'
     let entry.marked = 0
-    execute 'normal! ci]'. entry.index
+    execute 'normal! "_ci]'. entry.index
   else
     let entry.cmd = default_cmds[a:type]
     let entry.marked = 1
     let entry.tick = b:startify.tick
     let b:startify.tick += 1
-    execute 'normal! ci]'. repeat(a:type, len(index))
+    execute 'normal! "_ci]'. repeat(a:type, len(index))
   endif
 
   setlocal nomodifiable nomodified