aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-16 23:48:58 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-02 12:00:00 -0400
commitc207886bdf9c4545d48837c968091b1384569562 (patch)
tree0a66a9cd0e80419b61aedb586696909838d8fd0f /src/nvim/screen.c
parent521d571992e580f9b87449c5f19bc72818cbb8e1 (diff)
downloadrneovim-c207886bdf9c4545d48837c968091b1384569562.tar.gz
rneovim-c207886bdf9c4545d48837c968091b1384569562.tar.bz2
rneovim-c207886bdf9c4545d48837c968091b1384569562.zip
vim-patch:8.1.2172: spell highlight is wrong at start of the line
Problem: Spell highlight is wrong at start of the line. Solution: Fix setting the "v" variable. (closes vim/vim#5078) https://github.com/vim/vim/commit/7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d Skip spell tests in OpenBSD. Nvim or screen likely crashed. Revist once issue #12104 is fixed. Skip the test for the following reasons: - unknown regression caused by https://github.com/neovim/neovim/issues/12104 - cannot revert failing test from https://github.com/neovim/neovim/commit/ed0d135247790f67ead7f1a8c21a020790e80a74
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 7bed747e9a..6f122442c4 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -3476,6 +3476,7 @@ win_line (
* Only do this when there is no syntax highlighting, the
* @Spell cluster is not used or the current syntax item
* contains the @Spell cluster. */
+ v = (long)(ptr - line);
if (has_spell && v >= word_end && v > cur_checked_col) {
spell_attr = 0;
if (!attr_pri) {