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
Bram Moolenaar
1c46544412
patch 8.0.0452: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
2017-03-12 20:10:05 +01:00
Bram Moolenaar
91acfffc1e
patch 8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
2017-03-12 19:22:36 +01:00
Bram Moolenaar
b5aedf3e22
patch 8.0.0448: some macros are in lower case
...
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
2017-03-12 18:23:53 +01:00
Bram Moolenaar
95c526e1f6
patch 8.0.0365: might free a dict item that wasn't allocated
...
Problem: Might free a dict item that wasn't allocated.
Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for
b:changedtick.
2017-02-25 14:59:34 +01:00
Bram Moolenaar
79518e2ace
patch 8.0.0334: can't access b:changedtick from a dict reference
...
Problem: Can't access b:changedtick from a dict reference.
Solution: Make changedtick a member of the b: dict. (inspired by neovim
#6112 )
2017-02-17 16:31:35 +01:00
Bram Moolenaar
2aa5f696b9
patch 8.0.0227: crash with ff=dos when first line in file has no CR
...
Problem: Crash when 'fileformat' is forced to "dos" and the first line in
the file is empty and does not have a CR character.
Solution: Don't check for CR before the start of the buffer.
2017-01-24 15:46:48 +01:00
Bram Moolenaar
7a2699e868
patch 8.0.0224: change to 'fileformats' from autocmd does not take effect
...
Problem: When 'fileformats' is changed in a BufReadPre auto command, it
does not take effect in readfile(). (Gary Johnson)
Solution: Check the value of 'fileformats' after executing auto commands.
(Christian Brabandt)
2017-01-23 21:31:09 +01:00
Bram Moolenaar
e13b9afe12
patch 8.0.0177: BufEnter autocommand not fired for a directory
...
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 )
2017-01-13 22:01:02 +01:00
Bram Moolenaar
680e015bfe
patch 8.0.0010
...
Problem: Crash when editing file that starts with crypt yeader. (igor2x)
Solution: Check for length of text. (Christian Brabandt) Add a test.
2016-09-25 20:54:11 +02:00
Bram Moolenaar
de653f0880
patch 7.4.2314
...
Problem: No error when deleting an augroup while it's the current one.
Solution: Disallow deleting an augroup when it's the current one.
2016-09-03 16:59:06 +02:00
Bram Moolenaar
b62cc36a60
patch 7.4.2313
...
Problem: Crash when deleting an augroup and listing an autocommand.
(Dominique Pelle)
Solution: Make sure deleted_augroup is valid.
2016-09-03 16:43:53 +02:00
Bram Moolenaar
5c80908ced
patch 7.4.2300
...
Problem: Get warning for deleting autocommand group when the autocommand
using the group is scheduled for deletion. (Pavol Juhas)
Solution: Check for deleted autocommand.
2016-09-01 16:21:48 +02:00
Bram Moolenaar
edf3f97ae2
patch 7.4.2293
...
Problem: Modelines in source code are inconsistant.
Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-29 22:49:24 +02:00
Bram Moolenaar
f04507d132
patch 7.4.2229
...
Problem: Startup test fails on Solaris.
Solution: Recognize a character device. (Danek Duvall)
2016-08-20 15:05:39 +02:00
Bram Moolenaar
f71d7b9ee5
patch 7.4.2189
...
Problem: Cannot detect encoding in a fifo.
Solution: Extend the stdin way of detecting encoding to fifo. Add a test
for detecting encoding on stdin and fifo. (Ken Takata)
2016-08-09 22:14:05 +02:00
Bram Moolenaar
f2c4c39119
patch 7.4.2117
...
Problem: Deleting an augroup that still has autocmds does not give a
warning. The next defined augroup takes its place.
Solution: Give a warning and prevent the index being used for another group
name.
2016-07-29 20:50:24 +02:00
Bram Moolenaar
e99e84497b
patch 7.4.2103
...
Problem: Can't have "augroup END" right after ":au!".
Solution: Check for the bar character before the command argument.
2016-07-26 20:43:40 +02:00
Bram Moolenaar
2932359000
patch 7.4.2101
...
Problem: Looping over windows, buffers and tab pages is inconsistant.
Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
2016-07-24 22:04:11 +02:00
Bram Moolenaar
12c11d5530
patch 7.4.2077
...
Problem: Cannot update 'tabline' when a tab was closed.
Solution: Add the TabClosed autocmd event. (partly by Felipe Morales)
2016-07-19 23:13:03 +02:00
Bram Moolenaar
c917da4b3e
patch 7.4.2075
...
Problem: No autocommand event to initialize a window or tab page.
Solution: Add WinNew and TabNew events. (partly by Felipe Morales)
2016-07-19 22:31:36 +02:00
Bram Moolenaar
a06ecab7a5
patch 7.4.2048
...
Problem: There is still code and help for unsupported systems.
Solution: Remove the code and text. (Hirohito Higashi)
2016-07-16 14:47:36 +02:00
Bram Moolenaar
da4127794a
patch 7.4.2035
...
Problem: On Solaris with ZFS the ACL may get removed.
Solution: Always restore the ACL for Solaris ZFS. (Danek Duvall)
2016-07-14 20:37:07 +02:00
Bram Moolenaar
7c0a2f367f
patch 7.4.2024
...
Problem: More buf_valid() calls can be optimized.
Solution: Use bufref_valid() instead.
2016-07-10 22:11:16 +02:00
Bram Moolenaar
bde9810d61
patch 7.4.1977
...
Problem: With 64 bit changes don't need three calls to sprintf().
Solution: Simplify the code, use vim_snprintf(). (Ken Takata)
2016-07-01 20:03:42 +02:00
Bram Moolenaar
22fcfad292
patch 7.4.1976
...
Problem: Number variables are not 64 bits while they could be.
Solution: Add the num64 feature. (Ken Takata)
2016-07-01 18:17:26 +02:00