summaryrefslogtreecommitdiff
path: root/src/buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3547: opening the quickfix window triggers BufWinEnter twicev8.2.3547Bram Moolenaar2021-10-201-3/+4
| | | | | | Problem: Opening the quickfix window triggers BufWinEnter twice. (Yorick Peterse) Solution: Only trigger BufWinEnter with "quickfix". (closes #9022)
* patch 8.2.3542: too many comments are old stylev8.2.3542Bram Moolenaar2021-10-191-102/+61
| | | | | Problem: Too many comments are old style. Solution: Change comments to // style. (closes #9021)
* patch 8.2.3525: option variable name does not match option namev8.2.3525Bram Moolenaar2021-10-161-1/+1
| | | | | | Problem: Option variable name does not match option name. (Christ van Willigen) Solution: Rename the variable.
* patch 8.2.3520: cannot define a function for thesaurus completionv8.2.3520Yegappan Lakshmanan2021-10-161-0/+1
| | | | | | Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes #8987, closes 8950)
* patch 8.2.3517: TextChanged does not trigger after TextChangedIv8.2.3517Christian Brabandt2021-10-161-0/+1
| | | | | | Problem: TextChanged does not trigger after TextChangedI. Solution: Store the tick separately for TextChangedI. (Christian Brabandt, closes #8968, closes #8932)
* patch 8.2.3490: superfluous return statementsv8.2.3490=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-091-2/+0
| | | | | | Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977)
* patch 8.2.3476: renaming a buffer on startup may cause using freed memoryv8.2.3476Bram Moolenaar2021-10-041-1/+11
| | | | | Problem: Renaming a buffer on startup may cause using freed memory. Solution: Check if the buffer is used in a window. (closes #8955)
* patch 8.2.3460: some type casts are not neededv8.2.3460=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-021-1/+1
| | | | | Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes #8934)
* patch 8.2.3384: cannot disable modeline for an individual filev8.2.3384Hu Jialun2021-08-281-2/+2
| | | | | Problem: Cannot disable modeline for an individual file. Solution: Recognize "nomodeline" in a modeline. (Hu Jialun, closes #8798)
* patch 8.2.3280: 'virtualedit' local to buffer is not the best solutionv8.2.3280Gary Johnson2021-08-031-1/+0
| | | | | Problem: 'virtualedit' local to buffer is not the best solution. Solution: Make it window-local. (Gary Johnson, closes #8685)
* patch 8.2.3245: the crypt key may appear in a swap partitionv8.2.3245Bram Moolenaar2021-07-291-0/+4
| | | | | | Problem: The crypt key may appear in a swap partition. Solution: When using xchaha20 use sodium_mlock(). (Christian Brabandt, closes #8657)
* patch 8.2.3227: 'virtualedit' can only be set globallyv8.2.3227Gary Johnson2021-07-261-0/+1
| | | | | Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3097: crash when using "quit" at recovery promptv8.2.3097Bram Moolenaar2021-07-041-0/+5
| | | | | | | Problem: Crash when using "quit" at recovery prompt and autocommands are triggered. Solution: Block autocommands when creating an empty buffer to use as the current buffer. (closes #8506)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.2972: "%bd" tries to delete popup window buffers, which failsv8.2.2972Bram Moolenaar2021-06-101-123/+143
| | | | | | Problem: "%bd" tries to delete popup window buffers, which fails. (Ralf Schandl) Solution: Do not try to delete a popup window buffer. (closes #8349)
* patch 8.2.2854: custom statusline cannot contain % itemsv8.2.2854shadmansaleh2021-05-151-4/+69
| | | | | Problem: Custom statusline cannot contain % items. Solution: Add "%{% expr %}". (closes #8190)
* 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)