summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
AgeCommit message (Collapse)Author
2023-10-11patch 9.0.2010: [security] use-after-free from buf_contents_changed()v9.0.2010Christian Brabandt
Problem: [security] use-after-free from buf_contents_changed() Solution: block autocommands Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-03patch 9.0.1859: heap-use-after-free in bt_normal()v9.0.1859Christian Brabandt
Problem: heap-use-after-free in bt_normal() Solution: check that buffer is still valid Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-07-01patch 9.0.1672: tabline highlight wrong after truncated double width labelv9.0.1672zeertzjq
Problem: Tabline highlight wrong after truncated double width label. Solution: Fill up half a double width character later. (closes #12614)
2023-05-27patch 9.0.1583: get E304 when using 'cryptmethod' "xchacha20v2"v9.0.1583Bram Moolenaar
Problem: Get E304 when using 'cryptmethod' "xchacha20v2". (Steve Mynott) Solution: Add 4th crypt method to block zero ID check. Avoid syncing a swap file before reading the file. (closes #12433)
2023-05-23patch 9.0.1575: "file N of M" message is not translatedv9.0.1575Bram Moolenaar
Problem: "file N of M" message is not translated. Solution: Make argument count message translatable. (close #12429)
2023-05-20patch 9.0.1571: RedrawingDisabled not used consistentlyv9.0.1571Bram Moolenaar
Problem: RedrawingDisabled not used consistently. Solution: Avoid RedrawingDisabled going negative. Set RedrawingDisabled in win_split_ins(). (closes #11961)
2023-05-14patch 9.0.1554: code for handling 'switchbuf' is repeatedv9.0.1554Yegappan Lakshmanan
Problem: Code for handling 'switchbuf' is repeated. Solution: Add a function to handle 'switchbuf'. (Yegappan Lakshmanan, closes #12397)
2023-05-12patch 9.0.1546: some commands for opening a file don't use 'switchbuf'v9.0.1546Yegappan Lakshmanan
Problem: Some commands for opening a file don't use 'switchbuf'. Solution: Use 'switchbuf' for more commands. (Yegappan Lakshmanan, closes #12383, closes #12381)
2023-04-29patch 9.0.1497: the ruler percentage can't be localizedv9.0.1497Emir SARI
Problem: The ruler percentage can't be localized. Solution: Use a string that can be translated. (Emir Sari, closes #12311)
2023-04-23patch 9.0.1481: decrypting with libsodium may fail if the library changesv9.0.1481Christian Brabandt
Problem: Decrypting with libsodium may fail if the library changes. Solution: Add parameters used to the encrypted file header. (Christian Brabandt, closes #12279)
2023-04-15patch 9.0.1454: code indenting is confused by macrosv9.0.1454ichizok
Problem: Code indenting is confused by macros. Solution: Put semicolon after the macros instead of inside. (Ozaki Kiichi, closes #12257)
2023-03-07patch 9.0.1391: "clear" macros are not always usedv9.0.1391Yegappan Lakshmanan
Problem: "clear" macros are not always used. Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more places. (Yegappan Lakshmanan, closes #12104)
2023-02-20patch 9.0.1331: illegal memory access when using :ball in Visual modev9.0.1331Pavel Mayorov
Problem: Illegal memory access when using :ball in Visual mode. Solution: Stop Visual mode when using :ball. (Pavel Mayorov, closes #11923)
2023-02-20patch 9.0.1330: handling new value of an option has a long "else if" chainv9.0.1330Yegappan Lakshmanan
Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
2023-02-14patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' setv9.0.1309Bram Moolenaar
Problem: Scrolling two lines with even line count and 'scrolloff' set. Solution: Adjust how the topline is computed. (closes #10545)
2023-02-11patch 9.0.1300: 'statusline' only supports one "%=" itemv9.0.1300Yegappan Lakshmanan
Problem: 'statusline' only supports one "%=" item. Solution: Add support for multiple "%=" items. (TJ DeVries, Yegappan Lakshmanan, closes #11970, closes #11965)
2023-01-09patch 9.0.1166: code is indented more than necessaryv9.0.1166Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11792)
2023-01-04patch 9.0.1143: invalid memory access with bad 'statusline' valuev9.0.1143Bram Moolenaar
Problem: Invalid memory access with bad 'statusline' value. Solution: Avoid going over the NUL at the end.
2023-01-02patch 9.0.1132: code is indented more than neededv9.0.1132Yegappan Lakshmanan
Problem: Code is indented more than needed. Solution: Use an early return to reduce indentation. (Yegappan Lakshmanan, closes #11769)
2022-12-15patch 9.0.1061: cannot display 'showcmd' somewhere elsev9.0.1061Luuk van Baal
Problem: Cannot display 'showcmd' somewhere else. Solution: Add the 'showcmdloc' option. (Luuk van Baal, closes #11684)
2022-11-28patch 9.0.0965: using one window for executing autocommands is insufficientv9.0.0965Bram Moolenaar
Problem: Using one window for executing autocommands is insufficient. Solution: Use up to five windows for executing autocommands.
2022-11-25patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949Bram Moolenaar
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
2022-11-07patch 9.0.0844: handling 'statusline' errors is spread outv9.0.0844Luuk van Baal
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)
2022-10-29patch 9.0.0819v9.0.0819Bram Moolenaar
2022-10-18patch 9.0.0789: dummy buffer ends up in a windowv9.0.0789Bram Moolenaar
Problem: Dummy buffer ends up in a window. Solution: Disallow navigating to a dummy buffer.
2022-10-15patch 9.0.0761: cannot use 'indentexpr' for Lisp indentingv9.0.0761Bram Moolenaar
Problem: Cannot use 'indentexpr' for Lisp indenting. Solution: Add the 'lispoptions' option.
2022-10-13patch 9.0.0747: too many #ifdefsv9.0.0747Martin Tournoij
Problem: Too many #ifdefs. Solution: Gradudate the +cmdline_info feature. (Martin Tournoij, closes #11330)
2022-10-10patch 9.0.0710: quitting/unloading/hiding a terminal does not work properlyv9.0.0710Yee Cheng Chin
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)
2022-10-09patch 9.0.0708: :confirm does not work properly for a terminal bufferv9.0.0708Yee Cheng Chin
Problem: :confirm does not work properly for a terminal buffer. Solution: Handle :confirm for a terminal buffer differently. (Yee Cheng Chin, closes #11312)
2022-10-01patch 9.0.0634: evaluating "expr" options has more overhead than neededv9.0.0634Bram Moolenaar
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'.
2022-09-28patch 9.0.0614: SpellFileMissing autocmd may delete bufferv9.0.0614Bram Moolenaar
Problem: SpellFileMissing autocmd may delete buffer. Solution: Disallow deleting the current buffer to avoid using freed memory.
2022-08-26patch 9.0.0274: netrw plugin does not show remote filesv9.0.0274Bram Moolenaar
Problem: Netrw plugin does not show remote files. Solution: Do read a file when 'buftype' is "acwrite". (closes #10983)
2022-08-26patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" bufferv9.0.0272Bram Moolenaar
Problem: BufReadCmd not triggered when loading a "nofile" buffer. (Maxim Kim) Solution: Call readfile() but bail out before reading a file. (closes #10983)
2022-08-25patch 9.0.0266: compiler warning for unused argumentv9.0.0266Bram Moolenaar
Problem: Compiler warning for unused argument. Solution: Add UNUSED.
2022-08-25patch 9.0.0265: no good reason why the "gf" command isn't in the tiny versionv9.0.0265Bram Moolenaar
Problem: No good reason why the "gf" command is not in the tiny version. Solution: Graduate the file_in_path feature.
2022-08-25patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar
Problem: Too many #ifdefs. Solution: Make some functions always available.
2022-08-25patch 9.0.0262: build failure without the +quickfix featurev9.0.0262Bram Moolenaar
Problem: Build failure without the +quickfix feature. Solution: Add #ifdef.
2022-08-25patch 9.0.0261: bufload() reads a file even if the name is not a file namev9.0.0261Bram Moolenaar
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)
2022-08-22patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245Bram Moolenaar
Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
2022-08-16patch 9.0.0222: no good reason why text objects are only in larger buildsv9.0.0222Bram Moolenaar
Problem: No good reason why text objects are only in larger builds. Solution: Graduate +textobjects.
2022-08-14patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar
Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-13patch 9.0.0198: ml_get error when switching buffer in Visual modev9.0.0198Bram Moolenaar
Problem: ml_get error when switching buffer in Visual mode. Solution: End Visual mode when switching buffer. (closes #10902)
2022-07-27patch 9.0.0095: conditions are always truev9.0.0095zeertzjq
Problem: Conditions are always true. Solution: Remove useless conditions. (closes #10802)
2022-07-25patch 9.0.0069: leaking memory when using text prop with inserted textv9.0.0069Bram Moolenaar
Problem: Leaking memory when using text prop with inserted text. Solution: Clear the growarray with text.
2022-06-29patch 9.0.0002: map functionality outside of map.cv9.0.0002zeertzjq
Problem: Map functionality outside of map.c. Solution: Move f_hasmapto() to map.c. Rename a function. (closes #10611)
2022-05-30patch 8.2.5043: can open a cmdline window from a substitute expressionv8.2.5043Bram Moolenaar
Problem: Can open a cmdline window from a substitute expression. Solution: Disallow opening a command line window when text or buffer is locked.
2022-05-29patch 8.2.5041: cannot close a terminal popup with "NONE" jobv8.2.5041Bram Moolenaar
Problem: Cannot close a terminal popup with "NONE" job. Solution: Adjust the conditions for whether a job is running. (closes #10498)
2022-05-21patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar
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.
2022-05-15patch 8.2.4959: using NULL regexp programv8.2.4959Bram Moolenaar
Problem: Using NULL regexp program. Solution: Check for regexp program becoming NULL in more places.
2022-05-11patch 8.2.4938: crash when matching buffer with invalid patternv8.2.4938Bram Moolenaar
Problem: Crash when matching buffer with invalid pattern. Solution: Check for NULL regprog.