| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Crash when accessing freed buffer.
Solution: Get 'textwidth' in caller of enter_buffer(). (Christian Brabandt)
|
|
|
|
|
| |
Problem: Compiler warning for tiny build. (Tony Mechelynck)
Solution: Add #ifdefs around variable.
|
|
|
|
|
|
|
| |
Problem: The color column is not correct when entering a buffer. (Ben
Fritz)
Solution: Call check_colorcolumn() if 'textwidth' changed. (Christian
Brabandt)
|
|
|
|
|
| |
Problem: When re-using the current buffer the buffer-local options stay.
Solution: Re-initialize the buffer-local options. (Christian Brabandt)
|
|
|
|
|
|
| |
Problem: buf_spname() is used inconsistently.
Solution: Make the return type a char_u pointer. Check the size of the
returned string.
|
|
|
|
|
| |
Problem: Using uninitialized memory with very long file name.
Solution: Put NUL after text when it is truncated. (ZyX)
|
|
|
|
|
| |
Problem: Crash when using a very long file name. (ZyX)
Solution: Properly check length of buffer space.
|
|
|
|
|
|
|
| |
Problem: It is possible to add replace builtin functions by calling
extend() on g:.
Solution: Add a flag to a dict to indicate it is a scope. Check for
existing functions. (ZyX)
|
|
|
|
|
| |
Problem: Can't remove all signs for a file or buffer.
Solution: Support "*" for the sign id. (Christian Brabandt)
|
|
|
|
|
| |
Problem: Compiler warning for local var shadowing global var.
Solution: Rename the var and move it to an inner block. (Christian Brabandt)
|
|
|
|
|
| |
Problem: Can't build with tiny features.
Solution: Add #ifdef.
|
|
|
|
|
| |
Problem: Crash when an autocommand wipes out a buffer when it is hidden.
Solution: Restore the current window when needed. (Christian Brabandt)
|
|
|
|
|
|
|
| |
Problem: When using :tablose a TabEnter autocommand is triggered too early.
(Karthick)
Solution: Don't trigger *Enter autocommands before closing the tab.
(Christian Brabandt)
|
|
|
|
|
|
|
| |
Problem: When closing a window or buffer autocommands may close it too,
causing problems for where the autocommand was invoked from.
Solution: Add the w_closing and b_closing flags. When set disallow ":q" and
":close" to prevent recursive closing.
|
|
|
|
|
| |
Problem: Can't abort listing placed signs.
Solution: Check "got_int". (Christian Brabandt)
|
|
|
|
|
| |
Problem: Compiler warning for unused argument without some features.
Solution: Add UNUSED.
|
|
|
|
|
|
|
| |
Problem: ":tab drop file" has several problems, including moving the
current window and opening a new tab for a file that already has a
window.
Solution: Refactor ":tab drop" handling. (Hirohito Higashi)
|
|
|
|
|
|
| |
Problem: Crash when a BufWinLeave autocommand closes the only other window.
(Daniel Hunt)
Solution: Abort closing a buffer when it becomes the only one.
|
|
|
|
|
|
|
| |
Problem: ":12verbose call F()" may duplicate text while trying to truncate.
(Thinca)
Solution: Only truncate when there is not enough room. Also check the byte
length of the buffer.
|
|
|
|
|
| |
Problem: Crash on exit when EXITFREE is defined and using tiny features.
Solution: Check for NULL window pointer. (Dominique Pelle)
|
|
|
|
|
| |
Problem: Accessing memory after it is freed when EXITFREE is defined.
Solution: Don't access curwin when firstwin is NULL. (Dominique Pelle)
|
|
|
|
|
| |
Problem: Can't compile with tiny features.
Solution: Add #ifdef around win_valid().
|
|
|
|
|
|
|
|
|
| |
Problem: When closing a window there is a chance that deleting a scrollbar
triggers a GUI resize, which uses the window while it is not in a
valid state.
Solution: Set the buffer pointer to NULL to be able to detect the invalid
situation. Fix a few places that used the buffer pointer
incorrectly.
|
|
|
|
|
|
| |
Problem: Still some RISC OS stuff to remove.
Solution: Remove files and lines. (Hong Xu)
Remove the 'osfiletype' option code.
|
|
|
|
|
|
|
|
| |
Problem: When 'colorcolumn' is set locally to a window, ":new" opens a
window with the same highlighting but 'colorcolumn' is empty.
(Tyru)
Solution: Call check_colorcolumn() after clearing and copying options.
(Christian Brabandt)
|
|
|
|
|
|
| |
Problem: Unsafe string copying.
Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead
of strcat().
|
|
|
|
|
| |
Problem: Complicated 'statusline' causes a crash. (Christian Brabandt)
Solution: Check that the number of items is not too big.
|
|
|
|
|
| |
Problem: Setting 'statusline' to "%!'asdf%' reads uninitialized memory.
Solution: Check for NUL after %.
|
|
|
|
|
|
| |
Problem: No spell highlighting when re-using an empty buffer.
Solution: Clear the spell checking info only when clearing the options for a
buffer. (James Vega)
|
|
|
|
|
| |
Problem: 'cursorbind' is kept in places where 'scrollbind' is reset.
Solution: Reset 'cursorbind'.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
shell command.
Reset 'title' and 'icon' in test47 to avoid the xterm title getting messed up.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Problem: ml_get errors when using ":bprevious" in a BufEnter autocmd.
(Dominique Pelle)
Solution: Clear w_valid when entering another buffer.
|
|
|
|
|
| |
Problem: Warnings from static code analysis.
Solution: Small changes to various lines. (Dominique Pelle)
|
| |
|
| |
|
| |
|
| |
|
| |
|