annotate runtime/spell/he.vim @ 22278:0416105e103b v8.2.1688

patch 8.2.1688: increment/decrement removes text property Commit: https://github.com/vim/vim/commit/c8f12c9856df58c760fe54d81b2ec5ed4dcaffd6 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 15 20:34:10 2020 +0200 patch 8.2.1688: increment/decrement removes text property Problem: Increment/decrement removes text property. Solution: Insert the new number before deleting the old one. (closes https://github.com/vim/vim/issues/6962)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Sep 2020 20:45:03 +0200
parents f00f0af2a320
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
488
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
1 " For Hebrew capitals should not be checked. But only change the
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
2 " 'spellcapcheck' option when it is not at its default value.
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
3 let s:spc = &l:spc
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
4 setlocal spc&
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
5 if s:spc == &l:spc
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
6 setlocal spc=
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
7 else
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
8 let &l:spc = s:spc
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
9 endif
f00f0af2a320 updated for version 7.0133
vimboss
parents:
diff changeset
10 unlet s:spc