annotate runtime/spell/he.vim @ 29263:8408ffd9af69 v8.2.5150

patch 8.2.5150: read past the end of the first line with ":0;'{" Commit: https://github.com/vim/vim/commit/f7c7c3fad6d2135d558f3b36d0d1a943118aeb5e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 22 19:08:38 2022 +0100 patch 8.2.5150: read past the end of the first line with ":0;'{" Problem: Read past the end of the first line with ":0;'{". Solution: When on line zero check the column is valid for line one.
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Jun 2022 20:15: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