mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 06:05:06 -07:00
Merge pull request #29438 from neovim/backport-29437-to-release-0.10
vim-patch:9.1.0512: Mode message for spell completion doesn't match allowed keys
This commit is contained in:
commit
9c6efd0a65
@ -121,7 +121,7 @@ static char *ctrl_x_msgs[] = {
|
||||
N_(" Command-line completion (^V^N^P)"),
|
||||
N_(" User defined completion (^U^N^P)"),
|
||||
N_(" Omni completion (^O^N^P)"),
|
||||
N_(" Spelling suggestion (s^N^P)"),
|
||||
N_(" Spelling suggestion (^S^N^P)"),
|
||||
N_(" Keyword Local completion (^N^P)"),
|
||||
NULL, // CTRL_X_EVAL doesn't use msg.
|
||||
N_(" Command-line completion (^V^N^P)"),
|
||||
|
@ -5,6 +5,7 @@ source check.vim
|
||||
CheckFeature spell
|
||||
|
||||
source screendump.vim
|
||||
source view_util.vim
|
||||
|
||||
func TearDown()
|
||||
set nospell
|
||||
@ -300,6 +301,20 @@ func Test_compl_with_CTRL_X_CTRL_K_using_spell()
|
||||
set spell& spelllang& dictionary& ignorecase&
|
||||
endfunc
|
||||
|
||||
func Test_compl_with_CTRL_X_s()
|
||||
new
|
||||
set spell spelllang=en_us showmode
|
||||
inoremap <buffer><F2> <Cmd>let g:msg = Screenline(&lines)<CR>
|
||||
|
||||
call feedkeys("STheatre\<C-X>s\<F2>\<C-Y>\<Esc>", 'tx')
|
||||
call assert_equal(['Theater'], getline(1, '$'))
|
||||
call assert_match('(^S^N^P)', g:msg)
|
||||
|
||||
bwipe!
|
||||
set spell& spelllang& showmode&
|
||||
unlet g:msg
|
||||
endfunc
|
||||
|
||||
func Test_spellrepall()
|
||||
new
|
||||
set spell
|
||||
|
Loading…
Reference in New Issue
Block a user