Bram Moolenaar
4d97a565ae
patch 8.2.5037: cursor position may be invalid after "0;" range
...
Problem: Cursor position may be invalid after "0;" range.
Solution: Check the cursor position when it was set by ";" in the range.
2022-05-28 14:25:35 +01:00
Bram Moolenaar
bf79a4e48d
patch 8.2.5027: error for missing :endif when an exception was thrown
...
Problem: Error for missing :endif when an exception was thrown. (Dani
Dickstein)
Solution: Do not give an error when aborting. (closes #10490 )
2022-05-27 13:52:08 +01:00
Bram Moolenaar
31d9948e3a
patch 8.2.5026: Vim9: a few lines not covered by tests
...
Problem: Vim9: a few lines not covered by tests.
Solution: Delete dead code. Add a few test cases. make "12->func()" work.
2022-05-26 22:24:43 +01:00
Bram Moolenaar
40c141d333
patch 8.2.4971: Vim9: interpolated string seen as range
...
Problem: Vim9: interpolated string seen as range.
Solution: Recognize an interpolated string at the start of a command line.
(closes #10434 )
2022-05-17 13:14:23 +01:00
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
Bram Moolenaar
d88934406c
patch 8.2.4895: buffer overflow with invalid command with composing chars
...
Problem: Buffer overflow with invalid command with composing chars.
Solution: Check that the whole character fits in the buffer.
2022-05-06 20:38:47 +01:00
Bram Moolenaar
bc6f2bf78a
patch 8.2.4886: Vim9: redir in skipped block seen as assignment
...
Problem: Vim9: redir in skipped block seen as assignment.
Solution: Check for valid assignment.
2022-05-06 14:29:09 +01:00
Bram Moolenaar
211a5bb235
patch 8.2.4842: expand("%:p") is not empty when there is no buffer name
...
Problem: expand("%:p") is not empty when there is no buffer name.
Solution: When ignoring errors still return NULL. (closes #10311 )
2022-04-28 19:09:03 +01:00
Bram Moolenaar
a96edb736d
patch 8.2.4841: empty string considered an error for expand()
...
Problem: Empty string considered an error for expand() when 'verbose' is
set. (Christian Brabandt)
Solution: Do not give an error for an empty result. (closes #10307 )
2022-04-28 17:52:24 +01:00
Bram Moolenaar
a653e53b1f
patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdline
...
Problem: The cursor may be in the in wrong place when using :redraw while
editing the cmdline.
Solution: When editing the command line let :redraw update the command line
too. (closes #10210 )
2022-04-19 11:38:24 +01:00
Bram Moolenaar
f50808ed13
patch 8.2.4763: using invalid pointer with "V:" in Ex mode
...
Problem: Using invalid pointer with "V:" in Ex mode.
Solution: Correctly handle the command being changed to "+".
2022-04-16 18:52:17 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
Bram Moolenaar
60895f3e36
patch 8.2.4741: startup test fails
...
Problem: Startup test fails.
Solution: Avoid an error for verbose expansion. Fix that the "0verbose"
command modifier doesn't work.
2022-04-12 14:23:19 +01:00
LemonBoy
6013d0045d
patch 8.2.4726: cannot use expand() to get the script name
...
Problem: Cannot use expand() to get the script name.
Solution: Support expand('<script>'). (closes #10121 )
2022-04-09 21:42:10 +01:00
LemonBoy
2bf52dd065
patch 8.2.4723: the ModeChanged autocmd event is inefficient
...
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes #10134 ) Rename
trigger_modechanged() to may_trigger_modechanged().
2022-04-09 18:17:34 +01:00
Bram Moolenaar
5017c66bd4
patch 8.2.4709: after :redraw the statusline highlight might be used
...
Problem: After :redraw the statusline highlight might be used.
Solution: Clear the screen attribute after redrawing the screen.
(closes #10108 )
2022-04-07 18:06:08 +01:00
zeertzjq
6d4e725a34
patch 8.2.4705: jump list marker disappears
...
Problem: Jump list marker disappears.
Solution: Reset reg_executing later. (closes #10111 , closes #10100 )
2022-04-07 13:58:04 +01:00
Bram Moolenaar
7a411a306f
patch 8.2.4682: Vim9: can use :unlockvar for const variable
...
Problem: Vim9: can use :unlockvar for const variable. (Ernie Rael)
Solution: Check whether the variable is a const.
2022-04-04 14:58:06 +01:00
Bram Moolenaar
4dea2d92e4
patch 8.2.4653: "import autoload" does not check the file name
...
Problem: "import autoload" does not check the file name.
Solution: Give an error if the file is not readable. (closes #10049 )
2022-03-31 11:37:57 +01:00
Bram Moolenaar
565d1278cb
patch 8.2.4637: warning for using uninitialized variable
...
Problem: Warning for using uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
2022-03-27 18:11:05 +01:00
Bram Moolenaar
1501b63f8d
patch 8.2.4636: not using Visual range
...
Problem: Not using Visual range.
Solution: Put the command pointer back to the range.
2022-03-27 16:56:21 +01:00
Bram Moolenaar
c75bca3ee9
patch 8.2.4633: Visual range does not work before command modifiers
...
Problem: Visual range does not work before command modifiers.
Solution: Move Visual range to after command modifiers.
2022-03-27 13:36:50 +01:00
Bram Moolenaar
03a297c63f
patch 8.2.4623: Coverity warns for using uninitialized field
...
Problem: Coverity warns for using uninitialized field.
Solution: Initialize he field to zero.
2022-03-25 14:39:51 +00:00
Bram Moolenaar
1e2c4175dc
patch 8.2.4620: two letter substitute commands don't work
...
Problem: Two letter substitute commands don't work. (Yegappan Lakshmanan)
Solution: Invert condition.
2022-03-24 15:24:45 +00:00
Bram Moolenaar
f4f0525c34
patch 8.2.4618: cmdline completion does not recognize single letter commands
...
Problem: Command line completion does not recognize single letter commands.
Solution: Use the condition from find_ex_command().
2022-03-24 13:08:36 +00:00
Bram Moolenaar
ac48506ac6
patch 8.2.4615: mapping with escaped bar does not work in :def function
...
Problem: Mapping with escaped bar does not work in :def function. (Sergey
Vlasov)
Solution: Do not remove the backslash. (closes #10002 )
2022-03-23 19:45:01 +00:00
Yegappan Lakshmanan
85b43c6cb7
patch 8.2.4603: sourcing buffer lines is too complicated
...
Problem: Sourcing buffer lines is too complicated.
Solution: Simplify the code. Make it possible to source Vim9 script lines.
(Yegappan Lakshmanan, closes #9974 )
2022-03-21 19:45:17 +00:00
Bram Moolenaar
2e17fef225
patch 8.2.4589: cannot index the g: dictionary
...
Problem: Cannot index the g: dictionary.
Solution: Recognize using "g:[key]". (closes #9969 )
2022-03-18 19:44:48 +00:00
Bram Moolenaar
b2175220da
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".
2022-03-05 20:24:41 +00:00
Bram Moolenaar
204852ae2a
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".
2022-03-05 12:56:44 +00:00
Bram Moolenaar
6aca4d3c2b
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 )
2022-03-04 17:10:19 +00:00
Bram Moolenaar
c1e6c7bafe
patch 8.2.4426: map() function on string and blob does not check types
...
Problem: map() function on string and blob does not check argument types at
compile time.
Solution: Check string and blob argument types. Support "0z1234->func()".
2022-02-20 18:26:46 +00:00
Bram Moolenaar
8991be2ab4
patch 8.2.4386: still cannot build tiny version
...
Problem: Still cannot build tiny version.
Solution: Adjust #ifdefs.
2022-02-14 21:51:46 +00:00
Bram Moolenaar
bc51006402
patch 8.2.4384: Vim9: error message not tested, some code not tested
...
Problem: Vim9: error message not tested, some code not tested.
Solution: Add a couple of test cases. Give an error for a command modifier
without a command.
2022-02-14 21:19:04 +00:00
Bram Moolenaar
5b1d6e98c6
patch 8.2.4348: "legacy exe cmd" does not do what one would expect
...
Problem: "legacy exe cmd" does not do what one would expect.
Solution: Apply the "legacy" and "vim9script" command modifiers to the
argument of ":execute".
2022-02-11 20:33:48 +00:00
Bram Moolenaar
28e8f73ae2
patch 8.2.4335: no autocommand event triggered before changing directory
...
Problem: No autocommand event triggered before changing directory. (Ronnie
Magatti)
Solution: Add DirChangedPre. (closes #9721 )
2022-02-09 12:58:20 +00:00
zeertzjq
73257149d7
patch 8.2.4283: using a variable for the return value is not needed
...
Problem: Using a variable for the return value is not needed.
Solution: Return the value directly. (closes #9687 )
2022-02-02 13:16:37 +00:00
Bram Moolenaar
68854a82fd
patch 8.2.4277: Vim9: an import does not shadow a command modifier
...
Problem: Vim9: an import does not shadow a command modifier.
Solution: Do not accept a command modifier followed by a dot.
2022-01-31 18:59:13 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
d5cec1f1f0
patch 8.2.4255: theoretical computation overflow
...
Problem: Theoretical computation overflow.
Solution: Perform multiplication in a wider type. (closes #9657 )
2022-01-29 15:19:23 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
420fabcd4f
patch 8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643 )
2022-01-28 15:28:04 +00:00
K.Takata
c351dc1e0c
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful
...
Problem: MS-Windows: Support for MSVC 2003 is not useful.
Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616 )
2022-01-24 11:24:08 +00:00
Bram Moolenaar
bed34f0a8a
patch 8.2.4147: E464 does not always include the offending command
...
Problem: E464 does not always include the offending command.
Solution: Add another error message with "%s". (closes #9564 )
2022-01-19 20:48:37 +00:00
K.Takata
b5988e3656
patch 8.2.4105: translation related comment in the wrong place
...
Problem: Translation related comment in the wrong place.
Solution: Move it back with the text. (Ken Takata, closes #9537 )
2022-01-16 11:25:26 +00:00
Bram Moolenaar
3cf21b3051
patch 8.2.4065: computation overflow with large cound for :yank
...
Problem: Computation overflow with large cound for :yank.
Solution: Avoid an overflow.
2022-01-11 19:34:16 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +00:00
Bram Moolenaar
d82a47dd04
patch 8.2.4012: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
2022-01-05 20:24:39 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
d3a117814d
patch 8.2.4009: reading one byte beyond the end of the line
...
Problem: Reading one byte beyond the end of the line.
Solution: Check for NUL byte first.
2022-01-05 16:50:40 +00:00