patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menu
Problem: Cannot use page-up and page-down in the command line completion
popup menu.
Solution: Check for to page-up and page-down keys. (Yegappan Lakshmanan,
closes #9960)
Bram Moolenaar [Wed, 16 Mar 2022 13:09:15 +0000 (13:09 +0000)]
patch 8.2.4578: no warning when autoload script for completion has an error
Problem: No warning when an autoload script for completion function has an
error.
Solution: Do not ignore errors when a function name is given with a dot or
'#' character. (closes #9958)
Bram Moolenaar [Tue, 15 Mar 2022 19:29:30 +0000 (19:29 +0000)]
patch 8.2.4575: Vim9: test for profiling still fails
Problem: Vim9: test for profiling still fails.
Solution: Update flags for profiling and breakpoints when obtaining the
compile type. Do not set the FC_CLOSURE flag for a toplevel
function.
Bram Moolenaar [Tue, 15 Mar 2022 15:57:04 +0000 (15:57 +0000)]
patch 8.2.4573: a nested function is compiled for debugging without context
Problem: A nested function (closure) is compiled for debugging without
context.
Solution: Check if a nested function is marked for debugging before
compiling it. Give an error when trying to compile a closure
without its context. (closes #9951)
Bram Moolenaar [Tue, 15 Mar 2022 12:28:10 +0000 (12:28 +0000)]
patch 8.2.4572: Vim9: return type "any" is changed to first returned type
Problem: Vim9: return type "any" is sometimes changed to first returned
type. (Virginia Senioria)
Solution: Do not change the return type if declared as "any". (closes #9949)
Sean Dewar [Tue, 15 Mar 2022 09:46:54 +0000 (09:46 +0000)]
patch 8.2.4568: getmousepos() does not compute the column below the last line
Problem: getmousepos() does not compute the column below the last line.
Solution: Also compute the column when the mouse is below the last line.
(Sean Dewar, closes #9946)
James Cherti [Mon, 14 Mar 2022 20:24:51 +0000 (20:24 +0000)]
patch 8.2.4566: check for existing buffer in session file may not work
Problem: Check for existing buffer in session file does not work for files
in the home directory.
Solution: Use fnamemodify(). (James Cherti, closes #9945) Add a test.
Bram Moolenaar [Mon, 14 Mar 2022 19:24:46 +0000 (19:24 +0000)]
patch 8.2.4565: no command line completion for :breakadd and :breakdel
Problem: No command line completion for :breakadd and :breakdel.
Solution: Add completion for :breakadd and :breakdel. (Yegappan Lakshmanan,
closes #9950)
Bram Moolenaar [Sat, 12 Mar 2022 13:48:39 +0000 (13:48 +0000)]
patch 8.2.4551: when mapping <Esc> terminal codes are not recognized
Problem: When mapping <Esc> terminal codes are not recognized.
Solution: Specifically recognize a mapping with just <Esc> and check for
terminal codes even though there is no partial mapping.
(closes #9903)
Bram Moolenaar [Fri, 11 Mar 2022 18:54:17 +0000 (18:54 +0000)]
patch 8.2.4548: script-local function is deleted when used in a funcref
Problem: Script-local function is deleted when used in a funcref.
Solution: Do not consider a function starting with "<SNR>" reference
counted. (closes #9916, closes #9820)
Bram Moolenaar [Fri, 11 Mar 2022 16:01:26 +0000 (16:01 +0000)]
patch 8.2.4547: the neXTaw GUI is old and does not work well
Problem: The neXTaw GUI is old and does not work well.
Solution: Remove the neXTaw GUI from configure to find out who still wants
support for this GUI.
patch 8.2.4543: Coverity warning for refactored tag search code
Problem: Coverity warning for refactored tag search code.
Solution: Avoid the warnings. Update comments. Add one more test case.
(Yegappan Lakshmanan, closes #9928)
Bram Moolenaar [Thu, 10 Mar 2022 19:23:28 +0000 (19:23 +0000)]
patch 8.2.4539: when comparing special v:none and v:null are handled the same
Problem: When comparing special v:none and v:null are handled the same when
compiling.
Solution: Pass more information so that v:none can be handled differently at
compile time. (issue #9923)
patch 8.2.4531: LGTM warnings for condition and buffer size
Problem: LGTM warnings for condition always true and buffer size too small.
Solution: Remove the useless condition. Make the buffer larger. (Goc
Dundar, closes #9914)
Bram Moolenaar [Tue, 8 Mar 2022 13:32:37 +0000 (13:32 +0000)]
patch 8.2.4527: the Athena GUI is old and does not work well
Problem: The Athena GUI is old and does not work well.
Solution: Remove the Athena GUI from configure to find out who still wants
support for this GUI.
K.Takata [Mon, 7 Mar 2022 15:16:15 +0000 (15:16 +0000)]
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries
Problem: MS-Windows: cannot build with some sodium libraries.
Solution: Make the DLL name configuragle. Add build instructions.
(Ken Takata, closes #9905)
K.Takata [Mon, 7 Mar 2022 13:31:15 +0000 (13:31 +0000)]
patch 8.2.4523: when gvim is started maximized the 'window' option isn't set
Problem: When gvim is started maximized the 'window' option isn't set
properly. (Christian J. Robinson)
Solution: Check if 'windows' was already set or not. (Ken Takata,
closes #9904)
Bram Moolenaar [Sat, 5 Mar 2022 20:24:41 +0000 (20:24 +0000)]
patch 8.2.4514: Vim9: some flow commands can be shortened
Problem: Vim9: some flow commands can be shortened.
Solution: Also require using the full name for ":return", ":enddef",
":continue", ":export" and ":import".
Bram Moolenaar [Sat, 5 Mar 2022 12:56:44 +0000 (12:56 +0000)]
patch 8.2.4510: Vim9: shortening commands leads to confusing script
Problem: Vim9: shortening commands leads to confusing script.
Solution: In Vim9 script require at least ":cont" for ":continue", "const"
instead of "cons", "break" instead of "brea", "catch" instead of
"cat", "else" instead of "el" "elseif" instead of "elsei" "endfor"
instead of "endfo" "endif" instead of "en" "endtry" instead of
"endt", "finally" instead of "fina", "throw" instead of "th",
"while" instead of "wh".
Bram Moolenaar [Fri, 4 Mar 2022 21:34:31 +0000 (21:34 +0000)]
patch 8.2.4506: "pattern not found" for :global is not an error message
Problem: "pattern not found" for :global is not an error message.
Solution: In Vim9 script make this an actual error, so that try/catch can be
used as expected.
Bram Moolenaar [Fri, 4 Mar 2022 19:22:36 +0000 (19:22 +0000)]
patch 8.2.4504: when there is a partially matching map full map may not work
Problem: When there is a partially matching map and modifyOtherKeys is
active a full map may not work.
Solution: Only simplify modifiers when there is no matching mapping.
(closes #8792)
Bram Moolenaar [Fri, 4 Mar 2022 14:51:06 +0000 (14:51 +0000)]
patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X
Problem: In the GUI a modifier is not recognized for the key typed after
CTRL-X, which may result in a mapping to be used. (Daniel
Steinberg)
Solution: Recognize a modifier starting with CSI. (closes #9889)
Bram Moolenaar [Thu, 3 Mar 2022 20:04:03 +0000 (20:04 +0000)]
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position
Problem: With 'showbreak' set and after the end of the line the cursor
may be displayed in the wrong position.
Solution: Do not apply 'showbreak' after the end of the line. (closes #9884)
Bram Moolenaar [Thu, 3 Mar 2022 15:11:20 +0000 (15:11 +0000)]
patch 8.2.4499: Vim9: at the script level declarations leak to next block
Problem: Vim9: at the script level declarations leak from try block to
catch and finally block.
Solution: End the block and start a new one. (closes #9883)
Bram Moolenaar [Wed, 2 Mar 2022 13:13:30 +0000 (13:13 +0000)]
patch 8.2.4489: failing test for comparing v:null with number
Problem: Failing test for comparing v:null with number.
Solution: Allow comparing v:null with number in legacy script.
(Ken Takata, closes #9873) Also do this for float.