summaryrefslogtreecommitdiff
path: root/src/buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0844: handling 'statusline' errors is spread outv9.0.0844Luuk van Baal2022-11-071-33/+27
| | | | | | | Problem: Handling 'statusline' errors is spread out. Solution: Pass the option name to the lower levels so the option can be reset there when an error is encountered. (Luuk van Baal, closes #11467)
* patch 9.0.0819v9.0.0819Bram Moolenaar2022-10-291-0/+2
|
* patch 9.0.0789: dummy buffer ends up in a windowv9.0.0789Bram Moolenaar2022-10-181-0/+7
| | | | | Problem: Dummy buffer ends up in a window. Solution: Disallow navigating to a dummy buffer.
* patch 9.0.0761: cannot use 'indentexpr' for Lisp indentingv9.0.0761Bram Moolenaar2022-10-151-0/+1
| | | | | Problem: Cannot use 'indentexpr' for Lisp indenting. Solution: Add the 'lispoptions' option.
* patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij2022-10-131-6/+1
| | | | | | Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
* patch 9.0.0710: quitting/unloading/hiding a terminal does not work properlyv9.0.0710Yee Cheng Chin2022-10-101-5/+17
| | | | | | | | Problem: Quitting/unloading/hiding a terminal buffer does not always work properly. Solution: Avoid that ":q!" leaves an empty buffer behind. ":bunload!" also kills the job and unloads the buffer. ":hide" does not unload the buffer. (Yee Cheng Chin, closes #11323)
* patch 9.0.0708: :confirm does not work properly for a terminal bufferv9.0.0708Yee Cheng Chin2022-10-091-20/+61
| | | | | | Problem: :confirm does not work properly for a terminal buffer. Solution: Handle :confirm for a terminal buffer differently. (Yee Cheng Chin, closes #11312)
* patch 9.0.0634: evaluating "expr" options has more overhead than neededv9.0.0634Bram Moolenaar2022-10-011-2/+2
| | | | | | | Problem: Evaluating "expr" options has more overhead than needed. Solution: Use call_simple_func() for 'foldtext', 'includeexpr', 'printexpr', "expr" of 'spellsuggest', 'diffexpr', 'patchexpr', 'balloonexpr', 'formatexpr', 'indentexpr' and 'charconvert'.
* patch 9.0.0614: SpellFileMissing autocmd may delete bufferv9.0.0614Bram Moolenaar2022-09-281-1/+6
| | | | | Problem: SpellFileMissing autocmd may delete buffer. Solution: Disallow deleting the current buffer to avoid using freed memory.
* patch 9.0.0274: netrw plugin does not show remote filesv9.0.0274Bram Moolenaar2022-08-261-19/+33
| | | | | Problem: Netrw plugin does not show remote files. Solution: Do read a file when 'buftype' is "acwrite". (closes #10983)
* patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" bufferv9.0.0272Bram Moolenaar2022-08-261-3/+7
| | | | | | | Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim Kim) Solution: Call readfile() but bail out before reading a file. (closes #10983)
* patch 9.0.0266: compiler warning for unused argumentv9.0.0266Bram Moolenaar2022-08-251-2/+2
| | | | | Problem: Compiler warning for unused argument. Solution: Add UNUSED.
* patch 9.0.0265: no good reason why the "gf" command isn't in the tiny versionv9.0.0265Bram Moolenaar2022-08-251-2/+0
| | | | | Problem: No good reason why the "gf" command is not in the tiny version. Solution: Graduate the file_in_path feature.
* patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar2022-08-251-39/+14
| | | | | Problem: Too many #ifdefs. Solution: Make some functions always available.
* patch 9.0.0262: build failure without the +quickfix featurev9.0.0262Bram Moolenaar2022-08-251-0/+2
| | | | | Problem: Build failure without the +quickfix feature. Solution: Add #ifdef.
* patch 9.0.0261: bufload() reads a file even if the name is not a file namev9.0.0261Bram Moolenaar2022-08-251-0/+3
| | | | | | | Problem: bufload() reads a file even if the name is not a file name. (Cyker Way) Solution: Do not read the file when the buffer name is not a file name. (closes #10975)
* patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245Bram Moolenaar2022-08-221-12/+11
| | | | | | Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
* patch 9.0.0222: no good reason why text objects are only in larger buildsv9.0.0222Bram Moolenaar2022-08-161-2/+0
| | | | | Problem: No good reason why text objects are only in larger builds. Solution: Graduate +textobjects.
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-1/+1
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 9.0.0198: ml_get error when switching buffer in Visual modev9.0.0198Bram Moolenaar2022-08-131-0/+8
| | | | | Problem: ml_get error when switching buffer in Visual mode. Solution: End Visual mode when switching buffer. (closes #10902)
* patch 9.0.0095: conditions are always truev9.0.0095zeertzjq2022-07-271-2/+2
| | | | | Problem: Conditions are always true. Solution: Remove useless conditions. (closes #10802)
* patch 9.0.0069: leaking memory when using text prop with inserted textv9.0.0069Bram Moolenaar2022-07-251-0/+3
| | | | | Problem: Leaking memory when using text prop with inserted text. Solution: Clear the growarray with text.
* patch 9.0.0002: map functionality outside of map.cv9.0.0002zeertzjq2022-06-291-2/+2
| | | | | Problem: Map functionality outside of map.c. Solution: Move f_hasmapto() to map.c. Rename a function. (closes #10611)
* patch 8.2.5043: can open a cmdline window from a substitute expressionv8.2.5043Bram Moolenaar2022-05-301-6/+1
| | | | | | Problem: Can open a cmdline window from a substitute expression. Solution: Disallow opening a command line window when text or buffer is locked.
* patch 8.2.5041: cannot close a terminal popup with "NONE" jobv8.2.5041Bram Moolenaar2022-05-291-3/+3
| | | | | | Problem: Cannot close a terminal popup with "NONE" job. Solution: Adjust the conditions for whether a job is running. (closes #10498)
* patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar2022-05-211-9/+1
| | | | | | Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
* patch 8.2.4959: using NULL regexp programv8.2.4959Bram Moolenaar2022-05-151-13/+22
| | | | | Problem: Using NULL regexp program. Solution: Check for regexp program becoming NULL in more places.
* patch 8.2.4938: crash when matching buffer with invalid patternv8.2.4938Bram Moolenaar2022-05-111-1/+1
| | | | | Problem: Crash when matching buffer with invalid pattern. Solution: Check for NULL regprog.
* patch 8.2.4929: off-by-one error in in statusline itemv8.2.4929LemonBoy2022-05-091-1/+2
| | | | | Problem: Off-by-one error in in statusline item. Solution: Subtrace one less. (closes #10394, closes #5599)
* patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar2022-05-071-8/+8
| | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
* patch 8.2.4901: NULL pointer access when using invalid patternv8.2.4901Bram Moolenaar2022-05-071-1/+1
| | | | | Problem: NULL pointer access when using invalid pattern. Solution: Check for failed regexp program.
* patch 8.2.4791: events triggered in different order when reusing bufferv8.2.4791Charlie Groves2022-04-191-18/+3
| | | | | | Problem: Autocmd events triggered in different order when reusing an empty buffer. Solution: Call buff_freeall() earlier. (Charlie Groves, closes #10198)
* patch 8.2.4731: the changelist index is not remembered per bufferv8.2.4731LemonBoy2022-04-101-0/+4
| | | | | | Problem: The changelist index is not remembered per buffer. Solution: Keep the changelist index per window and buffer. (closes #10135, closes #2173)
* patch 8.2.4702: C++ scope labels are hard-codedv8.2.4702Tom Praschan2022-04-071-0/+1
| | | | | | Problem: C++ scope labels are hard-coded. Solution: Add 'cinscopedecls' to define the labels. (Rom Praschan, closes #10109)
* patch 8.2.4685: when a swap file is found for a popup there is no dialogv8.2.4685Bram Moolenaar2022-04-041-3/+6
| | | | | | Problem: When a swap file is found for a popup there is no dialog and the buffer is loaded anyway. Solution: Silently load the buffer read-only. (closes #10073)
* patch 8.2.4670: memory allocation failures for new tab page not testedv8.2.4670Yegappan Lakshmanan2022-04-031-1/+1
| | | | | | Problem: Memory allocation failures for new tab page not tested. Solution: Add tests with failing memory allocation. (Yegappan Lakshmanan, closes #10067)
* patch 8.2.4668: buffer allocation failures insufficiently testedv8.2.4668Yegappan Lakshmanan2022-04-021-1/+1
| | | | | | Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes #10064)
* patch 8.2.4631: crash when switching window in BufWipeout autocommandv8.2.4631Bram Moolenaar2022-03-261-0/+4
| | | | | | Problem: Crash when switching window in BufWipeout autocommand. Solution: Put any buffer in the window to avoid it being NULL. (closes #10024)
* patch 8.2.4609: :unhide does not check for failing to close a windowv8.2.4609Bram Moolenaar2022-03-221-10/+14
| | | | | | Problem: :unhide does not check for failing to close a window. Solution: When closing a window fails continue with the next one. Do not try closing the autocmd window. (closes #9984)
* patch 8.2.4483: command completion makes two rounds to collect matchesv8.2.4483Yegappan Lakshmanan2022-02-281-28/+29
| | | | | | Problem: Command completion makes two rounds to collect matches. Solution: Use a growarray to collect matches. (Yegappan Lakshmanan, closes #9860)
* patch 8.2.4463: completion only uses strict matchingv8.2.4463Yegappan Lakshmanan2022-02-241-53/+116
| | | | | | Problem: Completion only uses strict matching. Solution: Add the "fuzzy" item for 'wildoptions'. (Yegappan Lakshmanan, closes #9803)
* patch 8.2.4419: illegal memory access when using 20 highlightsv8.2.4419Brandon Richardson2022-02-191-4/+9
| | | | | | Problem: Illegal memory access when using exactly 20 highlights. Solution: Add one more item in the array. (Brandon Richardson, closes #9800)
* patch 8.2.4391: command line executed when typing Esc in the GUIv8.2.4391Bram Moolenaar2022-02-151-0/+4
| | | | | | Problem: Command line executed when typing Esc in the GUI. Solution: Move saving/restoring KeyTyped to build_stl_str_hl(). (closes #9783)
* patch 8.2.4327: may end up with no current bufferv8.2.4327Bram Moolenaar2022-02-081-4/+22
| | | | | | Problem: May end up with no current buffer. Solution: When deleting the current buffer to not pick a quickfix buffer as the new current buffer.
* patch 8.2.4281: using freed memory with :lopen and :bwipev8.2.4281Bram Moolenaar2022-02-011-4/+10
| | | | | Problem: Using freed memory with :lopen and :bwipe. Solution: Do not use a wiped out buffer.
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-2/+2
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4179: 'foldtext' is evaluated in the current script contextv8.2.4179Bram Moolenaar2022-01-221-2/+2
| | | | | Problem: 'foldtext' is evaluated in the current script context. Solution: Use the script context where the option was set.
* patch 8.2.4166: undo synced when switching buffer in another windowv8.2.4166Bram Moolenaar2022-01-201-1/+5
| | | | | Problem: Undo synced when switching buffer in another window. Solution: Do not sync undo when not needed. (closes #9575)
* patch 8.2.4144: cannot load libsodium dynamicallyv8.2.4144K.Takata2022-01-191-2/+3
| | | | | Problem: Cannot load libsodium dynamically. Solution: Support dynamic loading on MS-Windows. (Ken Takata, closes #9554)
* patch 8.2.4091: virtcol is recomputed for statusline unnecessarilyv8.2.4091zeertzjq2022-01-141-9/+1
| | | | | Problem: Virtcol is recomputed for statusline unnecessarily. Solution: Just use "w_virtcol". (closes #9523)