mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
fix(mapping): fix SPC b d
getchar() do not handle ctrl-c, use getchar() function in `vim` API
This commit is contained in:
parent
d4bb45b28d
commit
54f5bfc186
@ -10,6 +10,7 @@ scriptencoding utf-8
|
||||
|
||||
let s:BUFFER = SpaceVim#api#import('vim#buffer')
|
||||
let s:WIN = SpaceVim#api#import('vim#window')
|
||||
let s:VIM = SpaceVim#api#import('vim')
|
||||
|
||||
|
||||
let g:unite_source_menu_menus =
|
||||
@ -188,7 +189,7 @@ function! SpaceVim#mapping#close_current_buffer(...) abort
|
||||
let rs = get(a:000, 0)
|
||||
else
|
||||
echon 'save changes to "' . bufname(bn) . '"? Yes/No/Cancel'
|
||||
let rs = nr2char(getchar())
|
||||
let rs = s:VIM.getchar()
|
||||
endif
|
||||
echohl None
|
||||
if rs ==? 'y'
|
||||
|
Loading…
x
Reference in New Issue
Block a user