summaryrefslogtreecommitdiffstats
path: root/src/evalbuffer.c
AgeCommit message (Collapse)Author
2024-01-23patch 9.1.0049: Make "[Command Line]" a special buffer namev9.1.0049Sean Dewar
Problem: E95 is possible if a buffer called "[Command Line]" already exists when opening the cmdwin. This can also happen if the cmdwin's buffer could not be deleted when closing. Solution: Un-name the cmdwin buffer, and give it a special name instead, similar to what's done for quickfix buffers and for unnamed prompt and scratch buffers. As a result, BufFilePre/Post are no longer fired when opening the cmdwin. Add a "command" key to the dictionary returned by getbufinfo() to differentiate the cmdwin buffer instead. (Sean Dewar) NOTE: This is technically a breaking change... maybe this needs a different solution? (Or maybe this issue can be ignored...) A GitHub search reveals some plugins expect the old behaviour. However, many of those plugins also do not seem to account for the string being translated, so they are subtly broken anyway (not withstanding the fact that you can call any old buffer "[Command Line]" too...) closes: #12819 Signed-off-by: Sean Dewar <seandewar@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
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-27patch 9.0.0961: using deletebufline() may jump to another windowv9.0.0961Bram Moolenaar
Problem: Using deletebufline() may jump to another window. Solution: Do not use a window where the buffer was only in the past. (closes #11594)
2022-11-21patch 9.0.0916: getbufline() is inefficient for getting a single linev9.0.0916Bram Moolenaar
Problem: getbufline() is inefficient for getting a single line. Solution: Add getbufoneline().
2022-11-20patch 9.0.0914: deletebufline() may move marks in the wrong windowv9.0.0914zeertzjq
Problem: deletebufline() may move marks in the wrong window. Solution: Find a window for the buffer being changed. (closes #11583)
2022-11-19patch 9.0.0910: setting lines in another buffer may not work wellv9.0.0910Bram Moolenaar
Problem: Setting lines in another buffer may not work well. Solution: Make sure the buffer being changed has a window. (issue #11558)
2022-11-06patch 9.0.0841: deletebufline() does not always return 1 on failurev9.0.0841zeertzjq
Problem: deletebufline() does not always return 1 on failure. Solution: Refactor the code to make it work more predictable. (closes #11511)
2022-11-05patch 9.0.0837: append() reports failure when not appending anythingv9.0.0837Bram Moolenaar
Problem: append() reports failure when not appending anything. Solution: Only report failure when appending something. (closes #11498)
2022-10-20patch 9.0.0809: test for job writing to buffer failsv9.0.0809Bram Moolenaar
Problem: Test for job writing to buffer fails. Solution: Correct w_topline when deleting a buffer line.
2022-09-08patch 9.0.0416: ml_get error when appending lines in popup windowv9.0.0416Bram Moolenaar
Problem: ml_get error when appending lines in popup window. Solution: Only update w_topline when w_buffer matches curbuf. (closes #11074)
2022-08-25patch 9.0.0263: too many #ifdefsv9.0.0263Bram Moolenaar
Problem: Too many #ifdefs. Solution: Make some functions always available.
2022-07-23patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar
Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
2022-06-16patch 8.2.5107: some callers of rettv_list_alloc() check for not OKv8.2.5107Bram Moolenaar
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
2022-05-22patch 8.2.5002: deletebufline() may change Visual selectionv8.2.5002LemonBoy
Problem: deletebufline() may change Visual selection. Solution: Disable Visual mode when using another buffer. (closes #10469)
2022-05-22patch 8.2.4996: setbufline() may change Visual selectionv8.2.4996Bram Moolenaar
Problem: setbufline() may change Visual selection. (Qiming Zhao) Solution: Disable Visual mode when using another buffer. (closes #10466)
2022-01-08patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle
Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
2022-01-06patch 8.2.4018: ml_get error when win_execute redraws with Visual selectionv8.2.4018Bram Moolenaar
Problem: ml_get error when win_execute redraws with Visual selection. Solution: Disable Visual area temporarily. (closes #9479)
2022-01-04patch 8.2.3996: Vim9: type checking lacks information about declared typev8.2.3996Bram Moolenaar
Problem: Vim9: type checking for list and dict lacks information about declared type. Solution: Add dv_decl_type and lv_decl_type. Refactor the type stack to store two types in each entry.
2021-12-28patch 8.2.3919: Vim9: wrong argument for append() results in two errorsv8.2.3919Bram Moolenaar
Problem: Vim9: wrong argument for append() results in two errors. Solution: Check did_emsg. Also for setline(). Adjust the help for appendbufline().
2021-12-27patch 8.2.3916: no error for passing an invalid line number to append()v8.2.3916Bram Moolenaar
Problem: No error for passing an invalid line number to append(). Solution: In Vim9 script check for a non-negative number. (closes #9417)
2021-12-12patch 8.2.3788: lambda for option that is a function may be freedv8.2.3788Yegappan Lakshmanan
Problem: Lambda for option that is a function may be garbage collected. Solution: Set a reference in the funcref. (Yegappan Lakshmanan, closes #9330)
2021-07-30patch 8.2.3252: duplicated code for adding buffer linesv8.2.3252Yegappan Lakshmanan
Problem: Duplicated code for adding buffer lines. Solution: Move code to a common function. Also move map functions to map.c. (Yegappan Lakshmanan, closes #8665)
2021-07-27patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan
Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
2021-07-21patch 8.2.3194: Vim9: argument types are not checked at compile timev8.2.3194Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, simplify some. (Yegappan Lakshmanan, closes #8598)
2021-07-20patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
2021-03-27patch 8.2.2665: test failuresv8.2.2665Bram Moolenaar
Problem: Test failures. Solution: Check more specific feature. Add missing change.
2021-02-09patch 8.2.2489: current buffer is wrong after deletebufline() failsv8.2.2489Bram Moolenaar
Problem: current buffer is wrong after deletebufline() fails to delete a line in another buffer. Solution: Restore the current buffer.
2021-01-31patch 8.2.2435: setline() gives an error for some typesv8.2.2435Bram Moolenaar
Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.
2021-01-03patch 8.2.2289: Vim9: 'cpo' can become emptyv8.2.2289Bram Moolenaar
Problem: Vim9: 'cpo' can become empty. Solution: Use empty_option instead of an empty string. Update quickfix buffer after restoring 'cpo'. (closes #7608)
2021-01-02patch 8.2.2271: ml_get error when changing hidden buffer in Pythonv8.2.2271Bram Moolenaar
Problem: ml_get error when changing hidden buffer in Python. Solution: Block updating folds. (closes #7598)
2020-10-22patch 8.2.1888: Vim9: getbufline(-1, 1, '$') gives an errorv8.2.1888Bram Moolenaar
Problem: Vim9: Getbufline(-1, 1, '$') gives an error. Solution: Return an empty list. (closes #7180)
2020-09-05patch 8.2.1602: Vim9: cannot use 'true" with getbufinfo()v8.2.1602Bram Moolenaar
Problem: Vim9: cannot use 'true" with getbufinfo(). Solution: Use dict_get_bool(). (closes #6873)
2020-09-04patch 8.2.1590: Vim9: bufnr() doesn't take "true" argumentv8.2.1590Bram Moolenaar
Problem: Vim9: bufnr() doesn't take "true" argument. Solution: use tv_get_bool_chk(). (closes #6863)
2020-09-01patch 8.2.1562: Vim9: error when using "%" where a buffer is expectedv8.2.1562Bram Moolenaar
Problem: Vim9: error when using "%" where a buffer is expected. Solution: Add tv_get_buf_from_arg(). (closes #6814)
2020-08-30patch 8.2.1550: Vim9: bufname('%') gives an errorv8.2.1550Bram Moolenaar
Problem: Vim9: bufname('%') gives an error. Solution: Only give an error for wrong argument type. (closes #6807)
2020-08-17patch 8.2.1477: Vim9: error when using bufnr('%')v8.2.1477Bram Moolenaar
Problem: Vim9: error when using bufnr('%'). Solution: Don't give an error for using a string argument. (closes #6723)
2020-05-30patch 8.2.0853: ml_delete() often called with FALSE argumentv8.2.0853Bram Moolenaar
Problem: ml_delete() often called with FALSE argument. Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-13patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar
Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().
2020-04-21patch 8.2.0615: regexp benchmark stest is old stylev8.2.0615Bram Moolenaar
Problem: Regexp benchmark stest is old style. Solution: Make it a new style test. Fix using a NULL list. Add more tests. (Yegappan Lakshmanan, closes #5963)
2020-04-02patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar
Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
2020-03-01patch 8.2.0339: Vim9: function return type may depend on argumentsv8.2.0339Bram Moolenaar
Problem: Vim9: function return type may depend on arguments. Solution: Instead of a fixed return type use a function to figure out the return type.
2020-01-26patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar
Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
2019-12-17patch 8.2.0019: cannot number of lines of another bufferv8.2.0019Bram Moolenaar
Problem: Cannot number of lines of another buffer. Solution: Add "linecount" to getbufinfo(). (Yasuhiro Matsumoto, closes #5370)
2019-12-01patch 8.1.2378: using old C style commentsv8.1.2378Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-11-30patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar
Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
2019-10-27patch 8.1.2225: the "last used" info of a buffer is under usedv8.1.2225Bram Moolenaar
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)
2019-09-07patch 8.1.2001: some source files are too bigv8.1.2001Bram Moolenaar
Problem: Some source files are too big. Solution: Move buffer and window related functions to evalbuffer.c and evalwindow.c. (Yegappan Lakshmanan, closes #4898)