Browse Source

Remove useless concatenation

Marco Hinz 12 years ago
parent
commit
fd7c52a05b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      autoload/startify.vim

+ 2 - 2
autoload/startify.vim

@@ -275,7 +275,7 @@ function! s:show_sessions(cnt) abort
     let index = s:get_index_as_string(idx)
 
     call append('$', '   ['. index .']'. repeat(' ', (3 - strlen(index))) . fnamemodify(sfiles[i], ':t:r'))
-    execute 'nnoremap <buffer> '. index .' :source '. fnameescape(sfiles[i]) .'<cr>'
+    execute 'nnoremap <buffer>' index ':source' fnameescape(sfiles[i]) '<cr>'
   endfor
 
   return idx
@@ -291,7 +291,7 @@ function! s:show_bookmarks(cnt) abort
       let index = s:get_index_as_string(cnt)
 
       call append('$', '   ['. index .']'. repeat(' ', (3 - strlen(index))) . fname)
-      execute 'nnoremap <buffer> '. index .' :edit '. fnameescape(fname) . s:chdir
+      execute 'nnoremap <buffer>' index ':edit' fnameescape(fname) s:chdir
     endfor
   endif