diff options
author | Matthieu Coudron <mcoudron@hotmail.com> | 2020-11-23 20:58:13 +0100 |
---|---|---|
committer | Matthieu Coudron <mcoudron@hotmail.com> | 2020-11-23 21:06:56 +0100 |
commit | 7eb0c16dc8433e27ce0c8573a80284ec044d5ef4 (patch) | |
tree | 5edf02966adc66893c35946e4d831b229ff3f06a /test/functional/ui/fold_spec.lua | |
parent | 4f1fc0f6d514980700152b7c05e5c92ec379f0d7 (diff) | |
download | rneovim-7eb0c16dc8433e27ce0c8573a80284ec044d5ef4.tar.gz rneovim-7eb0c16dc8433e27ce0c8573a80284ec044d5ef4.tar.bz2 rneovim-7eb0c16dc8433e27ce0c8573a80284ec044d5ef4.zip |
fix(fold): use Folded highlight even with spell on
Partially addresses https://github.com/neovim/neovim/issues/12982. It's
more a quickfix while reworking folds.
Diffstat (limited to 'test/functional/ui/fold_spec.lua')
-rw-r--r-- | test/functional/ui/fold_spec.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua index 669ec5d3ed..018049d2f4 100644 --- a/test/functional/ui/fold_spec.lua +++ b/test/functional/ui/fold_spec.lua @@ -117,6 +117,33 @@ describe("folded lines", function() end end) + it("work with spell", function() + command("set spell") + insert([[ + This is a + valid English + sentence composed by + an exhausted developer + in his cave. + ]]) + + feed("gg") + feed("zf3j") + if not multigrid then + -- screen:snapshot_util() + screen:expect{grid=[[ + {5:^+-- 4 lines: This is a······················}| + in his cave. | + | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + | + ]]} + end + end) + it("works with multibyte fillchars", function() insert([[ aa |