summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* patch 7.4.2133v7.4.2133Bram Moolenaar2016-07-301-0/+2
| | | | | Problem: Can't build with tiny features. Solution: Add #ifdef.
* patch 7.4.2128v7.4.2128Bram Moolenaar2016-07-301-0/+3
| | | | | Problem: Memory leak when saving for undo fails. Solution: Free allocated memory. (Hirohito Higashi)
* patch 7.4.2114v7.4.2114Bram Moolenaar2016-07-291-2/+0
| | | | | Problem: Tiny build fails. Solution: Always include vim_time().
* patch 7.4.2106v7.4.2106Bram Moolenaar2016-07-261-0/+2
| | | | | Problem: Clang warns about missing field in initializer. Solution: Define COMMA and use it. (Kazunobu Kuriyama)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-6/+6
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2024v7.4.2024Bram Moolenaar2016-07-101-5/+8
| | | | | Problem: More buf_valid() calls can be optimized. Solution: Use bufref_valid() instead.
* patch 7.4.2021v7.4.2021Bram Moolenaar2016-07-101-8/+18
| | | | | Problem: Still too many buf_valid() calls. Solution: Make au_new_curbuf a bufref. Use bufref_valid() in more places.
* patch 7.4.2015v7.4.2015Bram Moolenaar2016-07-091-1/+9
| | | | | | | | Problem: When a file gets a name when writing it 'acd' is not effective. (Dan Church) Solution: Invoke DO_AUTOCHDIR after writing the file. (Allen Haim, closes #777, closes #803) Add test_autochdir() to enable 'acd' before "starting" is reset.