Bram Moolenaar [Sun, 20 Mar 2022 13:40:41 +0000 (13:40 +0000)]
patch 8.2.4598: profile completion test sometimes fails
Problem: Profile completion test sometimes fails.
Solution: Delete the .res file before running tests.
Dominique Pelle [Sun, 20 Mar 2022 11:46:01 +0000 (11:46 +0000)]
patch 8.2.4597: LuaV_debug() not covered by tests
Problem: LuaV_debug() not covered by tests.
Solution: Add a test. (Dominique Pellé, closes #9980)
Sergei Trofimovich [Sun, 20 Mar 2022 11:26:36 +0000 (11:26 +0000)]
patch 8.2.4596: installing tutor binary may fail
Problem: Installing tutor binary may fail.
Solution: Fix the dependency. (Sergei Trofimovich, closes #9978)
jsecchiero [Sun, 20 Mar 2022 11:07:17 +0000 (11:07 +0000)]
patch 8.2.4595: X11: using --remote-wait may keep the CPU busy
Problem: X11: using --remote-wait may keep the CPU busy.
Solution: Set the timeout for select() on every call. (Jacopo Secchiero,
closes #9973)
Bram Moolenaar [Sat, 19 Mar 2022 15:18:53 +0000 (15:18 +0000)]
Update runtime files
Yegappan Lakshmanan [Sat, 19 Mar 2022 12:56:51 +0000 (12:56 +0000)]
patch 8.2.4594: need to write script to a file to be able to source them
Problem: Need to write script to a file to be able to source them.
Solution: Make ":source" use lines from the current buffer. (Yegappan
Lakshmanan et al., closes #9967)
zeertzjq [Sat, 19 Mar 2022 11:42:16 +0000 (11:42 +0000)]
patch 8.2.4593: unnecessary call to redraw_later()
Problem: Unnecessary call to redraw_later().
Solution: Remove the call to redraw_later() in op_yank(). (closes #9971)
Bram Moolenaar [Sat, 19 Mar 2022 11:31:38 +0000 (11:31 +0000)]
patch 8.2.4592: search continues after giving E1204
Problem: Search continues after giving E1204.
Solution: Return failure after giving E1204. (closes #9972)
Bram Moolenaar [Sat, 19 Mar 2022 11:10:15 +0000 (11:10 +0000)]
patch 8.2.4591: cursor line not updated when a callback moves the cursor
Problem: Cursor line not updated when a callback moves the cursor.
Solution: Check if the cursor moved. (closes #9970)
Bram Moolenaar [Fri, 18 Mar 2022 21:41:47 +0000 (21:41 +0000)]
patch 8.2.4590: Vim9: range type check has wrong offset
Problem: Vim9: range type check has wrong offset.
Solution: Adjust offset for CHECKTYPE. Remove other type check.
Bram Moolenaar [Fri, 18 Mar 2022 19:44:48 +0000 (19:44 +0000)]
patch 8.2.4589: cannot index the g: dictionary
Problem: Cannot index the g: dictionary.
Solution: Recognize using "g:[key]". (closes #9969)
Bram Moolenaar [Fri, 18 Mar 2022 15:41:17 +0000 (15:41 +0000)]
patch 8.2.4588: mapping with key after other matching mapping does not work
Problem: Mapping with key code after other matching mapping does not work.
Solution: Change ">" to ">=". (closes #9903)
Bram Moolenaar [Fri, 18 Mar 2022 13:10:48 +0000 (13:10 +0000)]
patch 8.2.4587: Vim9: double free after unpacking a list
Problem: Vim9: double free after unpacking a list.
Solution: Make a copy of the value instead of moving it. (closes #9968)
Bram Moolenaar [Thu, 17 Mar 2022 16:30:03 +0000 (16:30 +0000)]
patch 8.2.4586: Vim9: no error for using lower case name for "func" argument
Problem: Vim9: no error for using lower case name for "func" argument.
(Ernie Rael)
Solution: Check the name as soon as the type is known.
Yegappan Lakshmanan [Thu, 17 Mar 2022 13:03:09 +0000 (13:03 +0000)]
patch 8.2.4585: cannot use keypad page-up/down for completion menu
Problem: Cannot use keypad page-up/down for completion menu.
Solution: Recognize the keypad keys. (Yegappan Lakshmanan, closes #9963)
Bram Moolenaar [Thu, 17 Mar 2022 11:46:55 +0000 (11:46 +0000)]
patch 8.2.4584: error for using autoload function in custom completion
Problem: Error for using autoload function in custom completion.
Solution: Do not check for errors when using an autoload function.
(closes #9962)
Bram Moolenaar [Wed, 16 Mar 2022 20:26:02 +0000 (20:26 +0000)]
patch 8.2.4583: screendump test fails
Problem: Screendump test fails.
Solution: Check that making a screendump is possible.
Bram Moolenaar [Wed, 16 Mar 2022 20:01:39 +0000 (20:01 +0000)]
patch 8.2.4582: useless code handling a type declaration
Problem: Useless code handling a type declaration.
Solution: Remove the code and give an error.
Bram Moolenaar [Wed, 16 Mar 2022 17:56:33 +0000 (17:56 +0000)]
patch 8.2.4581: null types not fully tested
Problem: Null types not fully tested.
Solution: Add some more tests using null types.
Bram Moolenaar [Wed, 16 Mar 2022 17:54:17 +0000 (17:54 +0000)]
patch 8.2.4580: Vim9: incorrect error for shadowing variable
Problem: Vim9: incorrect error for shadowing variable.
Solution: Do not pass the context when compiling a referenced function.
Yegappan Lakshmanan [Wed, 16 Mar 2022 13:33:53 +0000 (13:33 +0000)]
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 [Wed, 16 Mar 2022 11:14:57 +0000 (11:14 +0000)]
patch 8.2.4577: message test is flaky
Problem: Message test is flaky. (Elimar Riesebieter)
Solution: Trigger the autocommand event only after startup is finished.
Bram Moolenaar [Tue, 15 Mar 2022 20:21:33 +0000 (20:21 +0000)]
patch 8.2.4576: Vim9: error for comparing with null can be annoying
Problem: Vim9: error for comparing with null can be annoying.
Solution: Allow comparing anything with null. (closes #9948)
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 16:16:47 +0000 (16:16 +0000)]
patch 8.2.4574: Vim9: test for profiling fails
Problem: Vim9: test for profiling fails.
Solution: Mark function for profiling earlier to avoid E1271.
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)
Jade Lovelace [Tue, 15 Mar 2022 12:00:23 +0000 (12:00 +0000)]
patch 8.2.4571: not all gdb files are recognized
Problem: Not all gdb files are recognized.
Solution: Add a few more patterns for gdb. (Jade Lovelace, closes #9956)
Yegappan Lakshmanan [Tue, 15 Mar 2022 10:53:09 +0000 (10:53 +0000)]
patch 8.2.4570: no command line completion for :profile and :profdel
Problem: No command line completion for :profile and :profdel.
Solution: Implement completion. (Yegappan Lakshmanan, closes #9955)
Bram Moolenaar [Tue, 15 Mar 2022 10:22:39 +0000 (10:22 +0000)]
patch 8.2.4569: Coverity warning for not using a return value
Problem: Coverity warning for not using a return value.
Solution: Add "(void)".
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)
zeertzjq [Mon, 14 Mar 2022 20:46:41 +0000 (20:46 +0000)]
patch 8.2.4567: bracketed paste doesn't work well in Visual linewise mode
Problem: Bracketed paste doesn't work well in Visual linewise mode.
Solution: Handle linewise Visual mode differently. (closes #9947)
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 [Mon, 14 Mar 2022 10:50:23 +0000 (10:50 +0000)]
patch 8.2.4564: running test leaves file behind
Problem: Running test leaves file behind. (Dominique Pellé)
Solution: Run the profiling in a separate Vim instance. (closes #9952)
Bram Moolenaar [Sun, 13 Mar 2022 20:12:25 +0000 (20:12 +0000)]
patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line
Problem: "z=" in Visual mode may go beyond the end of the line.
Solution: Adjust "badlen".
Yegappan Lakshmanan [Sun, 13 Mar 2022 19:23:48 +0000 (19:23 +0000)]
patch 8.2.4562: linear tag search is not optimal
Problem: Linear tag search is not optimal.
Solution: Improve linear tag search performance. (Yegappan Lakshmanan,
closes #9944)
Bram Moolenaar [Sun, 13 Mar 2022 19:08:48 +0000 (19:08 +0000)]
patch 8.2.4561: build failure with some combination of features
Problem: Build failure with some combination of features. (John Marriott)
Solution: Adjust #ifdef.
ichizok [Sun, 13 Mar 2022 17:27:38 +0000 (17:27 +0000)]
patch 8.2.4560: suspending with CTRL-Z does not work on DragonFlyBSD
Problem: Suspending with CTRL-Z does not work on DragonFlyBSD.
Solution: Adjust #ifdef. (Ozaki Kiichi, closes #9943)
Bram Moolenaar [Sun, 13 Mar 2022 15:52:44 +0000 (15:52 +0000)]
patch 8.2.4559: getmousepos() returns the screen column
Problem: getmousepos() returns the screen column. (Ernie Rael)
Solution: Return the text column, as documented.
Bram Moolenaar [Sun, 13 Mar 2022 14:45:03 +0000 (14:45 +0000)]
patch 8.2.4558: Motif: using default colors does not work as expected
Problem: Motif: using default colors does not work as expected.
Solution: Do not try to store the default colors, use the resources.
(closes #9933)
zeertzjq [Sun, 13 Mar 2022 13:40:45 +0000 (13:40 +0000)]
patch 8.2.4557: confusing comment about 'cursorlineopt'
Problem: Confusing comment about 'cursorlineopt'.
Solution: Adjust comment. (closes #9939) Add parenthesis around logical
OR.
Bram Moolenaar [Sun, 13 Mar 2022 13:12:27 +0000 (13:12 +0000)]
patch 8.2.4556: test fails without the +job or +channel feature
Problem: Test fails without the +job or +channel feature. (Dominique Pellé)
Solution: Adjust #ifdefs. Pass on skip flag. (closes #9942)
Bram Moolenaar [Sun, 13 Mar 2022 12:06:07 +0000 (12:06 +0000)]
patch 8.2.4555: getmousepos() returns the wrong column
Problem: getmousepos() returns the wrong column. (Ernie Rael)
Solution: Limit to the text size, not the number of bytes.
Bram Moolenaar [Sat, 12 Mar 2022 21:28:22 +0000 (21:28 +0000)]
patch 8.2.4554: Vim9: using null values not sufficiently tested
Problem: Vim9: using null values not sufficiently tested.
Solution: Add more tests. Fix uncovered problem.
Yegappan Lakshmanan [Sat, 12 Mar 2022 17:38:29 +0000 (17:38 +0000)]
patch 8.2.4553: linear tag search is a bit slow
Problem: Linear tag search is a bit slow.
Solution: Remove a vim_ftell() call. (Yegappan Lakshmanan, closes #9937)
Bram Moolenaar [Sat, 12 Mar 2022 14:51:16 +0000 (14:51 +0000)]
patch 8.2.4552: in a :def function "put = expr" does not work
Problem: In a :def function "put = expr" does not work.
Solution: Skip over white space. (closes #9936)
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 [Sat, 12 Mar 2022 12:21:28 +0000 (12:21 +0000)]
patch 8.2.4550: Motif: cannot set the color of the scrollbar thumb
Problem: Motif: cannot set the color of the scrollbar thumb.
Solution: Remove #ifdef.
Bram Moolenaar [Sat, 12 Mar 2022 11:57:25 +0000 (11:57 +0000)]
patch 8.2.4549: cannot build with Motif and editres
Problem: Cannot build with Motif and editres. (Tony Mechelynck)
Solution: Fix configure mistake.
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.
zeertzjq [Fri, 11 Mar 2022 15:33:53 +0000 (15:33 +0000)]
patch 8.2.4546: duplicate #undef
Problem: Duplicate #undef.
Solution: Remove one #undef. (closes #9932)
Christian Brabandt [Fri, 11 Mar 2022 15:24:11 +0000 (15:24 +0000)]
patch 8.2.4545: MS-Windows: the installed icon is low resolution
Problem: MS-Windows: the installed icon is low resolution.
Solution: Use a better icon. Install vim.ico. (Christian Brabandt,
closes #9931, closes #9930)
Bram Moolenaar [Fri, 11 Mar 2022 14:54:03 +0000 (14:54 +0000)]
patch 8.2.4544: Coverity warnings for not using returned value
Problem: Coverity warnings for not using returned value.
Solution: Assign to vim_ignored.
Yegappan Lakshmanan [Fri, 11 Mar 2022 12:05:18 +0000 (12:05 +0000)]
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 21:53:44 +0000 (21:53 +0000)]
patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly
Problem: Vim9: "break" inside try/catch not handled correctly.
Solution: First jump to :endtry. (closes #9927)
Bram Moolenaar [Thu, 10 Mar 2022 20:47:43 +0000 (20:47 +0000)]
patch 8.2.4541: Crash in debugger when a variable is not available
Problem: Crash in debugger when a variable is not available in the current
block.
Solution: Check for a NULL name. (closes #9926)
Bram Moolenaar [Thu, 10 Mar 2022 20:01:50 +0000 (20:01 +0000)]
patch 8.2.4540: line number for error is off by one
Problem: Line number for error is off by one.
Solution: Remember the line number of the comparison. (closes #9923)
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)
Yegappan Lakshmanan [Thu, 10 Mar 2022 18:36:54 +0000 (18:36 +0000)]
patch 8.2.4538: the find_tags_in_file() function is too long
Problem: The find_tags_in_file() function is too long.
Solution: Refactor into smaller functions. (Yegappan Lakshmanan,
closes #9920)
=?UTF-8?q?Dundar=20G=C3=B6c?= [Thu, 10 Mar 2022 15:51:24 +0000 (15:51 +0000)]
patch 8.2.4537: output from linter and language server shows up in git
Problem: Output from linter and language server shows up in git.
Solution: Add patterns to .gitignore. (Goc Dundar, closes #9925)
Bram Moolenaar [Thu, 10 Mar 2022 13:29:20 +0000 (13:29 +0000)]
patch 8.2.4536: debugger test fails when breaking on expression
Problem: Debugger test fails when breaking on expression.
Solution: Compare strings with "==" instead of "is".
Christian Brabandt [Thu, 10 Mar 2022 12:24:02 +0000 (12:24 +0000)]
patch 8.2.4535: filename modifer ":8" removes the filename
Problem: Filename modifer ":8" removes the filename.
Solution: Use strncpy() instead of vim_strncpy(). (Christian Brabandt,
closes #9918, closes #8600)
Bram Moolenaar [Thu, 10 Mar 2022 12:20:53 +0000 (12:20 +0000)]
patch 8.2.4534: Vim9: "is" operator with empty string and null returns true
Problem: Vim9: "is" operator with empty string and null returns true.
Solution: Consider empty string and null to be different for "is".
Bram Moolenaar [Wed, 9 Mar 2022 19:46:48 +0000 (19:46 +0000)]
patch 8.2.4533: Vim9: no test that after assigning null type is still checked
Problem: Vim9: no test that after assigning null the type is still checked.
Solution: Add a test.
Stuart Henderson [Wed, 9 Mar 2022 14:33:02 +0000 (14:33 +0000)]
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD
Problem: Suspending with CTRL-Z does not work on OpenBSD.
Solution: Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes #9912)
=?UTF-8?q?Dundar=20G=C3=B6c?= [Wed, 9 Mar 2022 13:00:54 +0000 (13:00 +0000)]
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 [Wed, 9 Mar 2022 11:56:21 +0000 (11:56 +0000)]
patch 8.2.4530: making comparison with null work changes legacy behavior
Problem: Making comparison with null work changes legacy behavior.
Solution: Only use the better comparison in Vim9 script. (closes #9910)
Bram Moolenaar [Tue, 8 Mar 2022 21:35:07 +0000 (21:35 +0000)]
Update runtime files
Bram Moolenaar [Tue, 8 Mar 2022 19:43:55 +0000 (19:43 +0000)]
patch 8.2.4529: Vim9: comparing partial with function fails
Problem: Vim9: comparing partial with function fails.
Solution: Support this comparison. Avoid a crash. (closes #9909)
Add more test cases.
Bram Moolenaar [Tue, 8 Mar 2022 16:52:24 +0000 (16:52 +0000)]
patch 8.2.4528: crash when using null_function for a partial
Problem: Crash when using null_function for a partial.
Solution: Don't call fname_trans_sid() with NULL. (closes #9908)
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.
Bram Moolenaar [Tue, 8 Mar 2022 13:18:55 +0000 (13:18 +0000)]
patch 8.2.4526: Vim9: cannot set variables to a null value
Problem: Vim9: cannot set variables to a null value.
Solution: Add null_list, null_job, etc.
Yegappan Lakshmanan [Mon, 7 Mar 2022 16:57:22 +0000 (16:57 +0000)]
patch 8.2.4525: some GUI tests don't work on Athena
Problem: Some GUI tests don't work on Athena.
Solution: Skip tests that won't work. (Yegappan Lakshmanan, closes #9902)
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 [Sun, 6 Mar 2022 22:21:37 +0000 (22:21 +0000)]
patch 8.2.4522: GUI test fails with Motif
Problem: GUI test fails with Motif. (Dominique Pellé)
Solution: Remove using an invalid value for 'guifontset'.
Bram Moolenaar [Sun, 6 Mar 2022 20:47:01 +0000 (20:47 +0000)]
patch 8.2.4521: build failure without the +diff feature
Problem: Build failure without the +diff feature. (John Marriott)
Solution: Define filler+lines if not declaring it.
Bram Moolenaar [Sun, 6 Mar 2022 19:54:13 +0000 (19:54 +0000)]
patch 8.2.4520: using wrong highlight for cursor line number
Problem: Using wrong highlight for cursor line number.
Solution: Take filler lines into account when using CursorLineNr.
(closes #9897)
Bram Moolenaar [Sun, 6 Mar 2022 14:51:22 +0000 (14:51 +0000)]
patch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish"
Problem: Vim9: Can still use ":fini" and ":finis" for ":finish".
Solution: Require using ":finish".
Yegappan Lakshmanan [Sun, 6 Mar 2022 14:27:10 +0000 (14:27 +0000)]
patch 8.2.4518: the binary tag search feature is always enabled
Problem: The binary tag search feature is always enabled.
Solution: Remove the #ifdefs. Add a few more tests. (Yegappan Lakshmanan,
closes #9893)
K.Takata [Sun, 6 Mar 2022 14:01:52 +0000 (14:01 +0000)]
patch 8.2.4517: MS-Windows: cannot specify location of sodium library
Problem: MS-Windows: cannot specify location of sodium library.
Solution: Allow for using a path for SODIUM. (Ken Takata, closes #9896)
Bram Moolenaar [Sat, 5 Mar 2022 22:07:32 +0000 (22:07 +0000)]
patch 8.2.4516: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Move error message outside of #ifdef.
Bram Moolenaar [Sat, 5 Mar 2022 21:13:26 +0000 (21:13 +0000)]
patch 8.2.4515: old subsitute syntax is still supported
Problem: Old subsitute syntax is still supported.
Solution: Disallow using backslash after ":s" in Vim9 script.
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".
zeertzjq [Sat, 5 Mar 2022 17:00:31 +0000 (17:00 +0000)]
patch 8.2.4513: window-local directory is not applied if 'acd' fails
Problem: Window-local directory is not applied if 'acd' fails.
Solution: Don't call do_autochdir(). (closes #9891)
Yegappan Lakshmanan [Sat, 5 Mar 2022 14:35:12 +0000 (14:35 +0000)]
patch 8.2.4512: the find_tags_in_file() function is much too long
Problem: The find_tags_in_file() function is much too long.
Solution: Refactor into multiple smaller functions. (Yegappan Lakshmanan,
closes #9892)
Bram Moolenaar [Sat, 5 Mar 2022 13:45:56 +0000 (13:45 +0000)]
patch 8.2.4511: filetype test fails
Problem: Filetype test fails.
Solution: Change "endw" to "endwhile".
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 [Sat, 5 Mar 2022 11:37:48 +0000 (11:37 +0000)]
patch 8.2.4509: Vim9: can declare a variable with ":va"
Problem: Vim9: can declare a variable with ":va".
Solution: Disallow using ":va", require using ":var".
Bram Moolenaar [Sat, 5 Mar 2022 11:05:57 +0000 (11:05 +0000)]
patch 8.2.4508: Vim9: cannot assign to a global variable on the command line
Problem: Vim9: cannot assign to a global variable on the command line.
Solution: Allow using :vim9cmd for assignment on the command line.
Bram Moolenaar [Fri, 4 Mar 2022 23:22:27 +0000 (23:22 +0000)]
patch 8.2.4507: test fails because of new error message
Problem: Test fails because of new error message.
Solution: Avoid the test fails.
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 20:10:38 +0000 (20:10 +0000)]
patch 8.2.4505: Vim9: outdated "autocmd nested" still works
Problem: Vim9: outdated "autocmd nested" still works.
Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9
script.
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 17:10:19 +0000 (17:10 +0000)]
patch 8.2.4503: Vim9: there is no point in supporting :Print and :mode
Problem: Vim9: there is no point in supporting :Print and :mode.
Solution: Do not recognize :Print and :mode as commands. (closes #9870)
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)