summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.5046: vim_regsub() can overwrite the destinationv8.2.5046Bram Moolenaar2022-05-301-2/+6
| | | | | Problem: vim_regsub() can overwrite the destination. Solution: Pass the destination length, give an error when it doesn't fit.
* patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq2022-05-271-4/+4
| | | | | | Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
* patch 8.2.4977: memory access error when substitute expression changes windowv8.2.4977Bram Moolenaar2022-05-181-0/+11
| | | | | Problem: Memory access error when substitute expression changes window. Solution: Disallow changing window in substitute expression.
* 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-9/+9
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4750: small pieces of dead codev8.2.4750=?UTF-8?q?Dundar=20G=C3=B6c?=2022-04-141-2/+1
| | | | | | Problem: Small pieces of dead code. Solution: Remove the dead code. (Goc Dundar, closes #10190) Rename the qftf_cb struct member to avoid confusion.
* patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehavesv8.2.4711zeertzjq2022-04-081-1/+1
| | | | | | Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves. Solution: Don't set "need_start_insertmode" when already in Insert mode. (closes #10116)
* patch 8.2.4672: using :normal with Ex mode may make :substitute hangv8.2.4672Bram Moolenaar2022-04-031-0/+5
| | | | | | Problem: Using :normal with Ex mode may make :substitute hang. Solution: When getting an empty line behave like 'q' was typed. (closes #10070)
* 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.4610: some conditions are always truev8.2.4610Bram Moolenaar2022-03-221-2/+1
| | | | | Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
* patch 8.2.4515: old subsitute syntax is still supportedv8.2.4515Bram Moolenaar2022-03-051-0/+5
| | | | | Problem: Old subsitute syntax is still supported. Solution: Disallow using backslash after ":s" in Vim9 script.
* patch 8.2.4506: "pattern not found" for :global is not an error messagev8.2.4506Bram Moolenaar2022-03-041-2/+12
| | | | | | 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.
* patch 8.2.4288: preprocessor indents are inconsistentv8.2.4288K.Takata2022-02-031-2/+2
| | | | | Problem: Preprocessor indents are inconsistent. Solution: Fix preprocessor indents. (Ken Takata, closes #9691)
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-8/+2
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4253: using freed memory when substitute with function callv8.2.4253Bram Moolenaar2022-01-291-4/+15
| | | | | Problem: Using freed memory when substitute uses a recursive function call. Solution: Make a copy of the substitute text.
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-1/+1
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4215: illegal memory access when copying lines in Visual modev8.2.4215Bram Moolenaar2022-01-251-0/+2
| | | | | Problem: Illegal memory access when copying lines in Visual mode. Solution: Adjust the Visual position after copying lines.
* patch 8.2.4008: error messages are spread outv8.2.4008Bram Moolenaar2022-01-051-2/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar2022-01-021-3/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar2022-01-011-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-4/+4
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-8/+8
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3955: error messages are spread outv8.2.3955Bram Moolenaar2021-12-311-12/+11
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3952: first line not redrawn when adding lines to an empty bufferv8.2.3952zeertzjq2021-12-311-1/+5
| | | | | | Problem: First line not redrawn when adding lines to an empty buffer. Solution: Adjust the argument to appended_lines(). (closes #9439, closes #9438)
* patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle2021-12-271-1/+1
| | | | | Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
* patch 8.2.3907: error messages are spread outv8.2.3907Bram Moolenaar2021-12-261-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h. Avoid duplicates.
* patch 8.2.3883: crash when switching to other regexp engine failsv8.2.3883Bram Moolenaar2021-12-241-0/+2
| | | | | Problem: Crash when switching to other regexp engine fails. Solution: Check for regprog being NULL.
* patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar2021-11-291-2/+0
| | | | | Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
* patch 8.2.3547: opening the quickfix window triggers BufWinEnter twicev8.2.3547Bram Moolenaar2021-10-201-4/+8
| | | | | | Problem: Opening the quickfix window triggers BufWinEnter twice. (Yorick Peterse) Solution: Only trigger BufWinEnter with "quickfix". (closes #9022)
* patch 8.2.3505: Vim9: build failure without the +eval featurev8.2.3505Bram Moolenaar2021-10-131-0/+4
| | | | | Problem: Vim9: build failure without the +eval feature. Solution: Add #ifdef.
* patch 8.2.3503: Vim9: using g:pat:cmd is confusingv8.2.3503Bram Moolenaar2021-10-131-0/+6
| | | | | | Problem: Vim9: using g:pat:cmd is confusing. Solution: Do not recognize g: as the :global command. Also for s:pat:repl. (closes #8982)
* patch 8.2.3400: ":z!" is not supportedv8.2.3400Dominique Pelle2021-09-041-1/+1
| | | | | | Problem: ":z!" is not supported. Solution: Make ":z!" work and add tests. (Dominique Pellé, closes #8836) Use display height instead of current window height.
* patch 8.2.3363: when :edit reuses the current buffer the alternate file is setv8.2.3363Bram Moolenaar2021-08-211-0/+6
| | | | | | | Problem: When :edit reuses the current buffer the alternate file is set to the same buffer. Solution: Only set the alternate file when not reusing the buffer. (closes #8783)
* patch 8.2.3297: cannot use all commands inside a {} blockv8.2.3297Bram Moolenaar2021-08-051-2/+2
| | | | | | Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
* patch 8.2.3197: error messages are spread outv8.2.3197Bram Moolenaar2021-07-211-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-5/+5
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-6/+6
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.3033: no error when using alpha delimiter with :globalv8.2.3033Bram Moolenaar2021-06-211-4/+17
| | | | | Problem: No error when using alpha delimiter with :global. Solution: Check the delimiter like with :substitute. (closes #8415)
* patch 8.2.2955: Vim9: using filter in compiled command does not workv8.2.2955Bram Moolenaar2021-06-061-0/+24
| | | | | Problem: Vim9: using filter in compiled command does not work. Solution: Generate EXEC including the command modifier.
* patch 8.2.2856: get readonly error for device that can't be written tov8.2.2856Bram Moolenaar2021-05-151-1/+18
| | | | | Problem: Get readonly error for device that can't be written to. Solution: Check for being able to write first. (closes #8205)
* patch 8.2.2813: cannot grep using fuzzy matchingv8.2.2813Yegappan Lakshmanan2021-04-261-2/+4
| | | | | Problem: Cannot grep using fuzzy matching. Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)
* patch 8.2.2784: Vim9: cannot use \=expr in :substitutev8.2.2784Bram Moolenaar2021-04-191-12/+24
| | | | | | Problem: Vim9: cannot use \=expr in :substitute. Solution: Compile the expression into instructions and execute them when invoked.
* patch 8.2.2732: prompt for s///c in Ex mode can be wrongv8.2.2732Bram Moolenaar2021-04-071-0/+1
| | | | | Problem: Prompt for s///c in Ex mode can be wrong. Solution: Position the cursor before showing the prompt. (closes #8073)
* patch 8.2.2472: crash when using command line window in an autocommandv8.2.2472Bram Moolenaar2021-02-061-3/+8
| | | | | | Problem: Crash when using command line window in an autocommand. (houyunsong) Solution: Save and restore au_new_curbuf.
* patch 8.2.2464: using freed memory if window closed in autocommandv8.2.2464Bram Moolenaar2021-02-031-1/+3
| | | | | Problem: Using freed memory if window closed in autocommand. (houyunsong) Solution: Check the window still exists.
* patch 8.2.2433: opening cmdline window gives error in BufLeave autocommandv8.2.2433Bram Moolenaar2021-01-301-0/+9
| | | | | Problem: Opening cmdline window gives error in BufLeave autocommand. Solution: Reset cmdwin_type when triggering the autocommand.
* patch 8.2.2425: cursor on invalid line with range and :substitutev8.2.2425Bram Moolenaar2021-01-281-0/+2
| | | | | Problem: Cursor on invalid line with range and :substitute. Solution: Do not move the cursor when skipping commands. (closes #3434)
* patch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'v8.2.2361Bram Moolenaar2021-01-161-0/+5
| | | | | Problem: Vim9: no highlight for "s///gc" when using 'opfunc'. Solution: Reset 'lazyredraw' temporarily. (closes #7687)
* patch 8.2.2354: crash with a weird combination of autocommandsv8.2.2354Bram Moolenaar2021-01-151-1/+11
| | | | | Problem: Crash with a weird combination of autocommands. Solution: Increment b_nwindows when needed. (closes #7674)
* patch 8.2.2307: a shell command in the vimrc causes terminal outputv8.2.2307Bram Moolenaar2021-01-071-5/+1
| | | | | | Problem: A shell command in the vimrc causes terminal output. Solution: Do not call starttermcap() after a shell command if the termcap wasn't active before.