Bram Moolenaar [Thu, 24 Nov 2022 14:05:19 +0000 (14:05 +0000)]
patch 9.0.0940: crash when typing a letter in a terminal window
Problem: Crash when typing a letter in a terminal window. (Shane-XB-Qian)
Solution: Use the "vterm" variable instead of getting the terminal pointer
from the current buffer. (closes #11608)
Bram Moolenaar [Thu, 24 Nov 2022 13:27:36 +0000 (13:27 +0000)]
patch 9.0.0939: still using simplified mappings when using kitty protocol
Problem: Still using simplified mappings when using the kitty keyboard
protocol.
Solution: Use the kitty_protocol_state value to decide whether to use
simplified mappings. Improve how seenModifyOtherKeys is set and
reset.
Bram Moolenaar [Wed, 23 Nov 2022 23:30:58 +0000 (23:30 +0000)]
patch 9.0.0933: Kitty shows "already at oldest change" on startup
Problem: Kitty shows "already at oldest change" on startup.
Solution: When receiving the keyboard protocol state return the ignore key.
(closes #11601)
patch 9.0.0931: MS-Windows: mouse column limited to 223
Problem: MS-Windows: mouse column limited to 223.
Solution: Use two bytes for each mouse coordinate. Add the mouse position
to scroll events. (Christopher Plewright, closes #11597)
Bram Moolenaar [Wed, 23 Nov 2022 20:20:18 +0000 (20:20 +0000)]
patch 9.0.0930: cannot debug the Kitty keyboard protocol with TermDebug
Problem: Cannot debug the Kitty keyboard protocol with TermDebug.
Solution: Add Kitty keyboard protocol support to the libvterm fork.
Recognize the escape sequences that the protocol generates. Add
the 'keyprotocol' option to allow the user to specify for which
terminal what protocol is to be used, instead of hard-coding this.
Add recognizing the kitty keyboard protocol status.
zeertzjq [Wed, 23 Nov 2022 11:23:17 +0000 (11:23 +0000)]
patch 9.0.0925: two conditions are always false
Problem: Two conditions are always false.
Solution: Remove the conditions. Update return value types to make clear
what could be returned. (closes #11593)
Bram Moolenaar [Tue, 22 Nov 2022 20:41:05 +0000 (20:41 +0000)]
patch 9.0.0923: second SIGWINCH signal may be ignored
Problem: Second SIGWINCH signal may be ignored.
Solution: When set_shellsize() is busy when called then run the inner code
again when it's done. (issue #424)
patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event
Problem: MS-Windows: modifier keys do not work with mouse scroll events.
Solution: Use K_SPECIAL instead of CSI for the modifier keys. (Christopher
Plewright, closes #11587)
Bram Moolenaar [Sat, 19 Nov 2022 21:18:11 +0000 (21:18 +0000)]
patch 9.0.0913: only change in current window triggers the WinScrolled event
Problem: Only a change in the current window triggers the WinScrolled
event.
Solution: Trigger WinScrolled if any window scrolled or changed size.
(issue #11576)
Bram Moolenaar [Sat, 19 Nov 2022 19:02:40 +0000 (19:02 +0000)]
patch 9.0.0912: libvterm with modifyOtherKeys level 2 does not match xterm
Problem: libvterm with modifyOtherKeys level 2 does not match xterm.
Solution: Adjust key code escape sequences to be the same as what xterm
sends in modifyOtherKeys level 2 mode. Check the value of
no_reduce_keys before using it.
Problem: Mouse scroll code is not optimal.
Solution: Properly organise Normal mode, Insert mode and common code.
(Christopher Plewright, closes #11572)
Bram Moolenaar [Thu, 17 Nov 2022 19:00:14 +0000 (19:00 +0000)]
patch 9.0.0898: with 'smoothscroll' cursor is one screen line too far down
Problem: With 'smoothscroll' cursor is one screen line too far down. (Ernie
Rael)
Solution: Add a test that currently has the wrong result so that a fix can
be made. (issue #11436)
Bram Moolenaar [Thu, 17 Nov 2022 16:43:35 +0000 (16:43 +0000)]
patch 9.0.0896: test for home key fails when 'term' is "tmux"
Problem: Test for home key fails when 'term' is "tmux".
Solution: Only save termcap entries that exist. Adjust code for xHome to
what xterm uses. (closes #11566)
Bram Moolenaar [Thu, 17 Nov 2022 14:56:00 +0000 (14:56 +0000)]
patch 9.0.0894: virtual text property highlight ignores window background
Problem: Virtual text property highlight ignores window background.
Solution: Combine text prop attribute with win_attr into extra_attr.
(closes #11462)
Bram Moolenaar [Thu, 17 Nov 2022 11:34:38 +0000 (11:34 +0000)]
patch 9.0.0892: may redraw when not needed
Problem: May redraw when not needed, causing slow scrolling.
Solution: Do not redraw when w_skipcol doesn't change. When w_skipcol
changes only redraw from the top. (issue #11559)
Bram Moolenaar [Wed, 16 Nov 2022 16:08:30 +0000 (16:08 +0000)]
patch 9.0.0889: keycode check script has a few flaws
Problem: Keycode check script has a few flaws.
Solution: Sort on terminal name. Ignore XTGETTCAP responses. Check for
version and status response. Update entries.
patch 9.0.0888: MS-Windows GUI: CTRL-] does not work on Swiss keyboard
Problem: MS-Windows GUI: CTRL-] does not work on Swiss keyboard.
Solution: Check the key code and don't consider it as a dead key. (Aedin
Louis Xavier, closes #11556)
Bram Moolenaar [Tue, 15 Nov 2022 22:59:07 +0000 (22:59 +0000)]
patch 9.0.0887: cannot easily try out what codes various keys produce
Problem: Cannot easily try out what codes various keys produce.
Solution: Add a script to gather key code information, with an initial list
of codes to compare with.
patch 9.0.0886: horizontal mouse scroll only works in the GUI
Problem: Horizontal mouse scroll only works in the GUI.
Solution: Make horizontal mouse scroll also work in a terminal.
(Christopher Plewright, closes #11448)
Bram Moolenaar [Mon, 14 Nov 2022 22:07:45 +0000 (22:07 +0000)]
patch 9.0.0883: a silent mapping may cause dots on the command line
Problem: A silent mapping may cause dots on the command line.
Solution: Don't show dots for completion if they are not going to be removed
again. (closes #11501)
Bram Moolenaar [Sun, 13 Nov 2022 12:54:50 +0000 (12:54 +0000)]
patch 9.0.0870: get E967 when using text property in quickfix window
Problem: Get E967 when using text property in quickfix window. (Sergey
Vlasov)
Solution: Do not add an extra NUL and compute the text length correctly.
(closes #11513)
patch 9.0.0868: MS-Windows: after Vim exits console resizing problem
Problem: MS-Windows: after Vim exits console resizing does not work
properly.
Solution: Restore screen behavior checks for various WT and VTP
combinations. (Christopher Plewright, closes #11526,
closes #11507)
Nir Lichtman [Sat, 12 Nov 2022 17:00:31 +0000 (17:00 +0000)]
patch 9.0.0865: duplicate arguments are not always detected
Problem: Duplicate arguments are not always detected.
Solution: Expand to full path before comparing arguments. (Nir Lichtman,
closes #11505, closes #9402)
patch 9.0.0863: col() and charcol() only work for the current window
Problem: col() and charcol() only work for the current window.
Solution: Add an optional winid argument. (Yegappan Lakshmanan,
closes #11466, closes #11461)
Bram Moolenaar [Fri, 11 Nov 2022 22:58:36 +0000 (22:58 +0000)]
patch 9.0.0861: solution for "!!sort" in closed fold is not optimal
Problem: Solution for "!!sort" in closed fold is not optimal.
Solution: Use a different range instead of the subtle difference in handling
a range with an offset. (issue #11487)
patch 9.0.0850: MS-Windows Terminal has unstable color control
Problem: MS-Windows Terminal has unstable color control.
Solution: Do not try to read the old command prompt colortable, use modern
VT sequences. (Christopher Plewright, closes #11450,
closes #11373)