summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
AgeCommit message (Collapse)Author
2022-07-02patch 9.0.0025: accessing beyond allocated memory with the cmdline windowv9.0.0025Bram Moolenaar
Problem: Accessing beyond allocated memory when using the cmdline window in Ex mode. Solution: Use "*" instead of "'<,'>" for Visual mode.
2022-06-22patch 8.2.5150: read past the end of the first line with ":0;'{"v8.2.5150Bram Moolenaar
Problem: Read past the end of the first line with ":0;'{". Solution: When on line zero check the column is valid for line one.
2022-06-18patch 8.2.5126: substitute may overrun destination bufferv8.2.5126Bram Moolenaar
Problem: Substitute may overrun destination buffer. Solution: Disallow switching buffers in a substitute expression.
2022-06-14patch 8.2.5093: error message for unknown command may have the command twicev8.2.5093Bram Moolenaar
Problem: Error message for unknown command may mention the command twice. (Malcolm Rowe) Solution: Add the did_append_cmd flag. (closes #10570)
2022-06-14patch 8.2.5092: using "'<,'>" in Ex mode may compare unrelated pointersv8.2.5092Bram Moolenaar
Problem: Using "'<,'>" in Ex mode may compare unrelated pointers. Solution: Set eap->cmd to "+" only later.
2022-06-14patch 8.2.5088: value of cmod_verbose is a bit complicated to usev8.2.5088zeertzjq
Problem: Value of cmod_verbose is a bit complicated to use. Solution: Use zero for not set, value + 1 when set. (closes #10564)
2022-06-12patch 8.2.5079: DirChanged autocommand may use freed memoryv8.2.5079Bram Moolenaar
Problem: DirChanged autocommand may use freed memory. (Shane-XB Qian) Solution: Free the memory later. (closes #10555)
2022-06-06patch 8.2.5063: error for a command may go over the end of IObuffv8.2.5063Bram Moolenaar
Problem: Error for a command may go over the end of IObuff. Solution: Truncate the message.
2022-05-28patch 8.2.5037: cursor position may be invalid after "0;" rangev8.2.5037Bram Moolenaar
Problem: Cursor position may be invalid after "0;" range. Solution: Check the cursor position when it was set by ";" in the range.
2022-05-27patch 8.2.5027: error for missing :endif when an exception was thrownv8.2.5027Bram Moolenaar
Problem: Error for missing :endif when an exception was thrown. (Dani Dickstein) Solution: Do not give an error when aborting. (closes #10490)
2022-05-26patch 8.2.5026: Vim9: a few lines not covered by testsv8.2.5026Bram Moolenaar
Problem: Vim9: a few lines not covered by tests. Solution: Delete dead code. Add a few test cases. make "12->func()" work.
2022-05-17patch 8.2.4971: Vim9: interpolated string seen as rangev8.2.4971Bram Moolenaar
Problem: Vim9: interpolated string seen as range. Solution: Recognize an interpolated string at the start of a command line. (closes #10434)
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-06patch 8.2.4895: buffer overflow with invalid command with composing charsv8.2.4895Bram Moolenaar
Problem: Buffer overflow with invalid command with composing chars. Solution: Check that the whole character fits in the buffer.
2022-05-06patch 8.2.4886: Vim9: redir in skipped block seen as assignmentv8.2.4886Bram Moolenaar
Problem: Vim9: redir in skipped block seen as assignment. Solution: Check for valid assignment.
2022-04-28patch 8.2.4842: expand("%:p") is not empty when there is no buffer namev8.2.4842Bram Moolenaar
Problem: expand("%:p") is not empty when there is no buffer name. Solution: When ignoring errors still return NULL. (closes #10311)
2022-04-28patch 8.2.4841: empty string considered an error for expand()v8.2.4841Bram Moolenaar
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-19patch 8.2.4789: cursor pos wrong when using :redraw while editing the cmdlinev8.2.4789Bram Moolenaar
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-16patch 8.2.4763: using invalid pointer with "V:" in Ex modev8.2.4763Bram Moolenaar
Problem: Using invalid pointer with "V:" in Ex mode. Solution: Correctly handle the command being changed to "+".
2022-04-15patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar
Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
2022-04-12patch 8.2.4741: startup test failsv8.2.4741Bram Moolenaar
Problem: Startup test fails. Solution: Avoid an error for verbose expansion. Fix that the "0verbose" command modifier doesn't work.
2022-04-09patch 8.2.4726: cannot use expand() to get the script namev8.2.4726LemonBoy
Problem: Cannot use expand() to get the script name. Solution: Support expand('<script>'). (closes #10121)
2022-04-09patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723LemonBoy
Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
2022-04-07patch 8.2.4709: after :redraw the statusline highlight might be usedv8.2.4709Bram Moolenaar
Problem: After :redraw the statusline highlight might be used. Solution: Clear the screen attribute after redrawing the screen. (closes #10108)
2022-04-07patch 8.2.4705: jump list marker disappearsv8.2.4705zeertzjq
Problem: Jump list marker disappears. Solution: Reset reg_executing later. (closes #10111, closes #10100)
2022-04-04patch 8.2.4682: Vim9: can use :unlockvar for const variablev8.2.4682Bram Moolenaar
Problem: Vim9: can use :unlockvar for const variable. (Ernie Rael) Solution: Check whether the variable is a const.
2022-03-31patch 8.2.4653: "import autoload" does not check the file namev8.2.4653Bram Moolenaar
Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
2022-03-27patch 8.2.4637: warning for using uninitialized variablev8.2.4637Bram Moolenaar
Problem: Warning for using uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
2022-03-27patch 8.2.4636: not using Visual rangev8.2.4636Bram Moolenaar
Problem: Not using Visual range. Solution: Put the command pointer back to the range.
2022-03-27patch 8.2.4633: Visual range does not work before command modifiersv8.2.4633Bram Moolenaar
Problem: Visual range does not work before command modifiers. Solution: Move Visual range to after command modifiers.
2022-03-25patch 8.2.4623: Coverity warns for using uninitialized fieldv8.2.4623Bram Moolenaar
Problem: Coverity warns for using uninitialized field. Solution: Initialize he field to zero.
2022-03-24patch 8.2.4620: two letter substitute commands don't workv8.2.4620Bram Moolenaar
Problem: Two letter substitute commands don't work. (Yegappan Lakshmanan) Solution: Invert condition.
2022-03-24patch 8.2.4618: cmdline completion does not recognize single letter commandsv8.2.4618Bram Moolenaar
Problem: Command line completion does not recognize single letter commands. Solution: Use the condition from find_ex_command().
2022-03-23patch 8.2.4615: mapping with escaped bar does not work in :def functionv8.2.4615Bram Moolenaar
Problem: Mapping with escaped bar does not work in :def function. (Sergey Vlasov) Solution: Do not remove the backslash. (closes #10002)
2022-03-21patch 8.2.4603: sourcing buffer lines is too complicatedv8.2.4603Yegappan Lakshmanan
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-18patch 8.2.4589: cannot index the g: dictionaryv8.2.4589Bram Moolenaar
Problem: Cannot index the g: dictionary. Solution: Recognize using "g:[key]". (closes #9969)
2022-03-05patch 8.2.4514: Vim9: some flow commands can be shortenedv8.2.4514Bram Moolenaar
Problem: Vim9: some flow commands can be shortened. Solution: Also require using the full name for ":return", ":enddef", ":continue", ":export" and ":import".
2022-03-05patch 8.2.4510: Vim9: shortening commands leads to confusing scriptv8.2.4510Bram Moolenaar
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-04patch 8.2.4503: Vim9: there is no point in supporting :Print and :modev8.2.4503Bram Moolenaar
Problem: Vim9: there is no point in supporting :Print and :mode. Solution: Do not recognize :Print and :mode as commands. (closes #9870)
2022-02-20patch 8.2.4426: map() function on string and blob does not check typesv8.2.4426Bram Moolenaar
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-14patch 8.2.4386: still cannot build tiny versionv8.2.4386Bram Moolenaar
Problem: Still cannot build tiny version. Solution: Adjust #ifdefs.
2022-02-14patch 8.2.4384: Vim9: error message not tested, some code not testedv8.2.4384Bram Moolenaar
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-11patch 8.2.4348: "legacy exe cmd" does not do what one would expectv8.2.4348Bram Moolenaar
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-09patch 8.2.4335: no autocommand event triggered before changing directoryv8.2.4335Bram Moolenaar
Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes #9721)
2022-02-02patch 8.2.4283: using a variable for the return value is not neededv8.2.4283zeertzjq
Problem: Using a variable for the return value is not needed. Solution: Return the value directly. (closes #9687)
2022-01-31patch 8.2.4277: Vim9: an import does not shadow a command modifierv8.2.4277Bram Moolenaar
Problem: Vim9: an import does not shadow a command modifier. Solution: Do not accept a command modifier followed by a dot.
2022-01-29patch 8.2.4255: theoretical computation overflowv8.2.4255=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Theoretical computation overflow. Solution: Perform multiplication in a wider type. (closes #9657)
2022-01-28patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
2022-01-24patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199K.Takata
Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)