summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1510: misleading variable name for error messagev9.0.1510Bram Moolenaar2023-05-051-2/+3
| | | | | Problem: Misleading variable name for error message. Solution: Change "name" to "number". (closes #12345)
* patch 9.0.1454: code indenting is confused by macrosv9.0.1454ichizok2023-04-151-3/+3
| | | | | | Problem: Code indenting is confused by macros. Solution: Put semicolon after the macros instead of inside. (Ozaki Kiichi, closes #12257)
* patch 9.0.1403: unused variables and functionsv9.0.1403Dominique Pelle2023-03-121-0/+2
| | | | | Problem: Unused variables and functions. Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)
* patch 9.0.1400: find_file_in_path() is not reentrantv9.0.1400Bram Moolenaar2023-03-111-17/+23
| | | | | | Problem: find_file_in_path() is not reentrant. Solution: Instead of global variables pass pointers to the functions. (closes #12093)
* patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan2023-02-211-1/+1
| | | | | Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
* patch 9.0.1330: handling new value of an option has a long "else if" chainv9.0.1330Yegappan Lakshmanan2023-02-201-1/+1
| | | | | Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
* patch 9.0.1215: using isalpha() adds dependency on current localev9.0.1215zeertzjq2023-01-171-1/+1
| | | | | | Problem: Using isalpha() adds dependency on current locale. Solution: Do not use isalpha() for recognizing a URL or the end of an Ex command. (closes #11835)
* patch 9.0.1150: :interface is not implemented yetv9.0.1150Bram Moolenaar2023-01-051-1/+0
| | | | | Problem: :interface is not implemented yet. Solution: Implement the basics of :interface.
* patch 9.0.1132: code is indented more than neededv9.0.1132Yegappan Lakshmanan2023-01-021-6/+6
| | | | | | Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769)
* patch 9.0.1115: code is indented more than neededv9.0.1115Yegappan Lakshmanan2022-12-301-169/+189
| | | | | | Problem: Code is indented more than needed. Solution: Use an early return to reduce indenting. (Yegappan Lakshmanan, closes #11758)
* patch 9.0.1001: classes are not documented or implemented yetv9.0.1001Bram Moolenaar2022-12-041-3/+8
| | | | | | | Problem: Classes are not documented or implemented yet. Solution: Make the first steps at documenting Vim9 objects, classes and interfaces. Make initial choices for the syntax. Add a skeleton implementation. Add "public" and "this" in the command table.
* patch 9.0.0965: using one window for executing autocommands is insufficientv9.0.0965Bram Moolenaar2022-11-281-1/+1
| | | | | Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.
* patch 9.0.0909: error message for layout change does not match actionv9.0.0909Bram Moolenaar2022-11-191-6/+6
| | | | | Problem: Error message for layout change does not match action. Solution: Pass the command to where the error is given. (closes #11573)
* patch 9.0.0907: restoring window after WinScrolled may failv9.0.0907Bram Moolenaar2022-11-191-5/+13
| | | | | Problem: Restoring window after WinScrolled may fail. Solution: Lock the window layout when triggering WinScrolled.
* patch 9.0.0861: solution for "!!sort" in closed fold is not optimalv9.0.0861Bram Moolenaar2022-11-111-19/+4
| | | | | | Problem: Solution for "!!sort" in closed fold is not optimal. Solution: Use a different range instead of the subtle difference in handling a range with an offset. (issue #11487)
* patch 9.0.0859: compiler warning for unused variablev9.0.0859Bram Moolenaar2022-11-111-1/+2
| | | | | Problem: Compiler warning for unused variable. Solution: Add #ifdef.
* patch 9.0.0858: "!!sort" in a closed fold sorts too many linesv9.0.0858Bram Moolenaar2022-11-111-5/+20
| | | | | Problem: "!!sort" in a closed fold sorts too many lines. Solution: Round to end of fold after adding the line count. (closes #11487)
* patch 9.0.0708: :confirm does not work properly for a terminal bufferv9.0.0708Yee Cheng Chin2022-10-091-6/+20
| | | | | | Problem: :confirm does not work properly for a terminal buffer. Solution: Handle :confirm for a terminal buffer differently. (Yee Cheng Chin, closes #11312)
* patch 9.0.0688: debugger does not display the whole commandv9.0.0688Bram Moolenaar2022-10-071-1/+4
| | | | | Problem: Debugger does not display the whole command. Solution: Set ea.cmd before checking for a breakpoint.
* patch 9.0.0687: "export def" does not work in a nested blockv9.0.0687Bram Moolenaar2022-10-071-4/+28
| | | | | | Problem: "export def" does not work in a nested block. Solution: Do not handle "export" with a separate function but in the same command stack. (closes #11304)
* patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij2022-10-041-54/+38
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
* patch 9.0.0637: syntax of commands in Vim9 script depends on +eval featurev9.0.0637Bram Moolenaar2022-10-021-24/+10
| | | | | Problem: Syntax of commands in Vim9 script depends on +eval feature. Solution: Use same syntax with and without the +eval feature.
* patch 9.0.0634: evaluating "expr" options has more overhead than neededv9.0.0634Bram Moolenaar2022-10-011-1/+1
| | | | | | | Problem: Evaluating "expr" options has more overhead than needed. Solution: Use call_simple_func() for 'foldtext', 'includeexpr', 'printexpr', "expr" of 'spellsuggest', 'diffexpr', 'patchexpr', 'balloonexpr', 'formatexpr', 'indentexpr' and 'charconvert'.
* patch 9.0.0550: crash when closing a tabpage and buffer is NULLv9.0.0550zeertzjq2022-09-221-5/+0
| | | | | | Problem: Crash when closing a tabpage and buffer is NULL. Solution: Adjust how autocommands are triggered when closing a window. (closes #11198, closes #11197)
* patch 9.0.0517: when at the command line :redrawstatus does not work wellv9.0.0517zeertzjq2022-09-201-2/+5
| | | | | Problem: When at the command line :redrawstatus does not work well. Solution: Only update the statuslines instead of the screen. (closes #11180)
* patch 9.0.0512: cannot redraw the status lines when editing a commandv9.0.0512zeertzjq2022-09-201-1/+1
| | | | | | Problem: Cannot redraw the status lines when editing a command. Solution: Only postpone the redraw when messages have scrolled. (closes #11170)
* patch 9.0.0507: cmdline cleared when using :redrawstatus in CmdlineChangedv9.0.0507Bram Moolenaar2022-09-191-2/+5
| | | | | | Problem: Command line cleared when using :redrawstatus in CmdlineChanged autocommand event. Solution: Postpone the redraw. (closes #11162)
* patch 9.0.0473: fullcommand() only works for the current script versionv9.0.0473Bram Moolenaar2022-09-151-7/+23
| | | | | Problem: fullcommand() only works for the current script version. Solution: Add an optional argument for the script version.
* patch 9.0.0444: trying to declare g:variable gives confusing errorv9.0.0444Bram Moolenaar2022-09-111-2/+2
| | | | | Problem: Trying to declare g:variable gives confusing error. Solution: Give a better error message. (closes #11108)
* patch 9.0.0423: "for" and "while" not recognized after :vim9cmd and :legacyv9.0.0423Bram Moolenaar2022-09-091-1/+4
| | | | | | | Problem: "for" and "while" not recognized after :vim9cmd and :legacy. (Emanuele Torre) Solution: Recognize all the command modifiers. (closes #11087) Add a test to check the list of modifiers.
* patch 9.0.0360: crash when invalid line number on :for is ignoredv9.0.0360Bram Moolenaar2022-09-021-1/+1
| | | | | Problem: Crash when invalid line number on :for is ignored. Solution: Do not check breakpoint for non-existing line.
* patch 9.0.0350: :echowindow does not work in a compiled functionv9.0.0350Bram Moolenaar2022-09-011-2/+11
| | | | | Problem: :echowindow does not work in a compiled function. Solution: Handle the expression at compile time.
* patch 9.0.0346: :horizontal modifier not fully supportedv9.0.0346zeertzjq2022-09-011-0/+1
| | | | | | Problem: :horizontal modifier not fully supported. Solution: Also use :horizontal for completion and user commands. (closes #11025)
* patch 9.0.0342: ":wincmd =" equalizes in two directionsv9.0.0342Bram Moolenaar2022-08-311-1/+6
| | | | | | Problem: ":wincmd =" equalizes in two directions. Solution: Make ":vertical wincmd =" equalize vertically only and ":horizontal wincmd =" equalize horizontally only.
* patch 9.0.0340: the 'cmdheight' zero support causes too much troublev9.0.0340Bram Moolenaar2022-08-311-8/+3
| | | | | Problem: The 'cmdheight' zero support causes too much trouble. Solution: Revert support for 'cmdheight' being zero.
* patch 9.0.0318: clearing screen causes flickerv9.0.0318Bram Moolenaar2022-08-291-2/+2
| | | | | Problem: Clearing screen causes flicker. Solution: Do not clear but redraw in more cases. Add () to "wait_return".
* patch 9.0.0307: :echomsg doesn't work properly with cmdheight=0v9.0.0307Bram Moolenaar2022-08-281-3/+8
| | | | | Problem: :echomsg doesn't work properly with cmdheight=0. Solution: Improve scrolling and displaying.
* patch 9.0.0265: no good reason why the "gf" command isn't in the tiny versionv9.0.0265Bram Moolenaar2022-08-251-16/+1
| | | | | Problem: No good reason why the "gf" command is not in the tiny version. Solution: Graduate the file_in_path feature.
* patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar2022-08-251-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Make some functions always available.
* patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245Bram Moolenaar2022-08-221-1/+1
| | | | | | Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-9/+9
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 9.0.0159: cannot build with small featuresv9.0.0159Bram Moolenaar2022-08-061-0/+2
| | | | | Problem: Cannot build with small features. Solution: Check for E1170 only with FEAT_EVAL.
* patch 9.0.0156: giving E1170 only in an expression is confusingv9.0.0156Bram Moolenaar2022-08-061-2/+8
| | | | | Problem: Giving E1170 only in an expression is confusing. Solution: Give E1170 for any "#{ comment". (closes #10855)
* patch 9.0.0044: typos in comments, wrapping linesv9.0.0044Bram Moolenaar2022-07-061-1/+1
| | | | | Problem: Typos in comments, wrapping lines. Solution: Adjust comments. Wrap lines.
* patch 9.0.0025: accessing beyond allocated memory with the cmdline windowv9.0.0025Bram Moolenaar2022-07-021-2/+4
| | | | | | Problem: Accessing beyond allocated memory when using the cmdline window in Ex mode. Solution: Use "*" instead of "'<,'>" for Visual mode.
* patch 8.2.5150: read past the end of the first line with ":0;'{"v8.2.5150Bram Moolenaar2022-06-221-1/+4
| | | | | Problem: Read past the end of the first line with ":0;'{". Solution: When on line zero check the column is valid for line one.
* patch 8.2.5126: substitute may overrun destination bufferv8.2.5126Bram Moolenaar2022-06-181-3/+4
| | | | | Problem: Substitute may overrun destination buffer. Solution: Disallow switching buffers in a substitute expression.
* patch 8.2.5093: error message for unknown command may have the command twicev8.2.5093Bram Moolenaar2022-06-141-1/+3
| | | | | | Problem: Error message for unknown command may mention the command twice. (Malcolm Rowe) Solution: Add the did_append_cmd flag. (closes #10570)
* patch 8.2.5092: using "'<,'>" in Ex mode may compare unrelated pointersv8.2.5092Bram Moolenaar2022-06-141-11/+16
| | | | | Problem: Using "'<,'>" in Ex mode may compare unrelated pointers. Solution: Set eap->cmd to "+" only later.
* patch 8.2.5088: value of cmod_verbose is a bit complicated to usev8.2.5088zeertzjq2022-06-141-7/+6
| | | | | Problem: Value of cmod_verbose is a bit complicated to use. Solution: Use zero for not set, value + 1 when set. (closes #10564)