summaryrefslogtreecommitdiff
path: root/src/buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2569: 'fillchars' "stl" and "stlnc" items must be single bytev8.2.2569Bram Moolenaar2021-03-041-21/+20
| | | | | | Problem: 'fillchars' "stl" and "stlnc" items must be single byte. Solution: Accept multi-byte characters. (Christian Wellenbrock, Yegappan Lakshmanan, closes #7927)
* patch 8.2.2518: 'listchars' should be window-localv8.2.2518Bram Moolenaar2021-02-151-1/+1
| | | | | | Problem: 'listchars' should be window-local. Solution: Make 'listchars' global-local. (Yegappan Lakshmanan, Marco Hinz, closes #5206, closes #7850)
* patch 8.2.2476: using freed memory when splitting window while closing bufferv8.2.2476Bram Moolenaar2021-02-071-2/+8
| | | | | | Problem: Using freed memory when using an autocommand to split a window while a buffer is being closed. Solution: Disallow splitting when the buffer has b_locked_split set.
* patch 8.2.2397: Vim9: "%%" not seen as alternate file name for ":bdel"v8.2.2397Bram Moolenaar2021-01-231-4/+7
| | | | | | Problem: Vim9: "%%" not seen as alternate file name for commands with a buffer name argument. Solution: Recognize "%%" like "#". (closes #7732)
* patch 8.2.2354: crash with a weird combination of autocommandsv8.2.2354Bram Moolenaar2021-01-151-9/+12
| | | | | Problem: Crash with a weird combination of autocommands. Solution: Increment b_nwindows when needed. (closes #7674)
* patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval featurev8.2.2238Bram Moolenaar2020-12-281-6/+5
| | | | | Problem: Vim9: cannot load a Vim9 script without the +eval feature. Solution: Support Vim9 script syntax without the +eval feature.
* patch 8.2.2182: Vim9: value of 'magic' is still relevantv8.2.2182Bram Moolenaar2020-12-211-1/+1
| | | | | Problem: Vim9: value of 'magic' is still relevant. Solution: Always behave like 'magic' is on in Vim9 script (closes #7509)
* patch 8.2.2040: terminal buffer disappears even when 'bufhidden' is "hide"v8.2.2040Bram Moolenaar2020-11-241-0/+5
| | | | | | | Problem: Terminal buffer disappears even when 'bufhidden' is "hide". (Sergey Vlasov) Solution: Check 'bufhiddden' when a terminal buffer becomes hidden. (closes #7358)
* patch 8.2.1959: crash when terminal buffer name is made emptyv8.2.1959Bram Moolenaar2020-11-051-1/+12
| | | | | Problem: Crash when terminal buffer name is made empty. (Dhiraj Mishra) Solution: Fall back to "[No Name]". (closes #7262)
* patch 8.2.1919: assert_fails() setting emsg_silent changes normal executionv8.2.1919Bram Moolenaar2020-10-281-1/+1
| | | | | Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
* patch 8.2.1909: number of status line items is limited to 80v8.2.1909Bram Moolenaar2020-10-261-102/+138
| | | | | Problem: Number of status line items is limited to 80. Solution: Dynamically allocate the arrays. (Rom Grk, closes #7181)
* patch 8.2.1905: the wininfo list may contain stale entriesv8.2.1905Bram Moolenaar2020-10-251-8/+17
| | | | | | Problem: The wininfo list may contain stale entries. Solution: When closing a window remove any other entry where the window pointer is NULL.
* patch 8.2.1904: still using default option values after using ":badd +1"v8.2.1904Bram Moolenaar2020-10-251-7/+17
| | | | | | Problem: Still using default option values after using ":badd +1". Solution: Find a window where options were set. Don't set the window when using ":badd".
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-8/+8
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1280: Ex command error cannot contain an argumentv8.2.1280Bram Moolenaar2020-07-231-1/+1
| | | | | | Problem: Ex command error cannot contain an argument. Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where possible.
* patch 8.2.1259: empty group in 'tabline' may cause using an invalid pointerv8.2.1259Bram Moolenaar2020-07-211-1/+8
| | | | | Problem: Empty group in 'tabline' may cause using an invalid pointer. Solution: Set the group start position. (closes #6505)
* patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049Bram Moolenaar2020-06-241-2/+2
| | | | | | Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command.
* patch 8.2.0966: 'shortmess' flag "n" not used in two placesv8.2.0966Bram Moolenaar2020-06-121-1/+1
| | | | | | Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes #6245, closes #6244)
* patch 8.2.0953: spell checking doesn't work for CamelCased wordsv8.2.0953Bram Moolenaar2020-06-101-0/+1
| | | | | | Problem: Spell checking doesn't work for CamelCased words. Solution: Add the "camel" value in the new option 'spelloptions'. (closes #1235)
* patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar2020-05-301-2/+2
| | | | | Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-3/+6
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-4/+4
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0464: typos and other small problemsv8.2.0464Bram Moolenaar2020-03-271-0/+3
| | | | | Problem: Typos and other small problems. Solution: Fix the typos. Add missing files to the distribution.
* patch 8.2.0371: crash with combination of terminal popup and autocmdv8.2.0371Bram Moolenaar2020-03-111-0/+8
| | | | | | Problem: Crash with combination of terminal popup and autocmd. Solution: Disallow closing a popup that is the current window. Add a check that the current buffer is valid. (closes #5754)
* patch 8.2.0235: draw error when an empty group is removed from 'statusline'v8.2.0235Bram Moolenaar2020-02-081-0/+4
| | | | | Problem: Draw error when an empty group is removed from 'statusline'. Solution: Do not use highlighting from a removed group.
* patch 8.2.0156: various typos in source files and testsv8.2.0156Bram Moolenaar2020-01-261-1/+2
| | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
* patch 8.2.0098: exe stack length can be wrong without being detectedv8.2.0098Bram Moolenaar2020-01-071-0/+3
| | | | | Problem: Exe stack length can be wrong without being detected. Solution: Add a check when ABORT_ON_INTERNAL_ERROR is defined.
* patch 8.2.0082: when reusing a buffer listeners are not clearedv8.2.0082Bram Moolenaar2020-01-031-0/+1
| | | | | Problem: When reusing a buffer listeners are not cleared. (Axel Forsman) Solution: Clear listeners when reusing a buffer. (closes #5431)
* patch 8.2.0064: diffmode completion doesn't use per-window settingv8.2.0064Bram Moolenaar2019-12-301-2/+6
| | | | | Problem: Diffmode completion doesn't use per-window setting. Solution: Check if a window is in diff mode. (Dominique Pell, closes #5419)
* patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar2019-12-291-10/+4
| | | | | | Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
* patch 8.2.0054: :diffget and :diffput don't have good completionv8.2.0054Bram Moolenaar2019-12-291-0/+9
| | | | | Problem: :diffget and :diffput don't have good completion. Solution: Add proper completion. (Dominique Pelle, closes #5409)
* patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035Bram Moolenaar2019-12-231-8/+4
| | | | | Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages.
* patch 8.2.0004: get E685 and E931 if buffer reload is interruptedv8.2.0004Bram Moolenaar2019-12-141-16/+26
| | | | | Problem: Get E685 and E931 if buffer reload is interrupted. Solution: Do not abort deleting a dummy buffer. (closes #5361)
* patch 8.1.2418: bufnr('$') is wrong after recycling popup bufferv8.1.2418Bram Moolenaar2019-12-101-0/+19
| | | | | Problem: bufnr('$') is wrong after recycling popup buffer. Solution: Sort the buffer list by buffer number. (closes #5335)
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-2/+2
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2368: using old C style commentsv8.1.2368Bram Moolenaar2019-11-301-458/+457
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2363: ml_get error when accessing Visual area in 'statusline'v8.1.2363Bram Moolenaar2019-11-301-0/+6
| | | | | Problem: ml_get error when accessing Visual area in 'statusline'. Solution: Disable Visual mode when using another window. (closes #5278)
* patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar2019-11-171-1/+1
| | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
* patch 8.1.2267: compiler warning for uninitialized variablev8.1.2267Bram Moolenaar2019-11-061-3/+4
| | | | | Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Rearrange the code.
* patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar2019-11-021-1/+1
| | | | | | Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
* patch 8.1.2225: the "last used" info of a buffer is under usedv8.1.2225Bram Moolenaar2019-10-271-4/+84
| | | | | | Problem: The "last used" info of a buffer is under used. Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used field. (Andi Massimino, closes #4722)
* patch 8.1.2107: various memory leaks reported by asanv8.1.2107Bram Moolenaar2019-10-011-0/+2
| | | | | Problem: Various memory leaks reported by asan. Solution: Free the memory. (Ozaki Kiichi, closes #5003)
* patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar2019-09-281-2/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
* patch 8.1.2073: when editing a buffer 'colorcolumn' may not workv8.1.2073Bram Moolenaar2019-09-251-11/+9
| | | | | | Problem: When editing a buffer 'colorcolumn' may not work. Solution: Set the buffer before copying option values. Call check_colorcolumn() after copying window options.
* patch 8.1.2001: some source files are too bigv8.1.2001Bram Moolenaar2019-09-071-105/+0
| | | | | | Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes #4898)
* patch 8.1.1971: manually enabling features causes build errorsv8.1.1971Bram Moolenaar2019-09-031-26/+18
| | | | | Problem: Manually enabling features causes build errors. (John Marriott) Solution: Adjust #ifdefs.
* patch 8.1.1908: every popup window consumes a buffer numberv8.1.1908Bram Moolenaar2019-08-211-10/+43
| | | | | | Problem: Every popup window consumes a buffer number. Solution: Recycle buffers only used for popup windows. Do not list popup window buffers.
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-6/+0
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1895: using NULL pointer when out of memoryv8.1.1895Bram Moolenaar2019-08-201-1/+6
| | | | | | Problem: Using NULL pointer when out of memory. Solution: Bail out or skip the code using the pointer. (Zu-Ming Jiang, closes #4805, closes #4843, closes #4939, closes #4844)
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-3/+9
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)