aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.2.1102: Coverity gets confused by an unnecessary NULL checkJan Edmund Lazo2020-10-25
| | | | | | Problem: Coverity gets confused by an unnecessary NULL check. Solution: Remove the check for NULL. https://github.com/vim/vim/commit/90049492215aa458b90215b8e0fc50f04d5ad270
* Revert "vim-patch:8.1.0877: new buffer used every time the quickfix window ↵Jan Edmund Lazo2020-10-20
| | | | | | | | is opened" This reverts commit e82b8ddef16eb7ce96e1d3d063ff529f79ed6bb2. Fix https://github.com/neovim/neovim/issues/13104
* Revert "vim-patch:8.1.1015: quickfix buffer shows up in list, can't get ↵Jan Edmund Lazo2020-10-20
| | | | | | buffer number" This reverts commit 4cd69151cf39cd4c3f083da2275f17206dcf5bc3.
* vim-patch:8.2.1871: using %v in 'errorformat' may fail before %ZJan Edmund Lazo2020-10-20
| | | | | | Problem: Using %v in 'errorformat' may fail before %Z. Solution: Set qf_viscol only when qf_col is set. (closes vim/vim#7169) https://github.com/vim/vim/commit/c95940c06a125d3afe6516f11f8b2f5697a6b3b9
* vim-patch:8.2.1557: crash in :vimgrep when started as "vim -n"Jan Edmund Lazo2020-10-17
| | | | | | Problem: Crash in :vimgrep when started as "vim -n". (Raul Segura) Solution: Check mfp pointer. (Yegappan Lakshmanan, closes vim/vim#6827) https://github.com/vim/vim/commit/997cd1a17f030d004b334d17cf1c1c57050c9906
* vim-patch:8.2.1384: no ATTENTION prompt for :vimgrep first match fileJan Edmund Lazo2020-10-17
| | | | | | | Problem: No ATTENTION prompt for :vimgrep first match file. Solution: When there is an existing swap file do not keep the dummy buffer. (closes vim/vim#6649) https://github.com/vim/vim/commit/8ce4b7ed85a7c6499bea5eb1312c85ee7a00e364
* Merge pull request #13030 from Happy-Dude/quickfix_warningJan Edmund Lazo2020-10-16
|\ | | | | Fix quickfix.c warning message on EMSGN macro #hacktoberfest
| * Fix quickfix.c warning message on EMSGN macroStanley Chan2020-10-02
| | | | | | | | | | | | | | | | | | | | | | ``` /Users/stahn_mchan/sources/neovim/src/nvim/quickfix.c:1775:5: warning: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Wformat] EMSGN("quickfix_busy not zero on exit: %ld", (long)quickfix_busy); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %lld /Users/stahn_mchan/sources/neovim/src/nvim/message.h:49:63: note: expanded from macro 'EMSGN' ```
* | vim-patch:8.2.1101: no error when using wrong arguments for setqflist()Jan Edmund Lazo2020-10-11
| | | | | | | | | | | | | | Problem: No error when using wrong arguments for setqflist() or setloclist(). Solution: Check for the error. https://github.com/vim/vim/commit/be7a50c22f63478a6e64fe6b932a847830191b95
* | vim-patch:8.1.1036: quickfix function arguments are inconsistentJan Edmund Lazo2020-10-10
| | | | | | | | | | | | | | Problem: Quickfix function arguments are inconsistent. Solution: Pass a list pointer to more functions. (Yegappan Lakshmanan, closes vim/vim#4149) https://github.com/vim/vim/commit/9afe5e9cc01c8ee6811f641746bb5d0d157ea17e
* | vim-patch:8.1.1015: quickfix buffer shows up in list, can't get buffer numberJan Edmund Lazo2020-10-10
| | | | | | | | | | | | | | | | Problem: Quickfix buffer shows up in list, can't get buffer number. Solution: Make the quickfix buffer unlisted when the quickfix window is closed. get the quickfix buffer number with getqflist(). (Yegappan Lakshmanan, closes vim/vim#4113) https://github.com/vim/vim/commit/647e24ba3dbf7ff448aa471b1a659a18267ae056
* | vim-patch:8.1.0988: deleting location list buffer breaks location list windowJan Edmund Lazo2020-10-10
| | | | | | | | | | | | | | | | | | | | Problem: Deleting a location list buffer breaks location list window functionality. Solution: (Yegappan Lakshmanan, closes vim/vim#4056) https://github.com/vim/vim/commit/d82a81cad93708a6c180e59119db4818cc38c1a9 Cherry-pick Xqbuf_test() changes from patch 8.1.0892. Patch 8.1.0892 triggers a memory leak.
* | vim-patch:8.1.0877: new buffer used every time the quickfix window is openedJan Edmund Lazo2020-10-10
| | | | | | | | | | | | Problem: New buffer used every time the quickfix window is opened. Solution: Reuse the buffer. (Yegappan Lakshmanan, closes vim/vim#3902) https://github.com/vim/vim/commit/ee8188fc74a7cf9ee7acb634b2bb7a032d0cb24c
* | vim-patch:8.1.0720: cannot easily change the current quickfx list indexJan Edmund Lazo2020-10-10
| | | | | | | | | | | | | | Problem: Cannot easily change the current quickfx list index. Solution: Add the "idx" argument to setqflist(). (Yegappan Lakshmanan, closes vim/vim#3701) https://github.com/vim/vim/commit/5b69c22fd2bf0c0d32aab90ee4c7ef74259d2c4c
* | vim-patch:8.1.0523: opening window from quickfix leaves empty buffer behindJan Edmund Lazo2020-10-10
| | | | | | | | | | | | | | | | Problem: Opening window from quickfix leaves empty buffer behind. Solution: Add qf_jump_newwin(). (Yegappan Lakshmanan, closes vim/vim#2574) https://github.com/vim/vim/commit/b244373becbec124bee20dbbfd05365586cda8cd Close https://github.com/neovim/neovim/pull/12855
* | Merge pull request #12904 from erw7/vim-8.1.0431Jan Edmund Lazo2020-10-10
|\ \ | | | | | | vim-patch:8.{1.0431,1.0489,2.1677}
| * | vim-patch:8.2.1677: memory access errors when calling setloclist() in ↵erw72020-09-15
| | | | | | | | | | | | | | | | | | | | | | | | autocommand Problem: Memory access errors when calling setloclist() in an autocommand. Solution: Give an error if the list was changed unexpectedly. (closes vim/vim#6946) https://github.com/vim/vim/commit/4d170af0a9379da64d67dc3fa7cc7297956c6f52
| * | vim-patch:8.1.0489: crash when autocmd clears vimpgrep location listerw72020-09-14
| | | | | | | | | | | | | | | | | | Problem: Crash when autocmd clears vimpgrep location list. Solution: Return from qf_jump_edit_buffer() early. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/b6f1480a6a8b1a6fa4d5da97aeb5f4755b71eb91
| * | vim-patch:8.1.0431: the qf_jump() function is too longerw72020-09-13
| | | | | | | | | | | | | | | | | | Problem: The qf_jump() function is too long. Solution: Refactor to split it into several functions. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/6dae96ef7ad56191c13c4993f04cbfd450d91ad2
* | | vim-patch:8.2.1599: missing line end when skipping a long line with :cgetfileJan Edmund Lazo2020-10-07
| | | | | | | | | | | | | | | | | | Problem: Missing line end when skipping a long line with :cgetfile. Solution: Fix off-by-one error. (closes vim/vim#6870) https://github.com/vim/vim/commit/59941cbd8035415d68683edc4e571306b10669ad
* | | vim-patch:8.1.2401: :cexpr does not handle | in expressionJan Edmund Lazo2020-10-06
| |/ |/| | | | | | | | | Problem: :cexpr does not handle | in expression. Solution: Remove EX_TRLBAR and set nextcmd pointer. https://github.com/vim/vim/commit/88a3e2b2ac33e3bb4b7cf9132eb75db051e8f4ed
* | vim-patch:8.2.1775: MS-Windows: adding a long quickfix list is slow (#13019)Jan Edmund Lazo2020-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.1775: MS-Windows: adding a long quickfix list is slow Problem: MS-Windows: adding a long quickfix list is slow. Solution: Shorten the buffer name only for the first entry. (Yegappan Lakshmanan, closes vim/vim#7039, closes vim/vim#7033) https://github.com/vim/vim/commit/8ec92c977976d9e9225183e36a80e6b0cdbf1f51 N/A patches for version.c: vim-patch:8.1.2226: cannot use system copy/paste in non-xterm terminals Problem: Cannot use system copy/paste in non-xterm terminals. Solution: Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim. https://github.com/vim/vim/commit/5b418992cf254137fde2a14d7066fbea5afddb28 vim-patch:8.2.1772: cannot use CTRL-W <Down> to move out of a terminal window Problem: Cannot use CTRL-W <Down> to move out of a terminal window. Solution: Use special_to_buf() instead of mb_char2bytes(). (closes vim/vim#7045) https://github.com/vim/vim/commit/f43e7ac4eee22dbb26fc069ec9a3d1598ec8dfe9 vim-patch:8.2.1774: GTK: hang when forced to exit Problem: GTK: hang when forced to exit. Solution: Do not clean up "mainwin" when really_exiting is set. (Zdenek Dohnal, closes vim/vim#7042) https://github.com/vim/vim/commit/32fbc4f247a31e35ade0939542e11aa033a2554f vim-patch:8.2.1776: filetype.vim may be loaded twice Problem: Filetype.vim may be loaded twice. Solution: Do "syntax on" after "filetype on". (Adam Stankiewicz, closes vim/vim#7049) https://github.com/vim/vim/commit/17bb4d4607a95e13e913519af106f1bf8b26c178
* | vim-patch:8.1.0499: :2vimgrep causes an ml_get errorJan Edmund Lazo2020-09-13
|/ | | | | | Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
* vim-patch:8.1.2340: quickfix test fails under valgrind and asanJan Edmund Lazo2020-08-02
| | | | | | | | Problem: Quickfix test fails under valgrind and asan. Solution: Make sure long line does not overflow IObuff. (Dominique Pelle, closes vim/vim#5263) Put back fix for large terminals. (Yegappan Lakshmanan, closes vim/vim#5264) https://github.com/vim/vim/commit/a106e6cde682bda4ad10ed745acb51975fcb02e0
* vim-patch:8.2.0381: using freed memory with :lvimgrep and autocommandJan Edmund Lazo2020-04-13
| | | | | | | Problem: Using freed memory with :lvimgrep and autocommand. (extracted from POC by Dominique Pelle) Solution: Avoid deleting a dummy buffer used in a window. (closes vim/vim#5777) https://github.com/vim/vim/commit/2573af3519ad062ddad647b97e32090f106f2ac1
* quickfix.c: Fix vimgrep regression #11907cballam2020-02-19
| | | | | | | Fix ex_vimgrep to properly ignore filetype when running vimgrep. This restores vimgrep to behaviour before function refactoring. fix #9842 fix #11856
* vim-patch:8.2.0241: crash when setting 'buftype' to "quickfix"Jan Edmund Lazo2020-02-16
| | | | | | Problem: Crash when setting 'buftype' to "quickfix". Solution: Check that error list is not NULL. (closes vim/vim#5613) https://github.com/vim/vim/commit/99234f29aa8767f2e71bb1f5db6ee0131bc8e64e
* quickfix: qf_parse_fmt_plus never failsJan Edmund Lazo2019-12-26
|
* clang/'Dead store': remove dead codeJan Edmund Lazo2019-12-26
|
* vim-patch:8.1.2315: switchbuf=uselast #11480Daniel Hahler2019-11-29
| | | | | Problem: Not always using the right window when jumping to an error. Solution: Add the "uselast" flag in 'switchbuf'. (closes vim/vim#1652) https://github.com/vim/vim/commit/539aa6b25eaea91dfd1a175cd053c0f259fa2e58
* vim-patch:8.1.0461: quickfix: change comment style #11453Jan Edmund Lazo2019-11-24
| | | | | Problem: Quickfix code uses too many /* */ comments. Solution: Change to // comments. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/00bf8cd2115be7c14258aee48c0a7568147c9cd7
* quickfix: fix dead assignmentJan Edmund Lazo2019-11-13
| | | | Cherry-picked from vim patch 8.1.1489.
* vim-patch:8.1.0622: adding quickfix items marks items as valid errors #11373Jan Edmund Lazo2019-11-11
| | | | | | Problem: Adding quickfix items marks items as valid errors. (Daniel Hahler) Solution: Check when items are valid. (Yegappan Lakshmanan, closes vim/vim#3683, closes vim/vim#3633) https://github.com/vim/vim/commit/9752c72f492312acd1c84e673864faed31a3bc97
* quickfix: fix pvs/v547Jan Edmund Lazo2019-11-09
|
* Merge PR #11291 from shanesmith/vim-8.1.1256-take2Marco Hinz2019-11-04
|\
| * Minor updates and comment format fixesShane Smith2019-11-01
| | | | | | | | | | | | | | - cursel argument for qf_list_entry() changed from int to bool - Return type of qf_list_has_valid_entries() changed from int to bool - Unnecessary size_t casting in qf_new_list removed - Use Doxygen-style comment blocks for functions
| * vim-patch:8.1.1256: cannot navigate through errors relative to the cursorShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Cannot navigate through errors relative to the cursor. Solution: Add :cabove, :cbelow, :labove and :lbelow. (Yegappan Lakshmanan, closes vim/vim#4316) https://github.com/vim/vim/commit/3ff33114d70fc0f7e9c3187c5fec9028f6499cf3
| * vim-patch:8.1.1112: duplicate code in quickfix fileShane Smith2019-10-27
| | | | | | | | | | | | Problem: Duplicate code in quickfix file. Solution: Move code into functions. (Yegappan Lakshmanan, closes vim/vim#4207) https://github.com/vim/vim/commit/87f59b09ea4b9af2712598374a6044f5fa1b54a4
| * vim-patch:8.1.1098: quickfix code duplicationShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Quickfix code duplication. Solution: Refactor the qf_init_ext() function. (Yegappan Lakshmanan, closes vim/vim#4193) https://github.com/vim/vim/commit/95946f1209ad088bfe55c83256c299156c11d8e0
| * vim-patch:8.1.1062: quickfix code is repeatedShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Quickfix code is repeated. Solution: Define FOR_ALL_QFL_ITEMS(). Move some code to separate functions. (Yegappan Lakshmanan, closes vim/vim#4166) https://github.com/vim/vim/commit/a16123a666b4656543614cb5bdaa69ea69f35d30
| * vim-patch:8.1.1030: quickfix function arguments are inconsistentShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Quickfix function arguments are inconsistent. Solution: Pass a list pointer instead of info and index. (Yegappan Lakshmanan, closes vim/vim#4135) https://github.com/vim/vim/commit/0398e00a1bf79e85223fb26938c8dd0d54883b77
| * vim-patch:8.1.1006: repeated code in quickfix supportShane Smith2019-10-27
| | | | | | | | | | | | Problem: Repeated code in quickfix support. Solution: Move code to functions. (Yegappan Lakshmanan, closes vim/vim#4091) https://github.com/vim/vim/commit/4aa47b28f453b40d3b93ef209a3447c62b6f855b
| * vim-patch:8.1.0532: cannot distinguish between quickfix and location listShane Smith2019-10-27
| | | | | | | | | | | | Problem: Cannot distinguish between quickfix and location list. Solution: Add an explicit type variable. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/2d67d307ee5dba911e8fbe73193bf596ebf76c1a
| * vim-patch:8.1.0488: using freed memory in quickfix codeShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Add the quickfix_busy() flag to postpone deleting quickfix lists until it is safe. (Yegappan Lakshmanan, closes #3538) https://github.com/vim/vim/commit/9f84ded38b62c82a4ee57b54f403b1b185ed8170
| * vim-patch:8.1.0469: too often indexing in qf_lists[]Shane Smith2019-10-27
| | | | | | | | | | | | Problem: Too often indexing in qf_lists[]. Solution: Use a qf_list_T pointer. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/108e7b422b7b59153dd5af1fb75e83fa36ff3db4
| * vim-patch:8.1.0407: quickfix code mixes using the stack and a list pointerShane Smith2019-10-27
| | | | | | | | | | | | | | Problem: Quickfix code mixes using the stack and a list pointer. Solution: Use a list pointer in more places. (Yegappan Lakshmanan, closes vim/vim#3443) https://github.com/vim/vim/commit/fe15b7dfa628d4edd683dae9528194c0e5510128
| * vim-patch:8.1.0252: quickfix functions are too longShane Smith2019-10-27
| | | | | | | | | | | | Problem: Quickfix functions are too long. Solution: Refactor. (Yegappan Lakshmanan, closes vim/vim#2950) https://github.com/vim/vim/commit/de3b3677f7eace66be454196db0fbf710cfc8c5e
* | quickfix: fix pvs/v547 errorJan Edmund Lazo2019-11-02
| |
* | vim-patch:8.1.2154: quickfix window height wrong when there is a tablineJan Edmund Lazo2019-10-27
| | | | | | | | | | | | | | Problem: Quickfix window height wrong when there is a tabline. (Daniel Hahler) Solution: Take the tabline height into account. (closes vim/vim#5058) https://github.com/vim/vim/commit/1142a31b8c44c4e7dbf28a83ae52995113b37917
* | vim-patch:8.1.1245: ":copen 10" sets height in full-height windowJan Edmund Lazo2019-10-27
|/ | | | | | | Problem: ":copen 10" sets height in full-height window. (Daniel Hahler) Solution: Don't set the height if the quickfix window is full height. (closes vim/vim#4325) https://github.com/vim/vim/commit/36d502225c3ec5e8b30771d58ee20171ce564b2f