Bram Moolenaar
c4568ab37e
patch 8.1.0528: various typos in comments
...
Problem: Various typos in comments.
Solution: Fix the typos.
2018-11-16 16:21:05 +01:00
Bram Moolenaar
27e80c885b
patch 8.1.0475: memory not freed on exit when quit in autocmd
...
Problem: Memory not freed on exit when quit in autocmd.
Solution: Remember funccal stack when executing autocmd.
2018-10-14 21:41:01 +02:00
Bram Moolenaar
3d6014f033
patch 8.1.0470: pointer ownership around fname_expand() is unclear
...
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.
2018-10-11 19:27:47 +02:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
e8fa05b5bc
patch 8.1.0397: no event triggered after updating diffs
...
Problem: No event triggered after updating diffs.
Solution: Add the DiffUpdated event.
2018-09-16 15:48:06 +02:00
Bram Moolenaar
42335f50bc
patch 8.1.0377: xdiff doesn't use the Vim memory allocation functions
...
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".
2018-09-13 15:33:43 +02:00
Bram Moolenaar
f29c1c6aa3
patch 8.1.0362: cannot get the script line number when executing a function
...
Problem: Cannot get the script line number when executing a function.
Solution: Store the line number besides the script ID. (Ozaki Kiichi,
closes #3362 ) Also display the line number with ":verbose set".
2018-09-10 21:05:02 +02:00
Bram Moolenaar
da6e8919e7
patch 8.1.0306: plural messages are not translated properly
...
Problem: Plural messages are not translated properly.
Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
2018-08-21 15:12:14 +02:00
Bram Moolenaar
d569bb0299
patch 8.1.0268: file type checking has too many #ifdef
...
Problem: File type checking has too many #ifdef.
Solution: Always define the S_IF macros. (Ken Takata, closes #3306 )
2018-08-11 13:57:20 +02:00
Bram Moolenaar
b782ba475a
patch 8.1.0251: using full path is not supported for 'backupdir'
...
Problem: Using a full path is supported for 'directory' but not for
'backupdir'. (Mikolaj Machowski)
Solution: Support 'backupdir' as well. (Christian Brabandt, closes #179 )
2018-08-07 21:39:28 +02:00
Bram Moolenaar
91335e5a67
patch 8.1.0230: directly checking 'buftype' value
...
Problem: Directly checking 'buftype' value.
Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
2018-08-01 17:53:12 +02:00
Bram Moolenaar
386bc82a3f
patch 8.1.0161: buffer not updated with 'autoread' set if file was deleted
...
Problem: Buffer not updated with 'autoread' set if file was deleted.
(Michael Naumann)
Solution: Don't set the timestamp to zero. (closes #3165 )
2018-07-07 18:34:12 +02:00
Bram Moolenaar
8c55533c6f
patch 8.1.0096: inconsistent use of the word autocommands
...
Problem: Inconsistent use of the word autocommands.
Solution: Don't use auto-commands or "auto commands".
2018-06-22 21:30:31 +02:00
Bram Moolenaar
0b6d911e5d
patch 8.1.0020: cannot tell whether a register is executing or recording
...
Problem: Cannot tell whether a register is being used for executing or
recording.
Solution: Add reg_executing() and reg_recording(). (Hirohito Higashi,
closes #2745 ) Rename the global variables for consistency. Store
the register name in reg_executing.
2018-05-22 20:35:17 +02:00
Bram Moolenaar
1f131aee0e
patch 8.1.0012: misplaced #endif
...
Problem: Misplaced #endif.
Solution: Move the #endif to after the expression. (David Binderman)
2018-05-21 13:39:40 +02:00
Bram Moolenaar
a796d46f29
patch 8.0.1781: file names in quickfix window are not shortened
...
Problem: File names in quickfix window are not always shortened.
Solution: Shorten the file name when opening the quickfix window. (Yegappan
Lakshmanan, closes #2851 , closes #2846 )
2018-05-01 14:30:36 +02:00
Bram Moolenaar
60a68362aa
patch 8.0.1777: cannot cleanup before loading another colorscheme
...
Problem: Cannot cleanup before loading another colorscheme.
Solution: Add the ColorSchemePre autocommand event.
2018-04-30 15:40:48 +02:00
Bram Moolenaar
13d3b05ed2
patch 8.0.1774: reading very long lines can be slow
...
Problem: Reading very long lines can be slow.
Solution: Read up to 1 Mbyte at a time to avoid a lot of copying. Add a
check for going over the column limit.
2018-04-29 13:34:47 +02:00
Bram Moolenaar
1c17ffa461
patch 8.0.1753: various warnings from a static analyser
...
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770 )
2018-04-24 15:19:04 +02:00
Bram Moolenaar
a4baf5b325
patch 8.0.1748: CmdlineEnter command uses backslash instead of slash
...
Problem: CmdlineEnter command uses backslash instead of slash.
Solution: Don't treat the character as a file name. (closes #2837 )
2018-04-22 13:27:44 +02:00
Bram Moolenaar
02e802b2da
patch 8.0.1737: fchown() used when it is not supported
...
Problem: fchown() used when it is not supported.
Solution: Add #ifdef.
2018-04-19 21:15:27 +02:00
Bram Moolenaar
ea39176baa
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
...
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
2018-04-08 13:07:22 +02:00
Bram Moolenaar
333b80acf3
patch 8.0.1660: the terminal API "drop" command doesn't support options
...
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
2018-04-04 22:57:29 +02:00
Bram Moolenaar
b852c3e64d
patch 8.0.1596: no autocommand specifically for opening a terminal window
...
Problem: No autocommand specifically for opening a terminal window.
Solution: Add TerminalOpen. (?, closes #2484 )
2018-03-11 16:55:36 +01:00
Bram Moolenaar
12a96de430
patch 8.0.1595: no autocommand triggered before exiting
...
Problem: No autocommand triggered before exiting.
Solution: Add the ExitPre autocommand event.
2018-03-11 14:44:18 +01:00
Bram Moolenaar
f2bd8ef2b4
patch 8.0.1564: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and
increases code size of tiny Vim by only 40 Kbyte.
2018-03-04 18:08:14 +01:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
5a09343719
patch 8.0.1494: no autocmd triggered in Insert mode with visible popup menu
...
Problem: No autocmd triggered in Insert mode with visible popup menu.
Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt,
closes #2372 , closes #1691 )
Fix that the TextChanged autocommands are not always triggered
when sourcing a script.
2018-02-10 18:15:19 +01:00
Bram Moolenaar
b7407d3fc9
patch 8.0.1459: cannot handle change of directory
...
Problem: Cannot handle change of directory.
Solution: Add the DirChanged autocommand event. (Andy Massimino,
closes #888 ) Avoid changing directory for 'autochdir' too often.
2018-02-03 17:36:27 +01:00
Bram Moolenaar
153b704e20
patch 8.0.1445: cannot act on edits in the command line
...
Problem: Cannot act on edits in the command line.
Solution: Add the CmdlineChanged autocommand event. (xtal8, closes #2603 ,
closes #2524 )
2018-01-31 15:48:32 +01:00
Bram Moolenaar
7e1652c63c
patch 8.0.1394: cannot intercept a yank command
...
Problem: Cannot intercept a yank command.
Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al.,
closes #2333 )
2017-12-16 18:27:02 +01:00
Bram Moolenaar
234d16286a
patch 8.0.1308: the "Reading from stdin" message may be undesired
...
Problem: The "Reading from stdin" message may be undesired and there is no
easy way to skip it.
Solution: Don't show the message with --not-a-term was used.
2017-11-18 14:55:23 +01:00
Bram Moolenaar
ae1e108caa
patch 8.0.1307: compiler warning for ignoring return value
...
Problem: Compiler warning for ignoring return value of ftruncate(). (Tony
Mechelynck)
Solution: Assign returned value to "ignore".
2017-11-17 21:35:24 +01:00
Bram Moolenaar
7567d0b115
patch 8.0.1305: writefile() never calls fsync()
...
Problem: Writefile() never calls fsync().
Solution: Follow the 'fsync' option with override to enable or disable.
2017-11-16 23:04:15 +01:00
Bram Moolenaar
cd142e3369
patch 8.0.1300: file permissions may end up wrong when writing
...
Problem: File permissions may end up wrong when writing.
Solution: Use fchmod() instead of chmod() when possible. Don't truncate
until we know we can change the file.
2017-11-16 17:03:45 +01:00
Bram Moolenaar
462455ee8b
patch 8.0.1284: loading file type detection slows down startup
...
Problem: Loading file type detection slows down startup.
Solution: Store the last pattern of an autocommand event to make appending
quicker.
2017-11-10 21:53:11 +01:00
Bram Moolenaar
c9e9c71409
patch 8.0.1275: CmdlineLeave autocmd prevents fold from opening
...
Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek)
Solution: Save and restore KeyTyped. (closes #2305 )
2017-11-09 12:29:35 +01:00
Bram Moolenaar
5a73e0ca54
patch 8.0.1263: others can read the swap file if a user is careless
...
Problem: Others can read the swap file if a user is careless with his
primary group.
Solution: If the group permission allows for reading but the world
permissions doesn't, make sure the group is right.
2017-11-04 21:35:01 +01:00
Bram Moolenaar
d057301b1f
patch 8.0.1236: Mac features are confusing
...
Problem: Mac features are confusing.
Solution: Make feature names more consistent, add "osxdarwin". Rename
feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178 )
2017-10-28 21:11:06 +02:00
Bram Moolenaar
dc1c981294
patch 8.0.1227: undefined left shift in readfile()
...
Problem: Undefined left shift in readfile(). (Brian 'geeknik' Carpenter)
Solution: Add cast to unsigned. (Dominique Pelle, closes #2253 )
2017-10-27 22:15:24 +02:00
Bram Moolenaar
fafcf0dd59
patch 8.0.1206: no autocmd for entering or leaving the command line
...
Problem: No autocmd for entering or leaving the command line.
Solution: Add CmdlineEnter and CmdlineLeave.
2017-10-19 18:35:51 +02:00
Bram Moolenaar
4033c55eca
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
...
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.
2017-09-16 20:54:51 +02:00
Bram Moolenaar
829aa64cf5
patch 8.0.0988: warning from Covscan about using NULL pointer
...
Problem: Warning from Covscan about using NULL pointer.
Solution: Add extra check for NULL. (zdohnal)
2017-08-23 22:32:35 +02:00
Bram Moolenaar
8cad930a25
patch 8.0.0912: cannot run a job in a hidden terminal
...
Problem: Cannot run a job in a hidden terminal.
Solution: Add option "hidden" and ++hidden.
2017-08-12 14:32:32 +02:00
Bram Moolenaar
1f2903c431
patch 8.0.0761: options not set properly for a terminal buffer
...
Problem: Options of a buffer for a terminal window are not set properly.
Solution: Add "terminal" value for 'buftype'. Make 'buftype' and
'bufhidden' not depend on the quickfix feature.
Also set the buffer name and show "running" or "finished" in the
window title.
2017-07-23 19:51:01 +02:00
Bram Moolenaar
faf29d7f91
patch 8.0.0703: illegal memory access with empty :doau command
...
Problem: Illegal memory access with empty :doau command.
Solution: Check the event for being out of range. (James McCoy)
2017-07-09 11:07:16 +02:00
Bram Moolenaar
e6bf655bc4
patch 8.0.0685: when conversion fails written file may be truncated
...
Problem: When making backups is disabled and conversion with iconv fails
the written file is truncated. (Luo Chen)
Solution: First try converting the file and write the file only when it did
not fail. (partly by Christian Brabandt)
2017-06-27 22:11:51 +02:00
Bram Moolenaar
d4863aa99e
patch 8.0.0548: saving the redo buffer only works one time
...
Problem: Saving the redo buffer only works one time, resulting in the "."
command not working well for a function call inside another
function call. (Ingo Karkat)
Solution: Save the redo buffer at every user function call. (closes #1619 )
2017-04-07 19:50:12 +02:00
Bram Moolenaar
8c752bd6c4
patch 8.0.0486: crash and endless loop when closing windows in autocmd
...
Problem: Crash and endless loop when closing windows in a SessionLoadPost
autocommand.
Solution: Check for valid tabpage. (partly neovim #6308 )
2017-03-19 17:09:56 +01:00
Bram Moolenaar
8820b48654
patch 8.0.0466: still macros that should be all-caps
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
2017-03-16 17:23:31 +01:00