diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-11 21:29:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-12 13:06:49 -0400 |
commit | e75244af63cbac943c66fee37e15ecb25b73a4c1 (patch) | |
tree | 5cdf1b4154f164b5366865eb195f1969303541b5 | |
parent | 61117d89a390d285c6daf16111a8c4b52f0c08a2 (diff) | |
download | rneovim-e75244af63cbac943c66fee37e15ecb25b73a4c1.tar.gz rneovim-e75244af63cbac943c66fee37e15ecb25b73a4c1.tar.bz2 rneovim-e75244af63cbac943c66fee37e15ecb25b73a4c1.zip |
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
-rw-r--r-- | runtime/doc/spell.txt | 2 | ||||
-rw-r--r-- | 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 @@ -2550,12 +2550,6 @@ module.cmds = { 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), addr_type='ADDR_NONE', @@ -2574,6 +2568,12 @@ module.cmds = { 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), addr_type='ADDR_OTHER', |