aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
Commit message (Collapse)AuthorAge
* clang/"dead assignments" #10620Bartosz Miera2019-07-29
| | | | Also revert possibly-wrong change in f_sign_getplaced() from 652be3cb0040.
* PVS/V560: expression is always false/true #10623Ihor Antonov2019-07-28
|
* cleanup: remove mch_fopen in favor of os_fopenJustin M. Keyes2019-07-25
|
* refactor: use int for Columns and RowsBjörn Linse2019-07-19
|
* vim-patch:8.1.0169: calling message_filtered() a bit too oftenJan Edmund Lazo2019-06-23
| | | | | | Problem: Calling message_filtered() a bit too often. Solution: Only call message_filtered() when filtering is already false. https://github.com/vim/vim/commit/a9defadb8f03ecd03f3297305d5482ba380774dc
* vim-patch:8.1.0166: using dict_add_nr_str() is clumsyJan Edmund Lazo2019-06-23
| | | | | | Problem: Using dict_add_nr_str() is clumsy. Solution: Split into two functions. (Ozaki Kiichi, closes vim/vim#3154) https://github.com/vim/vim/commit/e0be167a805fd547c25ec1ec97fd4c7f13046236
* vim-patch:8.1.0165: :clist output can be very longJan Edmund Lazo2019-06-23
| | | | | | Problem: :clist output can be very long. Solution: Support filtering :clist entries. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/4cde86c2ef885e82fff3d925dee9fb5671c025cf
* vim-patch:8.1.0074: crash when running quickfix testsJan Edmund Lazo2019-06-19
| | | | | | | Problem: Crash when running quickfix tests. Solution: Do not alloc a new location list when checking for the reference to be still valid. https://github.com/vim/vim/commit/d6b01a2d3884ee0abe10aad161f584889a496e3f
* vim-patch:8.1.0073: crash when autocommands call setloclist()Jan Edmund Lazo2019-06-19
| | | | | | Problem: Crash when autocommands call setloclist(). (Dominique Pelle) Solution: If the quickfix list changes then don't jump to the error. https://github.com/vim/vim/commit/0366c0161e988e32420d2f37111a60129684905b
* vim-patch:8.0.0953: get "no write since last change" error in terminal windowJan Edmund Lazo2019-06-13
| | | | | | | Problem: Get "no write since last change" error in terminal window. Solution: Use another message when closing a terminal window. Make ":quit!" also end the job. https://github.com/vim/vim/commit/f5be7cd01642fafc4b7d68894eb60cca60c7a405
* vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix windowJan Edmund Lazo2019-06-12
| | | | | | Problem: CTRL-W CR does not work properly in a quickfix window. Solution: Split the window if needed. (Jason Franklin) https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c
* vim-patch:8.0.1702: leaking memory when autocommands make quickfix list invalidJan Edmund Lazo2019-06-06
| | | | | | Problem: Leaking memory when autocommands make a quickfix list invalid. Solution: Call FreeWild(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/ee5b94a8ecbaeafa11c7c7c8cf7bef765fbea912
* vim-patch:8.1.0060: crash when autocommands delete the current bufferJan Edmund Lazo2019-06-06
| | | | | | | Problem: Crash when autocommands delete the current buffer. (Dominique Pelle) Solution: Check that autocommands don't change the buffer. https://github.com/vim/vim/commit/600323b4ef51a58a8e800d8ca469383a3c911db7
* vim-patch:8.0.1669: :vimgrep may add entries to the wrong quickfix listJan Edmund Lazo2019-06-06
| | | | | | Problem: :vimgrep may add entries to the wrong quickfix list. Solution: Use the list identifier. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/e1bb879f49665bb828197135b80aaf72cc190073
* vim-patch:8.0.1414: accessing freed memory in :lfile.Jan Edmund Lazo2019-06-06
| | | | | | | Problem: Accessing freed memory in :lfile. Solution: Get the current window after executing autocommands. (Yegappan Lakshmanan, closes vim/vim#2473) https://github.com/vim/vim/commit/14a4deb064610c30a50f00d524dde9b3292aad59
* vim-patch:8.0.1412: using free memory using setloclist()Jan Edmund Lazo2019-06-06
| | | | | | | Problem: Using free memory using setloclist(). (Dominique Pelle) Solution: Mark location list context as still in use when needed. (Yegappan Lakshmanan, closes vim/vim#2462) https://github.com/vim/vim/commit/12237448499aaeb8c4f2be7a1deda60c0f160627
* UI/ext_messages: restore kind=quickfix #10067Justin M. Keyes2019-05-27
| | | | Accidentally removed in 34f9e72af9c9. ref #6201
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* Merge #10049 'vim-patch:8.1.0293'Justin M. Keyes2019-05-22
|\
| * vim-patch:8.1.0293: checks for type of stack is crypticDaniel Hahler2019-05-22
|/ | | | | | Problem: Checks for type of stack is cryptic. Solution: Define IS_QF_STACK() and IS_LL_STACK(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/4d77c65a9e57e1d1a459c44411930c7a892835fd
* vim-patch:8.1.1312: Coverity warning for using uninitialized variableJan Edmund Lazo2019-05-09
| | | | | | Problem: Coverity warning for using uninitialized variable. Solution: Clear exarg_T. https://github.com/vim/vim/commit/4ca41534b726c4116d2e430e877e34146b4d4831
* vim-patch:8.0.1144: using wrong #ifdef for computing lengthJan Edmund Lazo2019-05-07
| | | | | | | Problem: Using wrong #ifdef for computing length. Solution: use BACKSLASH_IN_FILENAME instead of COLON_IN_FILENAME. (Yasuhiro Matsomoto, closes vim/vim#2153) https://github.com/vim/vim/commit/0b05e491b473dbf39cd9f519030bf6363c272300
* PVS/V547: Expression is always falseJustin M. Keyes2019-05-06
|
* vim-patch:8.0.1750: crash clearing location list #9968Justin M. Keyes2019-05-05
| | | | | | Problem: Crash when clearing loccation list in autocommand. Solution: Check if "qi" equals "ql_info". (Yegappan Lakshmanan) https://github.com/vim/vim/commit/3b9474b4ad4d85b5396f7f641b436f193dc9d486
* lintMarco Hinz2019-05-05
|
* vim-patch:8.0.1831: sometimes the quickfix title is incorrectly prefixed ↵Marco Hinz2019-05-05
| | | | | | | | | with ':' Problem: Sometimes the quickfix title is incorrectly prefixed with ':'. Solution: Prepend the colon in another way. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/8b62e31003693fee4b288e7aea49170f032aeef3
* vim-patch:8.0.1805: qf_parse_line() is too longMarco Hinz2019-05-05
| | | | | | | | Problem: qf_parse_line() is too long. Solution: Split it in parts. Properly handle vim_realloc() failing. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/18cebf44177542e6658251bacf6152aa9009ca58
* vim-patch:8.0.1782: no simple way to label quickfix entriesMarco Hinz2019-05-05
| | | | | | | | Problem: No simple way to label quickfix entries. Solution: Add the "module" item, to be used instead of the file name for display purposes. (Martin Szamotulski) https://github.com/vim/vim/commit/d76ce852668635d81778cedacc2d3f021ed4e475
* vim-patch:8.0.1727: qf_get_properties() function is too longMarco Hinz2019-05-05
| | | | | | | Problem: qf_get_properties() function is too long. Solution: Refactor the code. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/353eeeaca269ed5e83900bd4a24dc6dc80bb4880
* vim-patch:8.0.1678: errorformat "%r" implies "%>"Marco Hinz2019-05-05
| | | | | | | Problem: Errorformat "%r" implies "%>". (Jan Gosmann) Solution: Jump to before setting fmt_ptr. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/e333e79f9bdff82432e0fd7fcf7ae30ef8e3d092
* vim-patch:8.0.1634: the ex_vimgrep() function is too longMarco Hinz2019-05-05
| | | | | | | Problem: The ex_vimgrep() function is too long. Solution: Split it in smaller functions. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/75b0a888e41bcda4163072f41bb7b5471fef7651
* vim-patch:8.0.1569: warning for uninitialized variable from gccMarco Hinz2019-05-05
| | | | | | | Problem: Warning for uninitialized variable from gcc. Solution: Initialize the variable. https://github.com/vim/vim/commit/28ada699c13833219acaeb7e768acc2acae50e02
* vim-patch:8.0.1500: possible NULL pointer dereferenceMarco Hinz2019-05-04
| | | | | | | Problem: Possible NULL pointer dereference. (Coverity) Solution: Check for the pointer not being NULL. https://github.com/vim/vim/commit/0549a1e184d33674f4c2b8fb44ccdf6b9b9808a3
* vim-patch:8.0.1432: after ":copen" can't get the window-ID of the quickfix ↵Marco Hinz2019-05-04
| | | | | | | | | | | window Problem: After ":copen" can't get the window-ID of the quickfix window. (FalacerSelene) Solution: Make it work without a quickfix list. Add a test. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/2ec364e94dbc080ccdf6c5dfc6f1653b5b7ded64
* vim-patch:8.0.1420: accessing freed memory in vimgrepMarco Hinz2019-05-04
| | | | | | | Problem: Accessing freed memory in vimgrep. Solution: Check that the quickfix list is still valid. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/3c09722600e3218905b5d4a7b635a9e6560f87b3
* vim-patch:8.0.1406: difficult to track changes to a quickfix listMarco Hinz2019-05-04
| | | | | | | Problem: Difficult to track changes to a quickfix list. Solution: Add a "changedtick" value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/b254af312d1696b12367085acfbe41a41b7f1ea5
* vim-patch:8.0.1389: getqflist() items are missing if not setMarco Hinz2019-05-03
| | | | | | | | | Problem: getqflist() items are missing if not set, that makes it more difficult to handle the values. Solution: When a value is not available return zero or another invalid value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/a6d4849c711379b773529afaed640455287ac934
* vim-patch:8.0.1353: QuickFixCmdPost is not used consistentlyMarco Hinz2019-05-03
| | | | | | | | Problem: QuickFixCmdPost is not used consistently. Solution: Invoke QuickFixCmdPost consistently after QuickFixCmdPre. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/1ed2276fd50f34e824eeae93d5a5ebfdf118be26
* vim-patch:8.0.1112: can't get size or current index from quickfix listJan Edmund Lazo2019-04-14
| | | | | | Problem: Can't get size or current index from quickfix list. Solution: Add "idx" and "size" options. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/fc2b270cfd36230166df486aae4d96d9d1f32755
* vim-patch:8.0.1093: various small quickfix issuesJan Edmund Lazo2019-04-14
| | | | | | | | Problem: Various small quickfix issues. Solution: Remove ":" prefix from title set by a user. Add the qf_id2nr(). function. Add a couple more tests. Update documentation. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/b4d5fbabc99917a8069ba32a60c2d73d4f60e128
* vim-patch:8.0.0776: function prototypes missing without the quickfix featureJan Edmund Lazo2019-04-14
| | | | | | | Problem: Function prototypes missing without the quickfix feature. (Tony Mechelynck) Solution: Move non-quickfix functions to buffer.c. https://github.com/vim/vim/commit/f0a521f4f76904edb74e182c12732189b347ff68
* vim-patch:8.0.0761: options not set properly for a terminal bufferJan Edmund Lazo2019-04-14
| | | | | | | | | Problem: Options of a buffer for a terminal window are not set properly. Solution: Add "terminal" value for 'buftype'. Make 'buftype' and 'bufhidden' not depend on the quickfix feature. Also set the buffer name and show "running" or "finished" in the window title. https://github.com/vim/vim/commit/1f2903c43109b16594d141a730659317b15f388d
* vim-patch:8.0.1130: the qf_jump() function is still too longMarco Hinz2019-04-13
| | | | | | | Problem: The qf_jump() function is still too long. Solution: Split of parts to separate functions. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/9cb03716c963338f9a98d2ebc7aa3ac8b9c1eea6
* vim-patch:8.0.1104: the qf_jump() function is too longMarco Hinz2019-04-13
| | | | | | | Problem: The qf_jump() function is too long. Solution: Split of parts to separate functions. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/ef6b8de42f439271edcf5cf22b2450f2cf302c2e
* vim-patch:8.0.0643: when a pattern search is slow Vim becomes unusableBilly Su2019-03-07
| | | | | | | | | Problem: When 'hlsearch' is set and matching with the last search pattern is very slow, Vim becomes unusable. Cannot quit search by pressing CTRL-C. Solution: When the search times out set a flag and don't try again. Check for timeout and CTRL-C in NFA loop that adds states. https://github.com/vim/vim/commit/fbd0b0af6800f6ff89857863d6a07ea03f09ff6c
* ui: implement ext_messagesBjörn Linse2019-02-10
| | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* cleanup: reduce some duplicate code, avoid function pointers for a conditionBjörn Linse2019-01-23
| | | | | | | Add 'multiline' flag to history for correct :messages output Use larger buffer size for multiline messages. if this turns out to not be enough, we could do size calculation like api_set_error
* build: enable -WshadowJustin M. Keyes2019-01-02
| | | | | | | | | | Note about shada.c: - shada_read_next_item_start was intentionally shadowing `unpacked` and `i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly depended on those variable names. - Macros were changed to parameterize `unpacked` (but not `i`). Macros like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other approach is messy.
* vim-patch:8.0.1427: the :leftabove modifier doesn't work for :copenJan Edmund Lazo2018-11-19
| | | | | | Problem: The :leftabove modifier doesn't work for :copen. Solution: Respect the split modifier. (Yegappan Lakshmanan, closes vim/vim#2496) https://github.com/vim/vim/commit/de04654ddc865af94ef04b1738b335a924be7923
* fix warning: null arg passed to 'nonnull' paramJustin M. Keyes2018-10-21
| | | | Found by clang scan-build 5.0