summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.0516: :move command marks buffer modified when nothing changedv8.1.0516Bram Moolenaar2018-11-101-4/+18
| | | | | Problem: :move command marks buffer modified when nothing changed. Solution: Do not set 'modified'. Add a test. (Jason Franklin)
* patch 8.1.0470: pointer ownership around fname_expand() is unclearv8.1.0470Bram Moolenaar2018-10-111-4/+6
| | | | | | Problem: Pointer ownership around fname_expand() is unclear. Solution: Allow b_ffname and b_sfname to point to the same allocated memory, only free one. Update comments.
* patch 8.1.0468: MS-Windows: filter command with pipe character failsv8.1.0468Bram Moolenaar2018-10-091-2/+22
| | | | | | | Problem: MS-Windows: Filter command with pipe character fails. (Johannes Riecken) Solution: Find the pipe character outside of quotes. (Yasuhiro Matsumoto, closes #1743, closes #3523)
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-2/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0416: sort doesn't report deleted linesv8.1.0416Bram Moolenaar2018-09-211-0/+3
| | | | | Problem: Sort doesn't report deleted lines. Solution: Call msgmore(). (Christian Brabandt, closes #3454)
* patch 8.1.0377: xdiff doesn't use the Vim memory allocation functionsv8.1.0377Bram Moolenaar2018-09-131-1/+1
| | | | | | Problem: Xdiff doesn't use the Vim memory allocation functions. Solution: Change the xdl_ defines. Check for out-of-memory. Rename "ignored" to "vim_ignored".
* patch 8.1.0306: plural messages are not translated properlyv8.1.0306Bram Moolenaar2018-08-211-19/+21
| | | | | Problem: Plural messages are not translated properly. Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
* patch 8.1.0270: checking for a Tab in a line could be fasterv8.1.0270Bram Moolenaar2018-08-111-1/+1
| | | | | Problem: Checking for a Tab in a line could be faster. Solution: Use strchr() instead of strrchr(). (closes #3312)
* patch 8.1.0235: more help tags that jump to the wrong locationv8.1.0235Bram Moolenaar2018-08-021-12/+29
| | | | | | Problem: More help tags that jump to the wrong location. Solution: Add more exceptions and a table for "expr-" tags. (Hirohito Higashi)
* patch 8.1.0231: :help -? goes to help for -+v8.1.0231Bram Moolenaar2018-08-011-2/+2
| | | | | Problem: :help -? goes to help for -+. Solution: Add -? to list of special cases. (Hirohito Higashi)
* patch 8.1.0126: various problems with 'vartabstop'v8.1.0126Bram Moolenaar2018-06-281-1/+1
| | | | | | Problem: Various problems with 'vartabstop'. Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian Brabandt, closes #3076)
* patch 8.1.0120: buffer 'modified' set even when :sort has no changesv8.1.0120Bram Moolenaar2018-06-281-4/+14
| | | | | Problem: Buffer 'modified' set even when :sort has no changes. Solution: Only set 'modified' when lines are moved. (Jason Franklin)
* patch 8.1.0114: confusing variable namev8.1.0114Bram Moolenaar2018-06-241-16/+15
| | | | | Problem: Confusing variable name. Solution: Rename new_ts to new_vts_array. Change zero to NULL.
* patch 8.1.0110: file name not displayed with ":file"v8.1.0110Bram Moolenaar2018-06-241-3/+4
| | | | | | Problem: File name not displayed with ":file" when 'F' is in 'shortmess'. Solution: Always display the file name when there is no argument (Christian Brabandt, closes #3070)
* patch 8.1.0105: all tab stops are the samev8.1.0105Bram Moolenaar2018-06-231-1/+74
| | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711)
* patch 8.1.0034: cursor not restored with ":edit #"v8.1.0034Bram Moolenaar2018-06-041-3/+10
| | | | | | Problem: Cursor not restored with ":edit #". Solution: Don't assume autocommands moved the cursor when it was moved to the first non-blank.
* patch 8.0.1688: some macros are used without a semicolonv8.0.1688Bram Moolenaar2018-04-101-3/+3
| | | | | | Problem: Some macros are used without a semicolon, causing auto-indent to be wrong. Solution: Use the do-while(0) trick. (Ozaki Kiichi, closes #2729)
* patch 8.0.1650: too many #ifdefsv8.0.1650Bram Moolenaar2018-03-291-11/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_LISTCMDS, no reason to leave out buffer commands.
* patch 8.0.1566: too many #ifdefsv8.0.1566Bram Moolenaar2018-03-041-4/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-103/+31
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1553: cannot see what digraph is used to insert a characterv8.0.1553Bram Moolenaar2018-02-271-4/+25
| | | | | Problem: Cannot see what digraph is used to insert a character. Solution: Show the digraph with the "ga" command. (Christian Brabandt)
* patch 8.0.1525: using :wqa exits even if a job runs in a terminal windowv8.0.1525Bram Moolenaar2018-02-191-0/+8
| | | | | | Problem: Using :wqa exits even if a job runs in a terminal window. (Jason Felice) Solution: Check if a terminal has a running job. (closes #2654)
* patch 8.0.1512: warning for possibly using NULL pointerv8.0.1512Bram Moolenaar2018-02-131-1/+1
| | | | | Problem: Warning for possibly using NULL pointer. (Coverity) Solution: Skip using the pointer if it's NULL.
* patch 8.0.1508: the :drop command is not always availablev8.0.1508Bram Moolenaar2018-02-121-2/+0
| | | | | Problem: The :drop command is not always available. Solution: Include :drop in all builds. (Yasuhiro Matsumoto, closes #2639)
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-16/+6
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1461: missing another file in patchv8.0.1461Bram Moolenaar2018-02-031-2/+16
| | | | | Problem: Missing another file in patch. Solution: Add changes to missing file.
* patch 8.0.1383: local additions in help skips some filesv8.0.1383Bram Moolenaar2017-12-091-11/+8
| | | | | Problem: Local additions in help skips some files. (joshklod) Solution: Check the base file name length equals.
* patch 8.0.1382: get "no write since last change" message if terminal is openv8.0.1382Bram Moolenaar2017-12-091-1/+1
| | | | | | Problem: Get "no write since last change" message if a terminal is open. (Fritz mehner) Solution: Don't consider a buffer changed if it's a terminal window.
* patch 8.0.1347: MS-Windows: build broken by misplaced curlyv8.0.1347Bram Moolenaar2017-11-261-1/+1
| | | | | Problem: MS-Windows: build broken by misplaced curly. Solution: Move curly after #endif
* patch 8.0.1345: race condition between stat() and open() for viminfov8.0.1345Bram Moolenaar2017-11-261-102/+111
| | | | | | | Problem: Race condition between stat() and open() for the viminfo temp file. (Simon Ruderich) Solution: use open() with O_EXCL to atomically check if the file exists. Don't try using a temp file, renaming it will fail anyway.
* patch 8.0.1287: temp file used for viminfo may have wrong permissionsv8.0.1287Bram Moolenaar2017-11-111-5/+24
| | | | | | Problem: The temp file used when updating the viminfo file may have the wrong permissions if setting the group fails. Solution: Check if the group matches and reduce permissions if not.
* 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.