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

feat(chat): make shift-space return space in insert mode

This commit is contained in:
wsdjeg 2022-05-01 23:12:47 +08:00
parent 88744e039f
commit 7c235b6276

View File

@ -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