From e75244af63cbac943c66fee37e15ecb25b73a4c1 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 11 Jun 2021 21:29:13 -0400 Subject: [PATCH] vim-patch:8.1.1865: spellrare and spellrepall in the wrong order Problem: Spellrare and spellrepall in the wrong order. Solution: Put spellrare below spellrepall. (closes vim/vim#4820) https://github.com/vim/vim/commit/a3891681f72fd9efdea6444620d787358850d823 --- runtime/doc/spell.txt | 2 +- src/nvim/ex_cmds.lua | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt index 3dce961c03..22d7cdf491 100644 --- a/runtime/doc/spell.txt +++ b/runtime/doc/spell.txt @@ -110,7 +110,7 @@ zuG Undo |zW| and |zG|, remove the word from the internal :spellw[rong]! {word} Add {word} as a wrong (bad) word to the internal word list, like with |zW|. - *:spellr* *:spellrare* + *:spellra* *:spellrare* :[count]spellr[are] {word} Add {word} as a rare word to 'spellfile', similar to |zw|. Without count the first name is used, with diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index f61f953a6e..7b971f464f 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -2549,12 +2549,6 @@ module.cmds = { addr_type='ADDR_OTHER', func='ex_spell', }, - { - command='spellrare', - flags=bit.bor(BANG, RANGE, NEEDARG, EXTRA, TRLBAR), - addr_type='ADDR_OTHER', - func='ex_spell', - }, { command='spelldump', flags=bit.bor(BANG, TRLBAR), @@ -2573,6 +2567,12 @@ module.cmds = { addr_type='ADDR_NONE', func='ex_spellrepall', }, + { + command='spellrare', + flags=bit.bor(BANG, RANGE, NEEDARG, EXTRA, TRLBAR), + addr_type='ADDR_OTHER', + func='ex_spell', + }, { command='spellundo', flags=bit.bor(BANG, RANGE, NEEDARG, EXTRA, TRLBAR),