Просмотр исходного кода

Use feedkeys() properly #2

With mode 't' enabled, you'd get a timeout if you had indices 1 and 11 and
keyed in '1'.
Marco Hinz 10 лет назад
Родитель
Сommit
51f64a28e8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -370,7 +370,7 @@ function! startify#open_buffers()
   " no markers found; open a single buffer
   else
     try
-      call feedkeys(expand('<cword>'), 't')
+      call feedkeys(expand('<cword>'))
     catch /E832/  " don't ask for undo encryption key twice
       edit
     catch /E325/  " swap file found
@@ -567,7 +567,7 @@ function! s:set_mappings() abort
   nnoremap <buffer><silent> t             :call <sid>set_mark('T')<cr>
   nnoremap <buffer><silent> v             :call <sid>set_mark('V')<cr>
   nnoremap <buffer><silent> <cr>          :call startify#open_buffers()<cr>
-  nnoremap <buffer><silent> <2-LeftMouse> :call feedkeys(expand('<cword>'), 't')<cr>
+  nnoremap <buffer><silent> <2-LeftMouse> :call feedkeys(expand('<cword>'))<cr>
   nnoremap <buffer><silent> q             :call <sid>close()<cr>
 
   " Prevent 'nnoremap j gj' mappings, since they would break navigation.