summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
AgeCommit message (Collapse)Author
2022-09-04patch 9.0.0376: clang warns for dead assignmentsv9.0.0376Yegappan Lakshmanan
Problem: Clang warns for dead assignments. Solution: Adjust the code. (Yegappan Lakshmanan, closes #11048)
2022-09-01patch 9.0.0345: error message for list argument could be clearerv9.0.0345Bram Moolenaar
Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
2022-08-24patch 9.0.0254: typo in function namev9.0.0254zeertzjq
Problem: Typo in function name. Solution: Rename the function. (closes #10971)
2022-07-28patch 9.0.0102: reading past end of line with insert mode completionv9.0.0102Bram Moolenaar
Problem: Reading past end of line with insert mode completion. Solution: Check text length.
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-07-23patch 9.0.0060: accessing uninitialized memory when completing long linev9.0.0060Bram Moolenaar
Problem: Accessing uninitialized memory when completing long line. Solution: Terminate string with NUL.
2022-07-15patch 9.0.0054: compiler warning for size_t to int conversionv9.0.0054Bram Moolenaar
Problem: Compiler warning for size_t to int conversion. Solution: Add type cast. (Mike Williams, closes #10741)
2022-07-07patch 9.0.0046: reading past end of completion with duplicate matchv9.0.0046Bram Moolenaar
Problem: Reading past end of completion with duplicate match. Solution: Check string length
2022-07-07patch 9.0.0045: reading past end of completion with a long linev9.0.0045Bram Moolenaar
Problem: Reading past end of completion with a long line and 'infercase' set. Solution: Allocate the string if needed.
2022-07-01patch 9.0.0020: with some completion reading past end of stringv9.0.0020Bram Moolenaar
Problem: With some completion reading past end of string. Solution: Check the length of the string.
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-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-05-26patch 8.2.5022: 'completefunc'/'omnifunc' error does not end completionv8.2.5022LemonBoy
Problem: 'completefunc'/'omnifunc' error does not end completion. Solution: Check if there was an error or exception. (closes #10486, closes #4218)
2022-05-21patch 8.2.4993: smart/C/lisp indenting is optionalv8.2.4993Bram Moolenaar
Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
2022-05-09patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
2022-05-07patch 8.2.4911: the mode #defines are not clearly namedv8.2.4911Bram Moolenaar
Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-04-09patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723LemonBoy
Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
2022-01-15patch 8.2.4099: Vim9: cannot use Vim9 syntax in mappingv8.2.4099Bram Moolenaar
Problem: Vim9: cannot use Vim9 syntax in mapping. Solution: Add <ScriptCmd> to use the script context for a command.
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-08patch 8.2.4037: Insert mode completion is insufficiently testedv8.2.4037Yegappan Lakshmanan
Problem: Insert mode completion is insufficiently tested. Solution: Add more tests. Fix uncovered memory leak. (Yegappan Lakshmanan, closes #9489)
2022-01-05patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-05patch 8.2.4008: error messages are spread outv8.2.4008Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-04patch 8.2.4001: insert complete code uses global variablesv8.2.4001Yegappan Lakshmanan
Problem: Insert complete code uses global variables. Solution: Make variables local to the file and use accessor functions. (Yegappan Lakshmanan, closes #9470)
2022-01-03patch 8.2.3989: some insert completion code is not testedv8.2.3989Yegappan Lakshmanan
Problem: Some insert completion code is not tested. Solution: Add a few tests. Refactor thesaurus completion. (Yegappan Lakshmanan, closes #9460)
2022-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3953: insert completion code is too complicatedv8.2.3953Yegappan Lakshmanan
Problem: Insert completion code is too complicated. Solution: More refactoring. Move function arguments into a struct. (Yegappan Lakshmanan, closes #9437)
2021-12-30patch 8.2.3944: insert mode completion functions are too longv8.2.3944Yegappan Lakshmanan
Problem: Insert mode completion functions are too long. Solution: Split up into multiple functions. (Yegappan Lakshmanan, closes #9431)
2021-12-30patch 8.2.3942: Coverity reports a possible memory leakv8.2.3942Bram Moolenaar
Problem: Coverity reports a possible memory leak. Solution: Free the array if allocation fails.
2021-12-29patch 8.2.3937: Insert mode completion function is too longv8.2.3937Yegappan Lakshmanan
Problem: Insert mode completion function is too long. Solution: Refactor into multiple functions. (Yegappan Lakshmanan, closes #9423)
2021-12-27patch 8.2.3915: illegal memory access when completing with invalid bytesv8.2.3915Bram Moolenaar
Problem: illegal memory access when completing with invalid bytes. Solution: Avoid going over the end of the completion text.
2021-12-27patch 8.2.3912: the ins_complete() function is much too longv8.2.3912Bram Moolenaar
Problem: The ins_complete() function is much too long. Solution: Split it up into multiple functions. (Yegappan Lakshmanan, closes #9414)
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-07patch 8.2.3756: might crash when callback is not validv8.2.3756Yegappan Lakshmanan
Problem: might crash when callback is not valid. Solution: Check for valid callback. (Yegappan Lakshmanan, closes #9293)
2021-12-03patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'v8.2.3725Yegappan Lakshmanan
Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'. Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257)
2021-12-01patch 8.2.3712: cannot use Vim9 lambda for 'tagfunc'v8.2.3712Yegappan Lakshmanan
Problem: Cannot use Vim9 lambda for 'tagfunc'. Solution: Make it work, add more tests. (Yegappan Lakshmanan, closes #9250)
2021-11-17patch 8.2.3609: internal error when ModeChanged is triggered recursivelyv8.2.3609Bram Moolenaar
Problem: Internal error when ModeChanged is triggered when v:event is already in use. Solution: Save and restore v:event if needed.
2021-10-22patch 8.2.3555: ModeChanged is not triggered on every mode changev8.2.3555=?UTF-8?q?Magnus=20Gro=C3=9F?=
Problem: ModeChanged is not triggered on every mode change. Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999)
2021-10-17patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scopev8.2.3528Bram Moolenaar
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope. Solution: Make 'thesaurusfunc' global-local.
2021-10-16patch 8.2.3525: option variable name does not match option namev8.2.3525Bram Moolenaar
Problem: Option variable name does not match option name. (Christ van Willigen) Solution: Rename the variable.
2021-10-16patch 8.2.3520: cannot define a function for thesaurus completionv8.2.3520Yegappan Lakshmanan
Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes #8987, closes 8950)
2021-10-03patch 8.2.3465: cannot detect insert scroll modev8.2.3465zeertzjq
Problem: Cannot detect insert scroll mode. Solution: Add "scroll" to complete_info(). (closes #8943)
2021-08-31patch 8.2.3389: cannot stop insert mode completion without side effectsv8.2.3389zeertzjq
Problem: Cannot stop insert mode completion without side effects. Solution: Add CTRL-X CTRL-Z. (closes #8821)
2021-08-05patch 8.2.3293: finding completions may cause an endless loopv8.2.3293Andy Gozas
Problem: Finding completions may cause an endless loop. Solution: Use a better way to check coming back where the search started. (Andy Gozas, closes #8672, closes #8671)
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-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-04-04patch 8.2.2707: adding a lot of completions can still be a bit slowv8.2.2707Bram Moolenaar
Problem: Adding a lot of completions can still be a bit slow. Solution: Add the check for CP_FAST. (Ben Jackson)
2021-04-03patch 8.2.2704: adding a lot of completions can be a bit slowv8.2.2704Bram Moolenaar
Problem: Adding a lot of completions can be a bit slow. Solution: Use fast_breakcheck() instead of ui_breakcheck() when adding a list of completions. (Ben Jackson, closes #8061)
2021-01-29patch 8.2.2427: can still switch windows for 'completefunc'v8.2.2427Bram Moolenaar
Problem: Can still switch windows for 'completefunc'. Solution: Also disallow switching windows for other completions.