Bram Moolenaar [Tue, 14 Dec 2021 08:41:38 +0000 (08:41 +0000)]
patch 8.2.3803: GUI: crash with 'writedelay' set using a terminal window
Problem: Crash when 'writedelay' is set and using a terminal window to
execute a shell command.
Solution: Check that "tl_vterm" isn't NULL. (closes #9346)
Bram Moolenaar [Sun, 12 Dec 2021 21:02:03 +0000 (21:02 +0000)]
patch 8.2.3793: using "g:Func" as a funcref does not work in script context
Problem: Using "g:Func" as a funcref does not work in script context
because "g:" is dropped.
Solution: Keep "g:" in the name. Also add parenthesis to avoid confusing
operator prececence. (closes #9336)
ichizok [Sun, 12 Dec 2021 16:42:09 +0000 (16:42 +0000)]
patch 8.2.3789: Test_window_minimal_size can fail on a slow machine
Problem: Test_window_minimal_size can fail on a slow machine.
Solution: Do not rely on timers firing at the expected time. (Ozaki Kiichi,
closes #9335)
Bram Moolenaar [Sun, 12 Dec 2021 14:16:39 +0000 (14:16 +0000)]
patch 8.2.3787: no proper formatting of a C line comment after a statement
Problem: No proper formatting of a C line comment after a statement.
Solution: Find the start of the line comment, insert the comment leader and
indent the comment properly.
Bram Moolenaar [Sat, 11 Dec 2021 16:14:07 +0000 (16:14 +0000)]
patch 8.2.3783: confusing error for using a variable as a function
Problem: Confusing error for using a variable as a function.
Solution: If a function is not found but there is a variable, give a more
useful error. (issue #9310)
Bram Moolenaar [Fri, 10 Dec 2021 21:46:09 +0000 (21:46 +0000)]
patch 8.2.3779: using freed memory when defining a user command recursively
Problem: Using freed memory when defining a user command from a user
command.
Solution: Do not use the command pointer after executing the command.
(closes #9318)
Bram Moolenaar [Fri, 10 Dec 2021 16:55:58 +0000 (16:55 +0000)]
patch 8.2.3775: Vim9: lambda compiled without outer context when debugging
Problem: Vim9: lambda compiled without outer context when debugging.
Solution: When compiling a lambda for debugging also compile it without.
(closes #9302)
Bram Moolenaar [Fri, 10 Dec 2021 12:11:09 +0000 (12:11 +0000)]
patch 8.2.3773: wrong window size when a modeline changes 'columns'
Problem: Wrong window size when a modeline changes 'columns' and there is
more than one tabpage. (Michael Soyka)
Solution: Adjust the frames of all tabpages. (closes #9315)
Bram Moolenaar [Thu, 9 Dec 2021 18:42:57 +0000 (18:42 +0000)]
patch 8.2.3768: timer_info() has the wrong repeat value in a timer callback
Problem: timer_info() has the wrong repeat value in a timer callback.
Solution: Do not add one to the repeat value when in the callback.
(closes #9294)
Bram Moolenaar [Thu, 9 Dec 2021 16:40:18 +0000 (16:40 +0000)]
patch 8.2.3766: converting a funcref to a string leaves out "g:"
Problem: Converting a funcref to a string leaves out "g:", causing the
meaning of the name depending on the context.
Solution: Prepend "g:" for a global function.
Bram Moolenaar [Thu, 9 Dec 2021 10:51:05 +0000 (10:51 +0000)]
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295)
patch 8.2.3762: if quickfix buffer is wiped out getqflist() still returns it
Problem: If the quickfix buffer is wiped out getqflist() still returns its
number.
Solution: Use zero if the buffer is no longer present. (Yegappan Lakshmanan,
closes #9306)
Bram Moolenaar [Wed, 8 Dec 2021 22:13:38 +0000 (22:13 +0000)]
patch 8.2.3761: focus change is not passed on to a terminal window
Problem: Focus change is not passed on to a terminal window.
Solution: If the current window is a terminal and focus events are enabled
send a focus event escape sequence to the terminal.
patch 8.2.3759: quickfix buffer becomes hidden while still in a window
Problem: Quickfix buffer becomes hidden while still in a window.
Solution: Check if the closed window is the last window showing the quickfix
buffer. (Yegappan Lakshmanan, closes #9303, closes #9300)
patch 8.2.3758: options that take a function insufficiently tested
Problem: Options that take a function insufficiently tested.
Solution: Add additional tests and enhance existing tests. (Yegappan
Lakshmanan, closes #9298)
patch 8.2.3751: cannot assign a lambda to an option that takes a function
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286)
Dominique Pelle [Sun, 5 Dec 2021 12:39:21 +0000 (12:39 +0000)]
patch 8.2.3742: dec mouse test fails without gnome terminfo entry
Problem: Dec mouse test fails without gnome terminfo entry.
Solution: Check if there is a gnome entry. Also fix 'acd' test on
MS-Windows. (Dominique Pellé, closes #9282)
patch 8.2.3735: cannot use a lambda for 'imactivatefunc'
Problem: Cannot use a lambda for 'imactivatefunc'.
Solution: Add lambda support for 'imactivatefunc' and 'imstatusfunc'.
(Yegappan Lakshmanan, closes #9275)
Bram Moolenaar [Fri, 3 Dec 2021 13:20:29 +0000 (13:20 +0000)]
patch 8.2.3727: in a gnome terminal keys are recognized as mouse events
Problem: In a gnome terminal keys are recognized as mouse events.
Solution: Only recognize DEC mouse events when four numbers are following.
(closes #9256)
Bram Moolenaar [Thu, 2 Dec 2021 18:42:33 +0000 (18:42 +0000)]
patch 8.2.3721: using memory freed by losing the clipboard selection
Problem: Using memory freed by losing the clipboard selection. (Dominique
Pellé)
Solution: Check y_array is still valid after calling changed_lines().
(closes #9253)
patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matching
Problem: MS-Windows: No error message if vimgrep pattern is not matching.
Solution: Give an error message. (Christian Brabandt, closes #9245,
closes #8762)
Bram Moolenaar [Tue, 30 Nov 2021 21:58:19 +0000 (21:58 +0000)]
patch 8.2.3709: Vim9: backtick expression expanded when not desired
Problem: Vim9: backtick expression expanded when not desired.
Solution: Only expand a backtick expression for commands that expand their
argument. Remove a few outdated TODO comments.