Skip to content

Commit

Permalink
Fix the mapping: <Plug>(vimshell_insert_last_word)
Browse files Browse the repository at this point in the history
  • Loading branch information
bohrshaw committed Aug 27, 2015
1 parent 05c9001 commit 373a543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vimshell/mappings.vim
Expand Up @@ -420,7 +420,7 @@ function! s:insert_last_word() "{{{
let word = ''
let histories = vimshell#history#read()
if !empty(histories)
for w in reverse(split(histories[0], '[^\\]\zs\s'))
for w in reverse(split(histories[-1], '[^\\]\zs\s'))
if w =~ '[[:alpha:]_/\\]\{2,}'
let word = w
break
Expand Down

0 comments on commit 373a543

Please sign in to comment.