Lewis Russell
77a0ce1d9b
refactor(option.c): factor out string option special case handling
2023-01-27 10:43:42 +00:00
Lewis Russell
068151f5c6
refactor(option.c): factor out some nextchar checks
2023-01-27 10:43:41 +00:00
Lewis Russell
8f2d3537b4
refactor(option.c): add do_set_option_value
2023-01-26 10:42:26 +00:00
Lewis Russell
0170219e92
refactor(option.c): move bool prefix check
2023-01-26 10:26:07 +00:00
Lewis Russell
c6907ea895
refactor(option.c): de-nest code in do_set_option
2023-01-26 10:02:01 +00:00
Lewis Russell
e49ae04caf
refactor(option.c): factor out opt_idx validation
2023-01-26 10:02:00 +00:00
Lewis Russell
2c601787ab
refactor(option.c): factor out option name parsing
2023-01-26 10:02:00 +00:00
Lewis Russell
9a9129c60b
refactor(option.c): factor out option prefix parsing
2023-01-26 10:02:00 +00:00
Lewis Russell
0f3fa5a30a
refactor(option.c): factor out set op parsing
2023-01-26 10:02:00 +00:00
Lewis Russell
25310af060
refactor(option.c): use skiptowhite_esc
2023-01-26 10:02:00 +00:00
Lewis Russell
334f538267
refactor(option.c): change nextchar to uint8_t
2023-01-26 10:02:00 +00:00
Lewis Russell
ef85238fde
refactor(option.c): remove goto
2023-01-26 10:02:00 +00:00
Lewis Russell
a13e97ece5
refactor(option.c): int -> bool
2023-01-26 10:01:59 +00:00
Lewis Russell
bb1efa85aa
refactor(option.c): reduce scope or startarg
2023-01-26 09:53:15 +00:00
Lewis Russell
b93bec68bc
refactor(option.c): reduce scope or errbuf
2023-01-26 09:53:15 +00:00
Lewis Russell
3ae3e47d54
refactor(option.c): reduce scope or errmsg
2023-01-26 09:53:14 +00:00
Lewis Russell
e368560c80
refactor(option.c): factor out loop code from do_set()
2023-01-26 09:53:13 +00:00
Lewis Russell
18c37c616e
refactor(option.c): factor out common skip check
2023-01-26 09:52:22 +00:00
Lewis Russell
9679d058d4
refactor(option.c): simplify do_set_string
2023-01-26 09:51:45 +00:00
Lewis Russell
ca1ad8977c
refactor(option.c): add do_set_bool
2023-01-26 09:51:45 +00:00
Lewis Russell
37b44d1772
refactor(option.c): add do_set_num
2023-01-26 09:51:43 +00:00
zeertzjq
ebc80dcded
vim-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 vim/vim#11875 )
b0d45ec67f
2023-01-26 11:55:34 +08:00
Lewis Russell
38ed432164
refactor(optionstr.c): add did_set_string_option_for
2023-01-25 11:48:55 +00:00
Lewis Russell
a22702b5d5
refactor(optionstr.c): break up did_set_string_option 7
2023-01-25 11:48:52 +00:00
Lewis Russell
db87807983
refactor(option.c): use intermediate for options ref
2023-01-25 11:48:52 +00:00
Lewis Russell
29215d3a49
refactor(option.c): de-nest set_option_value
2023-01-25 11:48:51 +00:00
Lewis Russell
f90d78654a
refactor(option.c): add get_varp_from and get_varp_scope_from
2023-01-25 11:48:48 +00:00
Lewis Russell
00a7c40f4f
refactor(option.c): reduce scope of locals
2023-01-24 13:15:40 +00:00
dundargoc
4c531714ff
refactor: replace char_u with char 25 ( #21838 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-19 22:25:56 +08:00
dundargoc
8a4285d563
refactor: replace char_u with char 24 ( #21823 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-18 21:17:11 +08:00
zeertzjq
9a2dd52a6a
vim-patch:9.0.1215: using isalpha() adds dependency on current locale
...
Problem: Using isalpha() adds dependency on current locale.
Solution: Do not use isalpha() for recognizing a URL or the end of an Ex
command. (closes vim/vim#11835 )
0ef9a5c094
2023-01-18 06:50:47 +08:00
dundargoc
0344bfad0f
refactor: replace char_u with char 22 ( #21786 )
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-17 21:17:40 +08:00
zeertzjq
58f2dcfc88
vim-patch:8.2.4917: fuzzy expansion of option names is not right ( #21853 )
...
Problem: Fuzzy expansion of option names is not right.
Solution: Pass the fuzzy flag down the call chain. (Christian Brabandt,
closes vim/vim#10380 , closes vim/vim#10318 )
cb747899bd
Co-authored-by: Christian Brabandt <cb@256bit.org >
2023-01-17 16:46:43 +08:00
Sean Dewar
6734dd2503
vim-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 vim/vim#9803 )
38b85cb4d7
Use MAX_FUZZY_MATCHES in fuzzy_match_str().
Omit fuzmatch_str_free() as it is only used on allocation failure.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-01-17 14:01:10 +08:00
zeertzjq
f72cb97fa0
vim-patch:9.0.1208: code is indented more than necessary ( #21846 )
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes vim/vim#11819 )
a41e221935
Cherry-pick check_text_or_curbuf_locked() from patch 9.0.0947.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-01-17 08:09:51 +08:00
dundargoc
e89c39d6f0
refactor: replace char_u with char 21 ( #21779 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-14 15:58:28 +08:00
dundargoc
f2141de9e4
refactor: replace char_u with char 20 ( #21714 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-13 07:35:39 +08:00
luukvbaal
364b131f42
feat(ui): add 'statuscolumn' option
...
Problem: Unable to customize the column next to a window ('gutter').
Solution: Add 'statuscolumn' option that follows the 'statusline' syntax,
allowing to customize the status column. Also supporting the %@
click execute function label. Adds new items @C and @s which
will print the fold and sign columns. Line numbers and signs
can be clicked, highlighted, aligned, transformed, margined etc.
2023-01-09 17:12:06 +00:00
dundargoc
50f03773f4
refactor: replace char_u with char 18 ( #21237 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 22:37:34 +08:00
dundargoc
1492094003
refactor: replace char_u with char 17 - remove STRLCPY ( #21235 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 21:13:06 +08:00
dundargoc
08c2c74806
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2023-01-09 17:03:40 +08:00
Justin M. Keyes
5e9508c702
Merge #21580 cmdline issues with cmdheight=0
2023-01-03 11:02:32 -05:00
Lewis Russell
5841a97500
feat!: remove hardcopy
...
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2023-01-03 10:07:43 +00:00
Luuk van Baal
b102bf22c0
fix(ui): allow resize commands to set 'cmdheight' to 0
...
Resolve https://github.com/neovim/neovim/issues/21558
2022-12-31 00:30:53 +01:00
dundargoc
ec1738a6ed
refactor: replace char_u with char 16 - remove STRNCMP ( #21208 )
...
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
2022-12-21 19:00:05 +08:00
Justin M. Keyes
614d382621
refactor: rename mch_msg => os_msg
2022-12-16 17:33:52 +01:00
Lewis Russell
4ca3519a7a
refactor(option.c): reduce scope of locals ( #21433 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-12-16 11:24:44 +00:00
zeertzjq
46e4be0fd0
vim-patch:8.2.2295: incsearch does not detect empty pattern properly
...
Problem: Incsearch does not detect empty pattern properly.
Solution: Return magic state when skipping over a pattern. (Christian
Brabandt, closes vim/vim#7612 , closes vim/vim#6420 )
d93a7fc1a9
2022-12-04 10:07:05 +08:00
zeertzjq
a91ba088ab
vim-patch:8.2.2182: Vim9: value of 'magic' is still relevant
...
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes vim/vim#7509 )
f4e2099e39
EX_NONWHITE_OK is N/A: only applies to Vim9 script.
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2022-12-04 10:07:04 +08:00
zeertzjq
70ac0c9358
vim-patch:8.2.3889: duplicate code for translating script-local function name
...
Problem: Duplicate code for translating script-local function name.
Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan,
closes vim/vim#9393 )
e7f4abd38b
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2022-12-03 03:39:56 +08:00