diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-02-14 16:42:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 16:42:00 +0100 |
commit | bb331a9b31c441d47fc2cb3dcb87e0573f519dd9 (patch) | |
tree | 9f99387d0eac4d66f629cccd8b5c4204ac37305e /test/functional/ui/fold_spec.lua | |
parent | 61c98a1cf271ca1b3604dae65727c957c7c71e96 (diff) | |
download | rneovim-bb331a9b31c441d47fc2cb3dcb87e0573f519dd9.tar.gz rneovim-bb331a9b31c441d47fc2cb3dcb87e0573f519dd9.tar.bz2 rneovim-bb331a9b31c441d47fc2cb3dcb87e0573f519dd9.zip |
mouse.c: can click on multibyte foldopen/foldclose (#11863)
would previously only work with ascii fillchars.
Added a test.
Diffstat (limited to 'test/functional/ui/fold_spec.lua')
-rw-r--r-- | test/functional/ui/fold_spec.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua index 0b788e7afb..f178ed1ac7 100644 --- a/test/functional/ui/fold_spec.lua +++ b/test/functional/ui/fold_spec.lua @@ -96,8 +96,20 @@ describe("folded lines", function() {1: ~}| :set rightleft | ]]} - end) + feed_command("set norightleft") + meths.input_mouse('left', 'press', '', 0, 0, 1) + screen:expect{grid=[[ + {7:▾▸}{5:^+--- 5 lines: aa··························}| + {7:│ }ff | + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + {1:~ }| + :set norightleft | + ]]} + end) it("works with multibyte text", function() -- Currently the only allowed value of 'maxcombine' |