summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1216: tabline is not always updated for :file commandv8.0.1216Bram Moolenaar2017-10-241-0/+1
| | | | | Problem: Tabline is not always updated for :file command. (Norio Takagi) Solution: Set redraw_tabline. (Hirohito Higashi)
* patch 8.0.1202: :wall gives an errof for a terminal windowv8.0.1202Bram Moolenaar2017-10-151-1/+1
| | | | | | Problem: :wall gives an errof for a terminal window. (Marius Gedminas) Solution: Don't try writing a buffer that can't be written. (Yasuhiro Matsumoto, closes #2190)
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-1/+1
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-49/+3
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.1028: MS-Windows: viminfo uses $VIM/_viminfo if $HOME not setv8.0.1028Bram Moolenaar2017-08-311-1/+6
| | | | | | Problem: MS-Windows: viminfo uses $VIM/_viminfo if $HOME not set. (Yongwei Wu) Solution: Use vim_getenv() but check it's returning the default "C:/".
* patch 8.0.0953: get "no write since last change" error in terminal windowv8.0.0953Bram Moolenaar2017-08-171-1/+1
| | | | | | Problem: Get "no write since last change" error in terminal window. Solution: Use another message when closing a terminal window. Make ":quit!" also end the job.
* patch 8.0.0858: can exit while a terminal is still running a jobv8.0.0858Bram Moolenaar2017-08-031-3/+3
| | | | | Problem: Can exit while a terminal is still running a job. Solution: Consider a buffer with a running job like a changed file.
* patch 8.0.0782: using freed memory in quickfix codev8.0.0782Bram Moolenaar2017-07-271-3/+3
| | | | | Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Handle a help window differently. (Yegappan Lakshmanan)
* patch 8.0.0716: not easy to start Vim cleanlyv8.0.0716Bram Moolenaar2017-07-151-3/+3
| | | | | | | Problem: Not easy to start Vim cleanly without changing the viminfo file. Not possible to know whether the -i command line flag was used. Solution: Add the --clean command line argument. Add the 'viminfofile' option. Add "-u DEFAULTS".
* patch 8.0.0707: freeing wrong memory with certain autocommandsv8.0.0707Bram Moolenaar2017-07-111-2/+2
| | | | | | Problem: Freeing wrong memory when manipulating buffers in autocommands. (James McCoy) Solution: Also set the w_s pointer if w_buffer was NULL.
* patch 8.0.0677: setting 'filetype' may switch buffersv8.0.0677Bram Moolenaar2017-06-251-0/+4
| | | | | | Problem: Setting 'filetype' internally may cause the current buffer and window to change unexpectedly. Solution: Set curbuf_lock. (closes #1734)
* patch 8.0.0651: build failure without the auto command featurev8.0.0651Bram Moolenaar2017-06-221-0/+2
| | | | | Problem: Build failure without the auto command feature. Solution: Add #ifdef. (closes #1782)
* patch 8.0.0649: when opening a help file the filetype is set several timesv8.0.0649Bram Moolenaar2017-06-221-2/+3
| | | | | | | Problem: When opening a help file the filetype is set several times. Solution: When setting the filetype to the same value from a modeline, don't trigger FileType autocommands. Don't set the filetype to "help" when it's already set correctly.
* patch 8.0.0643: when a pattern search is slow Vim becomes unusablev8.0.0643Bram Moolenaar2017-06-171-5/+5
| | | | | | | | Problem: When 'hlsearch' is set and matching with the last search pattern is very slow, Vim becomes unusable. Cannot quit search by pressing CTRL-C. Solution: When the search times out set a flag and don't try again. Check for timeout and CTRL-C in NFA loop that adds states.
* patch 8.0.0630: it is not easy to work on lines without a matchv8.0.0630Bram Moolenaar2017-06-101-36/+57
| | | | | | | Problem: The :global command does not work recursively, which makes it difficult to execute a command on a line where one pattern matches and another does not match. (Miles Cranmer) Solution: Allow for recursion if it is for only one line. (closes #1760)
* patch 8.0.0621: :stag does not respect 'switchbuf'v8.0.0621Bram Moolenaar2017-06-051-10/+13
| | | | | | | Problem: The ":stag" command does not respect 'switchbuf'. Solution: Check 'switchbuf' for tag commands that may open a new window. (Ingo Karkat, closes #1681) Define macros for the return values of getfile().
* patch 8.0.0571: negative line number when using :z^ in an empty bufferv8.0.0571Bram Moolenaar2017-04-201-1/+7
| | | | | | Problem: The cursor line number becomes negative when using :z^ in an empty buffer. (neovim #6557) Solution: Correct the line number. Also reset the column.
* patch 8.0.0537: illegal memory access with :z and large countv8.0.0537Bram Moolenaar2017-04-021-2/+7
| | | | | | Problem: Illegal memory access with :z and large count. Solution: Check for number overflow, using long instead of int. (Dominique Pelle, closes #1612)
* patch 8.0.0513: getting name of cleared highlight group is wrongv8.0.0513Bram Moolenaar2017-03-261-2/+2
| | | | | | Problem: Getting name of cleared highlight group is wrong. (Matt Wozniski) Solution: Only skip over cleared names for completion. (closes #1592) Also fix that a cleared group causes duplicate completions.
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-3/+3
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0459: old fix for :move and folding no longer neededv8.0.0459Bram Moolenaar2017-03-151-14/+0
| | | | | | Problem: Old fix for :move messing up folding no longer needed, now that we have a proper solution. Solution: Revert patch 7.4.700. (Christian Brabandt)
* patch 8.0.0457: using :move messes up manual foldsv8.0.0457Bram Moolenaar2017-03-141-9/+21
| | | | | | Problem: Using :move messes up manual folds. Solution: Split adjusting marks and folds. Add foldMoveRange(). (neovim patch #6221)
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-8/+8
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-1/+1
| | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
* patch 8.0.0449: part of fold patch accidentally includedv8.0.0449Bram Moolenaar2017-03-121-23/+6
| | | | | Problem: Part of fold patch accidentally included. Solution: Revert that part of the patch.
* patch 8.0.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-7/+24
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0374: invalid memory access when using :sc in Ex modev8.0.0374Bram Moolenaar2017-02-261-0/+2
| | | | | Problem: Invalid memory access when using :sc in Ex mode. (Dominique Pelle) Solution: Avoid the column being negative. Also fix a hang in Ex mode.
* patch 8.0.0316: :help z? does not workv8.0.0316Bram Moolenaar2017-02-091-2/+2
| | | | | Problem: ":help z?" does not work. (Pavol Juhas) Solution: Remove exception for z?.
* patch 8.0.0315: :help :[range] does not workv8.0.0315Bram Moolenaar2017-02-091-2/+4
| | | | | Problem: ":help :[range]" does not work. (Tony Mechelynck) Solution: Translate to insert a backslash.
* patch 8.0.0209: cursor binding does not work with :substitutev8.0.0209Bram Moolenaar2017-01-211-0/+4
| | | | | | Problem: When using :substitute with the "c" flag and 'cursorbind' is set the cursor is not updated in other windows. Solution: Call do_check_cursorbind(). (Masanori Misono)
* patch 8.0.0177: BufEnter autocommand not fired for a directoryv8.0.0177Bram Moolenaar2017-01-131-1/+1
| | | | | | | | Problem: When opening a buffer on a directory and inside a try/catch then the BufEnter event is not triggered. Solution: Return NOTDONE from readfile() for a directory and deal with the three possible return values. (Justin M. Keyes, closes #1375, closes #1353)
* patch 8.0.0134v8.0.0134Bram Moolenaar2016-12-141-1/+2
| | | | | Problem: Null pointer access reported by UBsan. Solution: Check curwin->w_buffer is not NULL. (Yegappan Lakshmanan)
* patch 8.0.0073v8.0.0073Bram Moolenaar2016-11-101-1/+1
| | | | | Problem: More comparisons between firstwin and lastwin. Solution: Use ONE_WINDOW for consistency. (Hirohito Higashi)
* patch 8.0.0046v8.0.0046Bram Moolenaar2016-10-211-2/+2
| | | | | Problem: Using NUL instead of NULL. Solution: Change to NULL. (Dominique Pelle)
* patch 8.0.0029v8.0.0029Bram Moolenaar2016-10-121-14/+0
| | | | | | Problem: Code for MS-Windows is complicated because of the exceptions for old systems. Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
* patch 7.4.2341v7.4.2341Bram Moolenaar2016-09-061-1/+1
| | | | | Problem: Tiny things. Test doesn't clean up properly. Solution: Adjust comment and white space. Restore option value.
* patch 7.4.2324v7.4.2324Bram Moolenaar2016-09-041-8/+5
| | | | | | | | Problem: Crash when editing a new buffer and BufUnload autocommand wipes out the new buffer. (Norio Takagi) Solution: Don't allow wiping out this buffer. (partly by Hirohito Higashi) Move old style test13 into test_autocmd. Avoid ml_get error when editing a file.
* patch 7.4.2312v7.4.2312Bram Moolenaar2016-09-031-8/+11
| | | | | | Problem: Crash when autocommand moves to another tab. (Dominique Pelle) Solution: When navigating to another window halfway the :edit command go back to the right window.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2283v7.4.2283Bram Moolenaar2016-08-281-0/+1
| | | | | Problem: Part of ":oldfiles" command isn't cleared. (Lifepillar) Solution: Clear the rest of the line. (closes 1018)
* patch 7.4.2263v7.4.2263Bram Moolenaar2016-08-261-0/+4
| | | | | | | Problem: :filter does not work for many commands. Can only get matching messages. Solution: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines.
* patch 7.4.2262v7.4.2262Bram Moolenaar2016-08-261-1/+1
| | | | | | Problem: Fail to read register content from viminfo if it is 438 characters long. (John Chen) Solution: Adjust the check for line wrapping. (closes #1010)
* patch 7.4.2253v7.4.2253Bram Moolenaar2016-08-251-4/+0
| | | | | | Problem: Check for Windows 3.1 will always return false. (Christian Brabandt) Solution: Remove the dead code.
* patch 7.4.2250v7.4.2250Bram Moolenaar2016-08-241-2/+2
| | | | | Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle)
* patch 7.4.2247v7.4.2247Bram Moolenaar2016-08-241-2/+0
| | | | | Problem: Tiny build fails. (Tony Mechelynck) Solution: Remove #ifdef.
* patch 7.4.2246v7.4.2246Bram Moolenaar2016-08-241-18/+1
| | | | | Problem: Oldfiles test fails. Solution: Include missing changes.
* patch 7.4.2239v7.4.2239Bram Moolenaar2016-08-211-0/+54
| | | | | | Problem: Warning for missing declaration of skip_vimgrep_pat(). (John Marriott) Solution: Move it to another file.
* patch 7.4.2231v7.4.2231Bram Moolenaar2016-08-201-0/+81
| | | | | Problem: ":oldfiles" output is a very long list. Solution: Add a pattern argument. (Coot, closes #575)
* patch 7.4.2225v7.4.2225Bram Moolenaar2016-08-171-0/+5
| | | | | Problem: Crash when placing a sign in a deleted buffer. Solution: Check for missing buffer name. (Dominique Pelle). Add a test.
* patch 7.4.2219v7.4.2219Bram Moolenaar2016-08-161-60/+80
| | | | | | | Problem: Recursive call to substitute gets stuck in sandbox. (Nikolai Pavlov) Solution: Handle the recursive call. (Christian Brabandt, closes #950) Add a test.