summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
Commit message (Collapse)AuthorAgeFilesLines
...
* patch 8.2.5079: DirChanged autocommand may use freed memoryv8.2.5079Bram Moolenaar2022-06-121-1/+3
| | | | | Problem: DirChanged autocommand may use freed memory. (Shane-XB Qian) Solution: Free the memory later. (closes #10555)
* patch 8.2.5063: error for a command may go over the end of IObuffv8.2.5063Bram Moolenaar2022-06-061-2/+10
| | | | | Problem: Error for a command may go over the end of IObuff. Solution: Truncate the message.
* patch 8.2.5037: cursor position may be invalid after "0;" rangev8.2.5037Bram Moolenaar2022-05-281-7/+17
| | | | | Problem: Cursor position may be invalid after "0;" range. Solution: Check the cursor position when it was set by ";" in the range.
* patch 8.2.5027: error for missing :endif when an exception was thrownv8.2.5027Bram Moolenaar2022-05-271-1/+2
| | | | | | Problem: Error for missing :endif when an exception was thrown. (Dani Dickstein) Solution: Do not give an error when aborting. (closes #10490)
* patch 8.2.5026: Vim9: a few lines not covered by testsv8.2.5026Bram Moolenaar2022-05-261-0/+19
| | | | | Problem: Vim9: a few lines not covered by tests. Solution: Delete dead code. Add a few test cases. make "12->func()" work.
* patch 8.2.4971: Vim9: interpolated string seen as rangev8.2.4971Bram Moolenaar2022-05-171-3/+8
| | | | | | Problem: Vim9: interpolated string seen as range. Solution: Recognize an interpolated string at the start of a command line. (closes #10434)
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-1/+1
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-3/+3
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4895: buffer overflow with invalid command with composing charsv8.2.4895Bram Moolenaar2022-05-061-1/+3
| | | | | Problem: Buffer overflow with invalid command with composing chars. Solution: Check that the whole character fits in the buffer.
* patch 8.2.4886: Vim9: redir in skipped block seen as assignmentv8.2.4886Bram Moolenaar2022-05-061-1/+3
| | | | | Problem: Vim9: redir in skipped block seen as assignment. Solution: Check for valid assignment.
* patch 8.2.4842: expand("%:p") is not empty when there is no buffer namev8.2.4842Bram Moolenaar2022-04-281-5/+8
| | | | | Problem: expand("%:p") is not empty when there is no buffer name. Solution: When ignoring errors still return NULL. (closes #10311)
* patch 8.2.4841: empty string considered an error for expand()v8.2.4841Bram Moolenaar2022-04-281-4/+5
| | | | | | 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)
* patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdlinev8.2.4789Bram Moolenaar2022-04-191-0/+4
| | | | | | | 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)
* patch 8.2.4763: using invalid pointer with "V:" in Ex modev8.2.4763Bram Moolenaar2022-04-161-5/+24
| | | | | Problem: Using invalid pointer with "V:" in Ex mode. Solution: Correctly handle the command being changed to "+".
* patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar2022-04-151-10/+15
| | | | | Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
* patch 8.2.4741: startup test failsv8.2.4741Bram Moolenaar2022-04-121-2/+7
| | | | | | Problem: Startup test fails. Solution: Avoid an error for verbose expansion. Fix that the "0verbose" command modifier doesn't work.
* patch 8.2.4726: cannot use expand() to get the script namev8.2.4726LemonBoy2022-04-091-6/+22
| | | | | Problem: Cannot use expand() to get the script name. Solution: Support expand('<script>'). (closes #10121)
* patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723LemonBoy2022-04-091-1/+1
| | | | | | Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
* patch 8.2.4709: after :redraw the statusline highlight might be usedv8.2.4709Bram Moolenaar2022-04-071-0/+3
| | | | | | Problem: After :redraw the statusline highlight might be used. Solution: Clear the screen attribute after redrawing the screen. (closes #10108)
* patch 8.2.4705: jump list marker disappearsv8.2.4705zeertzjq2022-04-071-0/+4
| | | | | Problem: Jump list marker disappears. Solution: Reset reg_executing later. (closes #10111, closes #10100)
* patch 8.2.4682: Vim9: can use :unlockvar for const variablev8.2.4682Bram Moolenaar2022-04-041-1/+0
| | | | | Problem: Vim9: can use :unlockvar for const variable. (Ernie Rael) Solution: Check whether the variable is a const.
* patch 8.2.4653: "import autoload" does not check the file namev8.2.4653Bram Moolenaar2022-03-311-1/+1
| | | | | Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
* patch 8.2.4637: warning for using uninitialized variablev8.2.4637Bram Moolenaar2022-03-271-1/+1
| | | | | Problem: Warning for using uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
* patch 8.2.4636: not using Visual rangev8.2.4636Bram Moolenaar2022-03-271-9/+15
| | | | | Problem: Not using Visual range. Solution: Put the command pointer back to the range.
* patch 8.2.4633: Visual range does not work before command modifiersv8.2.4633Bram Moolenaar2022-03-271-4/+26
| | | | | Problem: Visual range does not work before command modifiers. Solution: Move Visual range to after command modifiers.
* patch 8.2.4623: Coverity warns for using uninitialized fieldv8.2.4623Bram Moolenaar2022-03-251-0/+1
| | | | | Problem: Coverity warns for using uninitialized field. Solution: Initialize he field to zero.
* patch 8.2.4620: two letter substitute commands don't workv8.2.4620Bram Moolenaar2022-03-241-1/+1
| | | | | Problem: Two letter substitute commands don't work. (Yegappan Lakshmanan) Solution: Invert condition.
* patch 8.2.4618: cmdline completion does not recognize single letter commandsv8.2.4618Bram Moolenaar2022-03-241-25/+40
| | | | | Problem: Command line completion does not recognize single letter commands. Solution: Use the condition from find_ex_command().
* patch 8.2.4615: mapping with escaped bar does not work in :def functionv8.2.4615Bram Moolenaar2022-03-231-5/+9
| | | | | | Problem: Mapping with escaped bar does not work in :def function. (Sergey Vlasov) Solution: Do not remove the backslash. (closes #10002)
* patch 8.2.4603: sourcing buffer lines is too complicatedv8.2.4603Yegappan Lakshmanan2022-03-211-1/+1
| | | | | | Problem: Sourcing buffer lines is too complicated. Solution: Simplify the code. Make it possible to source Vim9 script lines. (Yegappan Lakshmanan, closes #9974)
* patch 8.2.4589: cannot index the g: dictionaryv8.2.4589Bram Moolenaar2022-03-181-3/+5
| | | | | Problem: Cannot index the g: dictionary. Solution: Recognize using "g:[key]". (closes #9969)
* patch 8.2.4514: Vim9: some flow commands can be shortenedv8.2.4514Bram Moolenaar2022-03-051-4/+2
| | | | | | Problem: Vim9: some flow commands can be shortened. Solution: Also require using the full name for ":return", ":enddef", ":continue", ":export" and ":import".
* patch 8.2.4510: Vim9: shortening commands leads to confusing scriptv8.2.4510Bram Moolenaar2022-03-051-7/+18
| | | | | | | | | | 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".
* patch 8.2.4503: Vim9: there is no point in supporting :Print and :modev8.2.4503Bram Moolenaar2022-03-041-0/+4
| | | | | Problem: Vim9: there is no point in supporting :Print and :mode. Solution: Do not recognize :Print and :mode as commands. (closes #9870)
* patch 8.2.4426: map() function on string and blob does not check typesv8.2.4426Bram Moolenaar2022-02-201-1/+4
| | | | | | 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()".
* patch 8.2.4386: still cannot build tiny versionv8.2.4386Bram Moolenaar2022-02-141-1/+1
| | | | | Problem: Still cannot build tiny version. Solution: Adjust #ifdefs.
* patch 8.2.4384: Vim9: error message not tested, some code not testedv8.2.4384Bram Moolenaar2022-02-141-3/+10
| | | | | | 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.
* patch 8.2.4348: "legacy exe cmd" does not do what one would expectv8.2.4348Bram Moolenaar2022-02-111-0/+1
| | | | | | Problem: "legacy exe cmd" does not do what one would expect. Solution: Apply the "legacy" and "vim9script" command modifiers to the argument of ":execute".
* patch 8.2.4335: no autocommand event triggered before changing directoryv8.2.4335Bram Moolenaar2022-02-091-16/+38
| | | | | | Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes #9721)
* patch 8.2.4283: using a variable for the return value is not neededv8.2.4283zeertzjq2022-02-021-26/+21
| | | | | Problem: Using a variable for the return value is not needed. Solution: Return the value directly. (closes #9687)
* patch 8.2.4277: Vim9: an import does not shadow a command modifierv8.2.4277Bram Moolenaar2022-01-311-4/+4
| | | | | Problem: Vim9: an import does not shadow a command modifier. Solution: Do not accept a command modifier followed by a dot.
* patch 8.2.4255: theoretical computation overflowv8.2.4255=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-291-1/+1
| | | | | Problem: Theoretical computation overflow. Solution: Perform multiplication in a wider type. (closes #9657)
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-3/+3
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199K.Takata2022-01-241-9/+0
| | | | | Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
* patch 8.2.4147: E464 does not always include the offending commandv8.2.4147Bram Moolenaar2022-01-191-1/+1
| | | | | Problem: E464 does not always include the offending command. Solution: Add another error message with "%s". (closes #9564)
* patch 8.2.4105: translation related comment in the wrong placev8.2.4105K.Takata2022-01-161-1/+0
| | | | | Problem: Translation related comment in the wrong place. Solution: Move it back with the text. (Ken Takata, closes #9537)
* patch 8.2.4065: computation overflow with large cound for :yankv8.2.4065Bram Moolenaar2022-01-111-1/+4
| | | | | Problem: Computation overflow with large cound for :yank. Solution: Avoid an overflow.
* patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar2022-01-081-1/+1
| | | | | Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
* patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle2022-01-081-0/+4
| | | | | Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
* patch 8.2.4012: error messages are spread outv8.2.4012Bram Moolenaar2022-01-051-4/+4
| | | | | Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.