summaryrefslogtreecommitdiff
path: root/src/tag.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'v8.2.3725Yegappan Lakshmanan2021-12-031-2/+2
| | | | | Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'. Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257)
* patch 8.2.3665: cannot use a lambda for 'tagfunc'v8.2.3665Yegappan Lakshmanan2021-11-241-1/+50
| | | | | Problem: Cannot use a lambda for 'tagfunc'. Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes #9204)
* patch 8.2.3460: some type casts are not neededv8.2.3460=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-021-1/+1
| | | | | Problem: Some type casts are not needed. Solution: Remove unnecessary type casts. (closes #8934)
* patch 8.2.3362: buffer overflow when completing long tag namev8.2.3362Gregory Anders2021-08-211-16/+39
| | | | | Problem: Buffer overflow when completing long tag name. Solution: Allocate the buffer dynamically. (Gregory Anders, closes #8769)
* patch 8.2.3330: Coverity reports using uninitialized fieldv8.2.3330Bram Moolenaar2021-08-111-0/+1
| | | | | Problem: Coverity reports using uninitialized field. Solution: Initialize the field early.
* patch 8.2.3167: get E12 in a job callback when searching for tagsv8.2.3167Bram Moolenaar2021-07-151-16/+16
| | | | | | Problem: Get E12 in a job callback when searching for tags. (Andy Stewart) Solution: Use the sandbox only for executing a command, not for searching. (closes #8511)
* patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented codev8.2.2871Dominique Pelle2021-05-181-1/+1
| | | | | | Problem: Unnessary VIM_ISDIGIT() calls, badly indented code. Solution: Call skipdigits() on the next character. Improve indenting. (Dominique Pellé, closes #8227)
* patch 8.2.2836: build failure without the +quickfix featurev8.2.2836Bram Moolenaar2021-05-051-1/+1
| | | | | Problem: Build failure without the +quickfix feature. (John Marriott) Solution: Add #ifdef.
* patch 8.2.2634: 'tagfunc' does not indicate using a patternv8.2.2634Bram Moolenaar2021-03-211-3/+4
| | | | | Problem: 'tagfunc' does not indicate using a pattern. Solution: Add the "r" flag. (Andy Massimino, closes #7982)
* patch 8.2.2568: second time a preview popup is opened highlight is not setv8.2.2568Bram Moolenaar2021-03-041-0/+5
| | | | | | Problem: Second time a preview popup is opened highlight is not set. (Gabriel Dupras) Solution: Apply 'previewpopup' after getting the file. (closes #7928)
* patch 8.2.2324: not easy to get mark en cursor posotion by character countv8.2.2324Bram Moolenaar2021-01-101-1/+1
| | | | | | Problem: Not easy to get mark en cursor posotion by character count. Solution: Add functions that use character index. (Yegappan Lakshmanan, closes #7648)
* patch 8.2.2295: incsearch does not detect empty pattern properlyv8.2.2295Bram Moolenaar2021-01-041-2/+2
| | | | | | Problem: Incsearch does not detect empty pattern properly. Solution: Return magic state when skipping over a pattern. (Christian Brabandt, closes #7612, closes #6420)
* patch 8.2.2182: Vim9: value of 'magic' is still relevantv8.2.2182Bram Moolenaar2020-12-211-6/+7
| | | | | Problem: Vim9: value of 'magic' is still relevant. Solution: Always behave like 'magic' is on in Vim9 script (closes #7509)
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-1/+1
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1547: various comment problemsv8.2.1547Bram Moolenaar2020-08-301-1/+1
| | | | | Problem: Various comment problems. Solution: Update comments.
* patch 8.2.0747: cannot forcefully close all popupsv8.2.0747Bram Moolenaar2020-05-131-1/+1
| | | | | | Problem: Cannot forcefully close all popups. Solution: Add the "force" argument to popup_clear(). Use it after running a test. Put back the check for a popup when editing a file.
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-3/+3
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar2020-04-021-2/+2
| | | | | Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
* patch 8.2.0500: using the same loop in many placesv8.2.0500Bram Moolenaar2020-04-021-2/+2
| | | | | Problem: Using the same loop in many places. Solution: Define more FOR_ALL macros. (Yegappan Lakshmanan, closes #5339)
* patch 8.2.0365: tag kind can't be a multi-byte characterv8.2.0365Bram Moolenaar2020-03-091-5/+8
| | | | | Problem: Tag kind can't be a multi-byte character. (Marcin Szamotulski) Solution: Recognize multi-byte character. (closes #5724)
* patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295Bram Moolenaar2020-02-211-4/+4
| | | | | | Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes #5665)
* patch 8.2.0179: still a few places where range() does not workv8.2.0179Bram Moolenaar2020-01-301-0/+1
| | | | | Problem: Still a few places where range() does not work. Solution: Fix using range() causing problems.
* patch 8.2.0177: memory leak in get_tags()v8.2.0177Bram Moolenaar2020-01-291-0/+3
| | | | | | Problem: Memory leak in get_tags(). Solution: Free matches when finding a pseudo-tag line. (Dominique Pelle, closes #5553)
* patch 8.2.0156: various typos in source files and testsv8.2.0156Bram Moolenaar2020-01-261-1/+1
| | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes #5532)
* patch 8.2.0088: insufficient tests for tags; bug in using extra tag fieldv8.2.0088Bram Moolenaar2020-01-051-1/+3
| | | | | | Problem: Insufficient tests for tags; bug in using extra tag field when using an ex command to position the cursor. Solution: Fix the bug, add more tests. (Yegappan Lakshmanan, closes #5439)
* patch 8.2.0077: settagstack() cannot truncate at current indexv8.2.0077Bram Moolenaar2020-01-021-6/+25
| | | | | Problem: settagstack() cannot truncate at current index. Solution: Add the "t" action. (Yegappan Lakshmanan, closes #5417)
* patch 8.1.2395: using old C style commentsv8.1.2395Bram Moolenaar2019-12-051-328/+323
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-2/+2
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2313: debugging where a delay comes from is not easyv8.1.2313Bram Moolenaar2019-11-171-2/+2
| | | | | Problem: Debugging where a delay comes from is not easy. Solution: Use different values when calling ui_delay().
* patch 8.1.2312: "line:" field in tags file not usedv8.1.2312Bram Moolenaar2019-11-171-1/+10
| | | | | | Problem: "line:" field in tags file not used. Solution: Recognize the field and use the value. (Andy Massimino, Daniel Hahler, closes #5232, closes #2546, closes #1057)
* patch 8.1.2271: build error if FEAT_TAG_BINS is not definedv8.1.2271Bram Moolenaar2019-11-081-0/+2
| | | | | Problem: Build error if FEAT_TAG_BINS is not defined. (John Marriott) Solution: Add #ifdef.
* patch 8.1.2269: tags file with very long line stops using binary searchv8.1.2269Bram Moolenaar2019-11-071-23/+18
| | | | | Problem: Tags file with very long line stops using binary search. Solution: Reallocate the buffer if needed.
* patch 8.1.2173: searchit() has too many argumentsv8.1.2173Bram Moolenaar2019-10-181-4/+4
| | | | | Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument.
* patch 8.1.2152: problems navigating tags file on MacOS Catalinav8.1.2152Bram Moolenaar2019-10-151-12/+12
| | | | | Problem: Problems navigating tags file on MacOS Catalina. Solution: Use fseek instead of lseek. (John Lamb, fixes #5061)
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-4/+0
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-2/+0
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1880: cannot show extra info for completion in a popup windowv8.1.1880Bram Moolenaar2019-08-181-1/+1
| | | | | Problem: Cannot show extra info for completion in a popup window. Solution: Add the "popup" entry in 'completeopt'.
* patch 8.1.1823: command line history code is spread outv8.1.1823Bram Moolenaar2019-08-061-6/+0
| | | | | | Problem: Command line history code is spread out. Solution: Put the code in a new file. (Yegappan Lakshmanan, closes #4779) Also graduate the +cmdline_hist feature.
* patch 8.1.1819: :pedit does not work with a popup preview windowv8.1.1819Bram Moolenaar2019-08-051-0/+5
| | | | | | | Problem: :pedit does not work with a popup preview window. Solution: Avoid aborting with an error. (fixes #4777) Also double check that after prepare_tagpreview() the current window is not a popup window.
* patch 8.1.1813: ATTENTION prompt for a preview popup windowv8.1.1813Bram Moolenaar2019-08-041-2/+14
| | | | | | Problem: ATTENTION prompt for a preview popup window. Solution: Close the popup window if aborting the buffer load. Avoid getting the ATTENTION dialog.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-7/+6
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-5/+5
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-2/+1
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-1/+1
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
* patch 8.1.1259: crash when exiting earlyv8.1.1259Bram Moolenaar2019-05-031-1/+2
| | | | | Problem: Crash when exiting early. (Ralf Schandl) Solution: Only pop/push the title when it was set. (closes #4334)
* patch 8.1.1235: compiler warnings for using STRLEN() valuev8.1.1235Bram Moolenaar2019-04-291-2/+2
| | | | | Problem: Compiler warnings for using STRLEN() value. Solution: Cast to int. (Christian Brabandt, Mike Williams)
* patch 8.1.1228: not possible to process tags with a functionv8.1.1228Bram Moolenaar2019-04-281-31/+347
| | | | | Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
* patch 8.1.1194: typos and small problems in source filesv8.1.1194Bram Moolenaar2019-04-211-3/+3
| | | | | Problem: Typos and small problems in source files. Solution: Small fixes.
* patch 8.1.1100: tag file without trailing newline no longer worksv8.1.1100Bram Moolenaar2019-04-021-3/+5
| | | | | Problem: Tag file without trailing newline no longer works. (Marco Hinz) Solution: Don't expect a newline at the end of the file. (closes #4200)
* patch 8.1.1099: the do_tag() function is too longv8.1.1099Bram Moolenaar2019-03-311-549/+359
| | | | | | Problem: The do_tag() function is too long. Solution: Factor parts out to separate functions. Move simplify_filename() to a file where it fits better. (Andy Massimino, closes #4195)