zeertzjq
e9ef347c13
patch 9.0.1735: Rename completion specific findex var
...
Problem: Rename completion specific findex var
Solution: Move "findex" static variable to xp_selected in expand_T
closes : #12548
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-17 23:57:05 +02:00
zeertzjq
e4c79d3615
patch 9.0.1714: getcompletion() "cmdline" fails after :autocmd
...
Problem: getcompletion() "cmdline" fails after :autocmd
Solution: Use set_cmd_context() instead of set_one_cmd_context().
closes : #12804
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-15 22:41:53 +02:00
zeertzjq
094dd152fe
patch 9.0.1636: expanding a pattern interferes with cmdline completion
...
Problem: Expanding a pattern interferes with command line completion.
Solution: Set the file index only when appropriate. (closes #12519 )
2023-06-15 22:51:57 +01:00
Bram Moolenaar
79cdf026f1
patch 9.0.1571: RedrawingDisabled not used consistently
...
Problem: RedrawingDisabled not used consistently.
Solution: Avoid RedrawingDisabled going negative. Set RedrawingDisabled in
win_split_ins(). (closes #11961 )
2023-05-20 14:07:00 +01:00
Bram Moolenaar
048d9d2521
patch 9.0.1520: completion for option name includes all bool options
...
Problem: Completion for option name includes all bool options.
Solution: Do not recognize the "noinv" prefix. Prefix "no" or "inv" when
appropriate.
2023-05-06 22:21:11 +01:00
Bram Moolenaar
f39d9e9dca
patch 9.0.1479: small source file problems; outdated list of distrib. files
...
Problem: Small source file problems; outdated list of distributed files.
Solution: Small updates to source files and list of distributed files.
2023-04-22 22:54:40 +01:00
zeertzjq
b0d45ec67f
patch 9.0.1242: code for :runtime completion is not consistent
...
Problem: Code for :runtime completion is not consistent.
Solution: Make code for cmdline expansion more consistent. (closes #11875 )
2023-01-25 15:04:22 +00:00
zeertzjq
5c8771bc5a
patch 9.0.1238: :runtime completion can be further improved
...
Problem: :runtime completion can be further improved.
Solution: Also complete the {where} argument values and adjust the
completion for that. (closes #11874 )
2023-01-24 12:34:03 +00:00
zeertzjq
3770f4c9cd
patch 9.0.1231: completion of :runtime does not handle {where} argument
...
Problem: Completion of :runtime does not handle {where} argument.
Solution: Parse the {where} argument. (closes #11863 )
2023-01-22 18:38:51 +00:00
root
a6759381a5
patch 9.0.1227: no cmdline completion for :runtime
...
Problem: No cmdline completion for :runtime.
Solution: Add completion for :runtime. (closes #11853 , closes #11447 )
Improve the resulting matches.
2023-01-21 21:56:06 +00:00
Yegappan Lakshmanan
1cfb14aa97
patch 9.0.1166: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11792 )
2023-01-09 19:04:23 +00:00
zeertzjq
c51a376265
patch 9.0.1043: macro has confusing name and is duplicated
...
Problem: Macro has confusing name and is duplicated.
Solution: Use one macro with an understandable name. (closes #11686 )
2022-12-10 10:22:29 +00:00
Bram Moolenaar
038e6d20e6
patch 9.0.1030: using freed memory with the cmdline popup menu
...
Problem: Using freed memory with the cmdline popup menu.
Solution: Clear the popup menu when clearing the matches. (closes #11677 )
2022-12-08 12:00:50 +00:00
Bram Moolenaar
698a00f55d
patch 9.0.0883: a silent mapping may cause dots on the command line
...
Problem: A silent mapping may cause dots on the command line.
Solution: Don't show dots for completion if they are not going to be removed
again. (closes #11501 )
2022-11-14 22:07:45 +00:00
K.Takata
161b6ac04f
patch 9.0.0880: preprocessor indenting is off
...
Problem: Preprocessor indenting is off.
Solution: Adjust preprocessor indentation. (Ken Takata, closes #11546 )
2022-11-14 15:31:07 +00:00
Yegappan Lakshmanan
68353e5270
patch 9.0.0876: code is indented more than needed
...
Problem: Code is indented more than needed.
Solution: Split ExpandEscape() in two. (Yegappan Lakshmanan, closes #11539 )
2022-11-13 22:38:10 +00:00
Bram Moolenaar
d6e91385f0
patch 9.0.0867: wildmenu redrawing code is spread out
...
Problem: Wildmenu redrawing code is spread out.
Solution: Refactor to move code together. (closes #11528 )
2022-11-12 17:44:13 +00:00
Bram Moolenaar
747f110420
patch 9.0.0498: various small issues
...
Problem: Various small issues.
Solution: Various small fixes.
2022-09-18 13:06:41 +01:00
Yegappan Lakshmanan
8deb2b30c7
patch 9.0.0359: error message for wrong argument type is not specific
...
Problem: Error message for wrong argument type is not specific.
Solution: Include more information in the error. (Yegappan Lakshmanan,
closes #11037 )
2022-09-02 15:15:27 +01:00
zeertzjq
d3de178e53
patch 9.0.0346: :horizontal modifier not fully supported
...
Problem: :horizontal modifier not fully supported.
Solution: Also use :horizontal for completion and user commands.
(closes #11025 )
2022-09-01 12:58:52 +01:00
Bram Moolenaar
58dcbf1c65
patch 9.0.0281: build failure without the +eval feature
...
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
2022-08-26 19:58:49 +01:00
Bram Moolenaar
5416232707
patch 9.0.0279: the tiny version has the popup menu but not 'wildmenu'
...
Problem: The tiny version has the popup menu but not 'wildmenu'.
Solution: Graduate the wildmenu feature.
2022-08-26 16:58:51 +01:00
zeertzjq
b82a2ab8ad
patch 9.0.0236: popup menu not removed when 'wildmenu' reset while visible
...
Problem: Popup menu not removed when 'wildmenu' reset while it is visible.
Solution: Do not check p_wmnu, only pum_visible(). (closes #10953 )
2022-08-21 14:33:57 +01:00
Bram Moolenaar
57e95179ab
patch 9.0.0231: expanding "**" may loop forever with directory links
...
Problem: Expanding "**" may loop forever with directory links.
Solution: Check for being interrupted. (closes #10946 )
2022-08-20 19:26:14 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
Yegappan Lakshmanan
7db3a8e329
patch 9.0.0089: fuzzy argument completion doesn't work for shell commands
...
Problem: Fuzzy argument completion doesn't work for shell commands.
Solution: Check for cmdidx not being CMD_bang. (Yegappan Lakshmanan,
closes #10769 )
2022-07-26 22:01:36 +01:00
Bram Moolenaar
93a1096fe4
patch 8.2.5107: some callers of rettv_list_alloc() check for not OK
...
Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van
Willegen)
Solution: Use "==" instead of "!=" when checking the return value.
2022-06-16 11:42:09 +01:00
Christian Brabandt
cb747899bd
patch 8.2.4917: fuzzy expansion of option names is not right
...
Problem: Fuzzy expansion of option names is not right.
Solution: Pass the fuzzy flag down the call chain. (Christian Brabandt,
closes #10380 , closes #10318 )
2022-05-08 21:10:56 +01:00
Shougo Matsushita
79d599b877
patch 8.2.4903: cannot get the current cmdline completion type and position
...
Problem: Cannot get the current cmdline completion type and position.
Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
closes #10344 )
2022-05-07 12:48:29 +01:00
Bram Moolenaar
11a57dfd16
patch 8.2.4738: Esc on commandline executes command instead of abandoning it
...
Problem: Esc on commandline executes command instead of abandoning it.
Solution: Save and restore KeyTyped when removing the popup menu.
(closes #10154 )
2022-04-11 19:38:56 +01:00
Bram Moolenaar
c6e0a5e98c
patch 8.2.4732: duplicate code to free fuzzy matches
...
Problem: Duplicate code to free fuzzy matches.
Solution: Bring back fuzmatch_str_free().
2022-04-10 18:09:06 +01:00
Yegappan Lakshmanan
454ce6737c
patch 8.2.4617: no completion for :scriptnames
...
Problem: No completion for :scriptnames.
Solution: Implement :scriptnames completion. (Yegappan Lakshmanan,
closes #10005 )
2022-03-24 11:22:13 +00:00
Yegappan Lakshmanan
e7dd0fa2c6
patch 8.2.4608: getcompletion() does not work when 'wildoptions' has "fuzzy"
...
Problem: getcompletion() does not work properly when 'wildoptions
contains "fuzzy".
Solution: Do not use addstar(). (Yegappan Lakshmanan, closes #9992 ,
closes #9986 )
2022-03-22 16:06:31 +00:00
Yegappan Lakshmanan
5cffa8df7e
patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menu
...
Problem: Cannot use page-up and page-down in the command line completion
popup menu.
Solution: Check for to page-up and page-down keys. (Yegappan Lakshmanan,
closes #9960 )
2022-03-16 13:33:53 +00:00
Yegappan Lakshmanan
1fdf84e033
patch 8.2.4570: no command line completion for :profile and :profdel
...
Problem: No command line completion for :profile and :profdel.
Solution: Implement completion. (Yegappan Lakshmanan, closes #9955 )
2022-03-15 10:53:09 +00:00
Bram Moolenaar
6e2e2cc95b
patch 8.2.4565: no command line completion for :breakadd and :breakdel
...
Problem: No command line completion for :breakadd and :breakdel.
Solution: Add completion for :breakadd and :breakdel. (Yegappan Lakshmanan,
closes #9950 )
2022-03-14 19:24:46 +00:00
Bram Moolenaar
3e7637bd26
patch 8.2.4485: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable.
Solution: Initialize the variable. (John Marriott)
2022-02-28 21:02:19 +00:00
Yegappan Lakshmanan
5de4c4372d
patch 8.2.4483: command completion makes two rounds to collect matches
...
Problem: Command completion makes two rounds to collect matches.
Solution: Use a growarray to collect matches. (Yegappan Lakshmanan,
closes #9860 )
2022-02-28 13:28:38 +00:00
Yegappan Lakshmanan
afd4ae35d6
patch 8.2.4482: no fuzzy cmdline completion for user defined completion
...
Problem: No fuzzy cmdline completion for user defined completion.
Solution: Add fuzzy completion for user defined completion. (Yegappan
Lakshmanan, closes #9858 )
2022-02-27 21:03:21 +00:00
Bram Moolenaar
5c52be40fb
patch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is set
...
Problem: Cmdline popup menu not removed when 'lazyredraw' is set.
Solution: Temporarily reset 'lazyredraw' when removing the popup menu.
(closes #9857 )
2022-02-27 14:28:31 +00:00
Yegappan Lakshmanan
6caeda2fce
patch 8.2.4479: no fuzzy completieon for maps and abbreviations
...
Problem: No fuzzy completieon for maps and abbreviations.
Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan,
closes #9856 )
2022-02-27 12:07:30 +00:00
Yegappan Lakshmanan
00333cb3b3
patch 8.2.4478: crash when using fuzzy completion
...
Problem: Crash when using fuzzy completion.
Solution: Temporary fix: put back regexp. (closes #9852 , closes #9851 )
2022-02-26 16:05:08 +00:00
Bram Moolenaar
29ab6ce9f3
patch 8.2.4477: crash when using fuzzy completion
...
Problem: Crash when using fuzzy completion.
Solution: Temporary fix: put back regexp. (closes #9851 )
2022-02-26 15:52:08 +00:00
Yegappan Lakshmanan
4df5b33f20
patch 8.2.4475: fuzzy cmdline completion does not work for lower case
...
Problem: Fuzzy cmdline completion does not work for lower case.
Solution: Also use fuzzy completion for lower case input. (Yegappan
Lakshmanan, closes #9849 )
2022-02-26 11:04:42 +00:00
Yegappan Lakshmanan
5ec633b9b0
patch 8.2.4465: fuzzy completion does not order matches properly
...
Problem: Fuzzy completion does not order matches properly.
Solution: Do not use regular expression match. (Yegappan Lakshmanan,
closes #9843 )
2022-02-25 15:24:24 +00:00
Yegappan Lakshmanan
38b85cb4d7
patch 8.2.4463: completion only uses strict matching
...
Problem: Completion only uses strict matching.
Solution: Add the "fuzzy" item for 'wildoptions'. (Yegappan Lakshmanan,
closes #9803 )
2022-02-24 13:28:41 +00:00
Yegappan Lakshmanan
2438430863
patch 8.2.4406: expand functions use confusing argument names
...
Problem: Expand functions use confusing argument names.
Solution: Rename "file" to "match". Refactor some completion code. Add a
few more tests. (Yegappan Lakshmanan, closes #9790 )
2022-02-17 11:26:42 +00:00
Yegappan Lakshmanan
b31aec3b93
patch 8.2.4398: some command completion functions are too long
...
Problem: Some command completion functions are too long.
Solution: Refactor code into separate functions. Add a few more tests.
(Yegappan Lakshmanan, closes #9785 )
2022-02-16 12:44:29 +00:00
Yegappan Lakshmanan
e3846cf1eb
patch 8.2.4387: command line completion doesn't always work properly
...
Problem: Command line completion doesn't always work properly.
Solution: Adjust triggering after a "|". Add more tests. (Yegappan
Lakshmanan, closes #9779 )
2022-02-15 11:35:54 +00:00
Yegappan Lakshmanan
4d03d87000
patch 8.2.4366: not enough tests for command line completion
...
Problem: Not enough tests for command line completion.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #9760 )
2022-02-13 11:45:09 +00:00