summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_quickfix.vim
AgeCommit message (Collapse)Author
2024-07-15patch 9.1.0589: vi: d{motion} and cw work differently than expectedv9.1.0589Christian Brabandt
Problem: vi: d{motion} and cw command work differently than expected Solution: add new cpo-z flag to make the behaviour configurable There are two special vi compatible behaviours (or should I say bugs?): 1): cw behaves differently than dw. That is, because cw is special cased by Vim and is effectively aliased to ce. POSIX behaviour is documented here: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html#tag_20_152_13_81 2): d{motion} may make the whole delete operation linewise, if the start and end of the motion are on different lines and there are only blanks before the start and after the end of the motion. Did not find a related POSIX link that requires this behaviour. Both behaviours can be considered inconsistent, but we cannot easily change it, because it would be a backward incompatible change and also incompatible to how classic vi behaved. So let's add the new cpo flag "z", which when not included fixes both behaviours and make them more consistent to what users would expect. This has been requested several times: https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/ALf4odKzEDgJ https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/T6JcOPKN6usJ http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/ https://groups.google.com/d/msg/vim_use/vunNWLFWfQg/MmJh_ZGaAgAJ https://github.com/vim/vim/issues/4390 So in summary, if you want to have the w motion work more consistent, remove the 'z' from the cpo settings. related: #4390 closes: #15263 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-04-29patch 9.1.0381: cbuffer and similar commands don't accept a rangev9.1.0381Christian Brabandt
Problem: cbuffer and similar quickfix and locationlist commands don't accept a range, even so it is documented they should (ilan-schemoul, after 8.1.1241) Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER fixes: #14638 closes: #14657 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-25patch 9.0.2064: cannot use buffer-number for errorformatv9.0.2064Yegappan Lakshmanan
Problem: cannot use buffer-number for errorformat Solution: add support for parsing a buffer number using '%b' in 'errorformat' closes: #13419 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-08-11patch 9.0.1688: cannot store custom data in quickfix listv9.0.1688Tom Praschan
Problem: cannot store custom data in quickfix list Solution: add `user_data` field for the quickfix list closes: #11818 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Tom Praschan <13141438+tom-anders@users.noreply.github.com>
2023-06-07patch 9.0.1616: quickfix text field is truncatedv9.0.1616Shane Harper
Problem: Quickfix text field is truncated. Solution: Fix output of text field after pattern field in quickfix buffer. (Shane Harper, closes #12498)
2023-06-05patch 9.0.1613: some make output gets picked up by 'errorformat'v9.0.1613Gregory Anders
Problem: Some make output gets picked up by 'errorformat'. Solution: Ignore make output by default. (Gregory Anders, closes #12481)
2023-05-27patch 9.0.1582: :stopinsert may not work in a popup close handlerv9.0.1582zeertzjq
Problem: :stopinsert may not work in a popup close handler. (Ben Jackson) Solution: Restore stop_insert_mode when appropriate. (closes #12452, closes #12434)
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2022-12-12patch 9.0.1048: with "screenline" in 'culopt' cursorline highlight is wrongv9.0.1048zeertzjq
Problem: With "screenline" in 'culopt' cursorline highlight is wrong. Solution: Apply the priority logic also when "screenline is in 'culopt'. (closes #11696)
2022-12-02patch 9.0.0990: callback name argument is changed by setqflist()v9.0.0990Bram Moolenaar
Problem: Callback name argument is changed by setqflist(). Solution: Use the expanded function name for the callback, do not store it in the argument. (closes #11653)
2022-11-28patch 9.0.0963: function name does not match autocmd event namev9.0.0963zeertzjq
Problem: Function name does not match autocmd event name. Solution: Rename "optionsset" to "optionset". (closes #11630)
2022-10-20patch 9.0.0805: filetype autocmd may cause freed memory accessv9.0.0805Bram Moolenaar
Problem: Filetype autocmd may cause freed memory access. Solution: Set the quickfix-busy flag while filling the buffer.
2022-10-13patch 9.0.0736: quickfix listing does not handle very long messagesv9.0.0736Yegappan Lakshmanan
Problem: Quickfix listing does not handle very long messages. Solution: Use a growarray instead of a fixed size buffer. (Yegappan Lakshmanan, closes #11357)
2022-10-05patch 9.0.0669: too many delete() calls in testsv9.0.0669Bram Moolenaar
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
2022-08-29patch 9.0.0323: using common name in tests leads to flaky testsv9.0.0323Bram Moolenaar
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
2022-08-29patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is setv9.0.0322Bram Moolenaar
Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
2022-08-27patch 9.0.0286: using freed memory when location list changed in autocmdv9.0.0286Yegappan Lakshmanan
Problem: Using freed memory when location list changed in autocmd. Solution: Return QF_ABORT and handle it. (Yegappan Lakshmanan, closes #10993)
2022-08-24patch 9.0.0260: using freed memory when using 'quickfixtextfunc' recursivelyv9.0.0260Bram Moolenaar
Problem: Using freed memory when using 'quickfixtextfunc' recursively. Solution: Do not allow for recursion.
2022-07-28patch 9.0.0097: long quickfix line is truncated for :clistv9.0.0097Bram Moolenaar
Problem: Long quickfix line is truncated for :clist. Solution: Allocate a buffer if needed.
2022-07-03patch 9.0.0032: in the quickfix window 'cursorline' overrules QuickFixLinev9.0.0032Bram Moolenaar
Problem: In the quickfix window 'cursorline' overrules QuickFixLine highlighting. Solution: Combine the attributes. Add a test. (closes #10654)
2022-06-29patch 9.0.0003: functions are global while they could be localv9.0.0003Yegappan Lakshmanan
Problem: Functions are global while they could be local. Solution: Add "static". Add a few tests. (Yegappan Lakshmanan, closes #10612)
2022-05-27patch 8.2.5029: "textlock" is always zerov8.2.5029zeertzjq
Problem: "textlock" is always zero. Solution: Remove "textlock" and rename "textwinlock" to "textlock". (closes #10489)
2022-04-11patch 8.2.4735: quickfix tests can be a bit hard to readv8.2.4735Yegappan Lakshmanan
Problem: Quickfix tests can be a bit hard to read. Solution: Use heredoc instead of strings and line continuation. (Yegappan Lakshmanan, closes #10145)
2022-03-24patch 8.2.4617: no completion for :scriptnamesv8.2.4617Yegappan Lakshmanan
Problem: No completion for :scriptnames. Solution: Implement :scriptnames completion. (Yegappan Lakshmanan, closes #10005)
2022-02-26patch 8.2.4474: memory allocation failures not tested in quickfix codev8.2.4474Yegappan Lakshmanan
Problem: Memory allocation failures not tested in quickfix code. Solution: Add alloc IDs and tests. (Yegappan Lakshmanan, closes #9848)
2022-02-24patch 8.2.4462: not enough testing for quickfix codev8.2.4462Yegappan Lakshmanan
Problem: Not enough testing for quickfix code. Solution: Add more tests. Fix uncovered problem. (Yegappan Lakshmanan, closes #9839)
2022-02-23patch 8.2.4453: :helpgrep may free an option that was not allocatedv8.2.4453Bram Moolenaar
Problem: :helpgrep may free an option that was not allocated. (Yegappan Lakshmanan) Solution: Check if the value was allocated.
2022-02-08patch 8.2.4329: no support for end line number and column in 'errorformat'v8.2.4329haya14busa
Problem: No support for end line number and column in 'errorformat'. Solution: Add %e and %k. (closes #9624)
2022-02-08patch 8.2.4327: may end up with no current bufferv8.2.4327Bram Moolenaar
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.
2022-02-01patch 8.2.4281: using freed memory with :lopen and :bwipev8.2.4281Bram Moolenaar
Problem: Using freed memory with :lopen and :bwipe. Solution: Do not use a wiped out buffer.
2022-01-29patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar
Problem: Vim9: finding global function without g: prefix but not finding global variable is inconsistent. Solution: Require using g: for a global function. Change the vim9.vim script into a Vim9 script with exports. Fix that import in legacy script does not work.
2021-12-17patch 8.2.3838: cannot use script-local function for setting *func optionsv8.2.3838Yegappan Lakshmanan
Problem: Cannot use script-local function for setting *func options. Solution: Use the script context. (Yegappan Lakshmanan, closes #9362)
2021-12-15patch 8.2.3813: confusing error when using :cc without error listv8.2.3813Bram Moolenaar
Problem: confusing error when using :cc without error list. (Gary Johnson) Solution: Give the "no errors" error.
2021-12-12patch 8.2.3792: setting *func options insufficiently testedv8.2.3792Yegappan Lakshmanan
Problem: Setting *func options insufficiently tested. Solution: Impove tests. (Yegappan Lakshmanan, closes #9337)
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-12-09patch 8.2.3762: if quickfix buffer is wiped out getqflist() still returns itv8.2.3762Yegappan Lakshmanan
Problem: If the quickfix buffer is wiped out getqflist() still returns its number. Solution: Use zero if the buffer is no longer present. (Yegappan Lakshmanan, closes #9306)
2021-12-08patch 8.2.3759: quickfix buffer becomes hidden while still in a windowv8.2.3759Yegappan Lakshmanan
Problem: Quickfix buffer becomes hidden while still in a window. Solution: Check if the closed window is the last window showing the quickfix buffer. (Yegappan Lakshmanan, closes #9303, closes #9300)
2021-12-01patch 8.2.3713: MS-Windows: no error if vimgrep pattern is not matchingv8.2.3713Christian Brabandt
Problem: MS-Windows: No error message if vimgrep pattern is not matching. Solution: Give an error message. (Christian Brabandt, closes #9245, closes #8762)
2021-11-21patch 8.2.3637: typos in test filesv8.2.3637Dominique Pelle
Problem: Typos in test files. Solution: Correct the typos. (Dominique Pellé, closes #9175)
2021-10-20patch 8.2.3547: opening the quickfix window triggers BufWinEnter twicev8.2.3547Bram Moolenaar
Problem: Opening the quickfix window triggers BufWinEnter twice. (Yorick Peterse) Solution: Only trigger BufWinEnter with "quickfix". (closes #9022)
2021-07-31patch 8.2.3254: win_gettype() does not recognize a quickfix windowv8.2.3254Yegappan Lakshmanan
Problem: win_gettype() does not recognize a quickfix window. Solution: Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676)
2021-07-15patch 8.2.3163: location list window may open a wrong filev8.2.3163Wei-Chung Wen
Problem: Location list window may open a wrong file. Solution: Also update the qf_ptr field. (Wei-Chung Wen, closes #8565, closes #8566)
2021-06-20patch 8.2.3025: not enough tests for quickfix end_col and end_lnumv8.2.3025shane.xb.qian
Problem: Not enough tests for quickfix end_col and end_lnum. Solution: Add a few more test cases. (Shane-XB-Qian, closes #8409)
2021-06-19patch 8.2.3019: location list only has the start position.v8.2.3019thinca
Problem: Location list only has the start position. Solution: Make it possible to add an end position. (Shane-XB-Qian, closes #8393)
2021-06-19patch 8.2.3018: 'quickfixtextfunc' formatting is lost when switching buffersv8.2.3018Yegappan Lakshmanan
Problem: Formatting using quickfixtextfunc is lost when updating location lists for different buffers. (Yorick Peterse) Solution: Use the right window for the locaiton list. (Yegappan Lakshmanan, closes #8400, closes #8403)
2021-05-05patch 8.2.2834: Vim9: :cexpr does not work with local variablesv8.2.2834Bram Moolenaar
Problem: Vim9: :cexpr does not work with local variables. Solution: Compile :cexpr.
2021-04-26patch 8.2.2813: cannot grep using fuzzy matchingv8.2.2813Yegappan Lakshmanan
Problem: Cannot grep using fuzzy matching. Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)
2021-03-05patch 8.2.2571: test may leave file behindv8.2.2571Bram Moolenaar
Problem: Test may leave file behind. Solution: Delete the temporary file. Don't profile in the running Vim instance.
2021-02-14patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some placesv8.2.2511Bram Moolenaar
Problem: Vim9: cannot use Vim9 script syntax in some places. Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9" mean ":vim9cmd" instead of ":vim9script".
2021-01-30patch 8.2.2430: :vimgrep expands wildcards twicev8.2.2430Bram Moolenaar
Problem: :vimgrep expands wildcards twice. Solution: Do not expand wildcards a second time.