Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode message for spell completion doesn't match allowed keys #15065

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/insexpand.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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)"),
Expand Down
15 changes: 15 additions & 0 deletions src/testdir/test_spell.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source check.vim
CheckFeature spell

source screendump.vim
source view_util.vim

func TearDown()
set nospell
Expand Down Expand Up @@ -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
Expand Down
Loading