Skip to content

Commit

Permalink
- Improved <Plug>(vimshell_previous_prompt) and <Plug>(vimshell_next_…
Browse files Browse the repository at this point in the history
…prompt)
  • Loading branch information
Shougo committed Jul 4, 2011
1 parent 04db382 commit ff17d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/vimshell/mappings.vim
Expand Up @@ -334,10 +334,10 @@ function! s:execute_command_line(is_insert, oldpos)"{{{
call vimshell#start_insert(a:is_insert)
endfunction"}}}
function! s:previous_prompt()"{{{
call search('^' . vimshell#escape_match(vimshell#get_prompt()), 'bWe')
call search('^' . vimshell#escape_match(vimshell#get_prompt()) . '.\?', 'bWe')
endfunction"}}}
function! s:next_prompt()"{{{
call search('^' . vimshell#escape_match(vimshell#get_prompt()), 'We')
call search('^' . vimshell#escape_match(vimshell#get_prompt()) . '.\?', 'We')
endfunction"}}}
function! s:select_previous_prompt()"{{{
let l:prompt_pattern = '^' . vimshell#escape_match(vimshell#get_prompt())
Expand Down
1 change: 1 addition & 0 deletions doc/vimshell.txt
Expand Up @@ -219,6 +219,7 @@ CHANGELOG *vimshell-changelog*

2011-07-04
- Added <Plug>(vimshell_move_head) mapping.
- Improved <Plug>(vimshell_previous_prompt) and <Plug>(vimshell_next_prompt)

2011-07-02
- Fixed preinput bug.
Expand Down

0 comments on commit ff17d38

Please sign in to comment.