mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:50:05 +08:00
feat(chat): make shift-space return space in insert mode
This commit is contained in:
parent
88744e039f
commit
7c235b6276
@ -171,6 +171,12 @@ function! chat#windows#open() abort
|
|||||||
endif
|
endif
|
||||||
let s:complete_input_history_num[1] += 1
|
let s:complete_input_history_num[1] += 1
|
||||||
let s:c_begin = s:complete_input_history(complete_input_history_base, s:complete_input_history_num)
|
let s:c_begin = s:complete_input_history(complete_input_history_base, s:complete_input_history_num)
|
||||||
|
elseif char ==# "\<FocusLost>" || char ==# "\<FocusGained>" || char2nr(char) == 128
|
||||||
|
" @fixme \x80 should not be completely ignored
|
||||||
|
if char ==# "\<S-Space>"
|
||||||
|
" shift-space should return space in insert mode
|
||||||
|
let s:c_begin .= ' '
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let s:c_begin .= char
|
let s:c_begin .= char
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user