1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:30:04 +08:00

Reset statusline after undo

This commit is contained in:
wsdjeg 2017-04-22 08:21:27 +08:00
parent addb138cac
commit 6cf831e692
2 changed files with 9 additions and 4 deletions

View File

@ -356,7 +356,8 @@ endif
let g:spacevim_leader_guide_max_size = 0
if !exists("g:leaderGuide_submode_mappings")
let g:leaderGuide_submode_mappings = {'<C-C>': "win_close"}
let g:leaderGuide_submode_mappings =
\ { '<C-C>': 'win_close', 'n': 'page_down', 'p': 'page_up', 'u' : 'undo'}
endif
let g:spacevim_leader_guide_submode_mappings = {'<C-C>': "win_close"}
@ -468,8 +469,6 @@ function! SpaceVim#end() abort
vnoremap <silent> <leader> :<c-u>LeaderGuideVisual get(g:, 'mapleader', '\')<CR>
endif
let g:leaderGuide_max_size = 15
let g:leaderGuide_submode_mappings =
\ { '<C-C>': 'win_close', '<PageDown>': 'page_down', '<PageUp>': 'page_up', 'u' : 'undo'}
call SpaceVim#plugins#load()
endfunction

View File

@ -417,7 +417,7 @@ endfunction
function! s:guide_help_msg() abort
if s:guide_help_mode == 1
let msg = ' n -> next-page, p -> previous-page, u -> undo-key, h -> help, a -> abort'
let msg = ' n -> next-page, p -> previous-page, u -> undo-key'
else
let msg = ' [C-h paging/help]'
endif
@ -443,6 +443,8 @@ function! s:page_down() " {{{
endfunction " }}}
function! s:page_undo() " {{{
call s:winclose()
let s:guide_group = {}
let s:prefix_key_inp = ''
let s:lmap = s:lmap_undo
call s:start_buffer()
endfunction " }}}
@ -464,6 +466,10 @@ function! s:handle_submode_mapping(cmd) " {{{
call s:page_undo()
elseif a:cmd ==? '<LGCMD>win_close'
call s:winclose()
else
call feedkeys("\<c-c>", "n")
redraw!
call s:wait_for_input()
endif
endfunction " }}}
function! s:submode_mappings() " {{{