1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

fix(transient): fix transient_state quit key

This commit is contained in:
wsdjeg 2022-10-27 00:19:08 +08:00
parent ca81fb2a96
commit 0a0b74f09b
2 changed files with 7 additions and 4 deletions

View File

@ -229,7 +229,9 @@ function! s:self._key_obj_to_hl_line(left, right, line) abort
call extend(self._handle_inputs, {handles[0] : handles[1]})
endfor
if a:left.exit
call extend(self._is_quit, keys(a:left.key))
for handles in a:left.key.handles
call add(self._is_quit, handles[0])
endfor
" TODO: need to fixed
" if has_key(left, 'exit_cmd') && !empty(left.exit_cmd)
" call extend(self._handle_quit, {left.key : left.exit_cmd})
@ -288,7 +290,9 @@ function! s:self._key_obj_to_hl_line(left, right, line) abort
call extend(self._handle_inputs, {handles[0] : handles[1]})
endfor
if a:right.exit
call extend(self._is_quit, keys(a:right.key))
for handles in a:right.key.handles
call add(self._is_quit, handles[0])
endfor
" TODO: need fix
" if has_key(right, 'exit_cmd') && !empty(right.exit_cmd)
" call extend(self._handle_quit, {right.key : right.exit_cmd})

View File

@ -379,11 +379,10 @@ function! s:show_diff_of_unstaged_hunks() abort
endfunction
function! s:fetch_repo() abort
endfunction
function! s:pull_repo() abort
Git pull
endfunction
function! s:push_repo() abort