Commit Graph

258 Commits

Author SHA1 Message Date
Luuk van Baal
fe11079721 perf(statusline): UI elements are always redrawn on K_EVENT
Problem:    'statusline'-format UI elements are redrawn on each K_EVENT.
Solution:   Only redraw UI elements when something relevant has changed.
2023-03-08 12:36:03 +01:00
luukvbaal
bf4eada2c8 fix(column): issues with 'statuscolumn' width (#22542)
Problem:    'statuscolumn' width can be incorrect when toggling 'number'
            or setting 'statuscolumn'.
Solution:   Make sure the width is reset and re-estimated when
            'statuscolumn' and 'number' are set. (When 'relativenumber'
            is set this already happens because it always changes
            "nrwidth_line_count".)
2023-03-07 08:45:08 +08:00
zeertzjq
20c9f4b352 vim-patch:9.0.1307: setting 'formatoptions' with :let doesn't check for errors (#22252)
Problem:    Setting 'formatoptions' with :let doesn't check for errors.
Solution:   Pass "errbuf" to set_string_option(). (Yegappan Lakshmanan,
            closes vim/vim#11974, closes vim/vim#11972)

32ff96ef01

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-02-14 08:29:05 +08:00
dundargoc
27177e5819 refactor: reduce scope of locals as per the style guide (#22211) 2023-02-11 14:14:24 +01:00
bfredl
625e990976 refactor(ui): cleanup 'redrawdebug', introduce "flush" mode 2023-02-08 18:02:55 +01:00
Christian Clason
e1f03c481a feat(spell): also source spell/LANG.lua when setting spelllang (#22111)
Problem: only Vimscript files are sourced when setting spelling language
Solution: also source Lua files after sourcing Vimscript files

Closes #22110
2023-02-06 10:01:38 +01:00
zeertzjq
249b9de405 refactor(optionstr.c): align comments (#22070)
Align comments in did_set_string_option_for() at column 57.
2023-02-01 08:17:18 +08:00
zeertzjq
4c90a84c61 vim-patch:9.0.1255: changing 'virtualedit' does not have immediate effect (#22039)
Problem:    Changing 'virtualedit' does not have immediate effect.
Solution:   Correct how is checked for a changed value. (closes vim/vim#11878)

8fe5b9c8c1

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-01-29 07:42:22 +08:00
zeertzjq
116766f243 refactor(options): don't pass negative number to illegal_char() (#21999)
This only changes the error messages for an unexpected Unicode char in
an option to show its first byte instead of some special keycode.

The second argument of vim_strchr() usually doesn't matter, but it may
be better to consistently cast to uint8_t.
2023-01-26 09:12:33 +08:00
zeertzjq
f15947866c vim-patch:9.0.1243: :setglobal cannot use script-local function for "expr" option (#21997)
Problem:    :setglobal cannot use script-local function for "expr" option.
Solution:   Use the pointer to the option value properly. (closes vim/vim#11883)

01d4efe2e8
2023-01-26 07:46:51 +08:00
Lewis Russell
7bee622fdc refactor(optionstr.c): move handling of formatlistpat 2023-01-25 12:17:38 +00:00
Lewis Russell
15499fa856 refactor(optionstr.c): break up did_set_expropt 2023-01-25 12:13:06 +00:00
Lewis Russell
f37ec6026f refactor(optionstr.c): remove some redundant parens 2023-01-25 11:48:55 +00:00
Lewis Russell
b278e0740e refactor(optionstr.c): break up did_option_listflags 2023-01-25 11:48:55 +00:00
Lewis Russell
38ed432164 refactor(optionstr.c): add did_set_string_option_for 2023-01-25 11:48:55 +00:00
Lewis Russell
414e71fa4f refactor(optionstr.c): break up did_set_string_option 52 2023-01-25 11:48:53 +00:00
Lewis Russell
0012ed2bc7 refactor(optionstr.c): break up did_set_string_option 51 2023-01-25 11:48:53 +00:00
Lewis Russell
2654a9e9d8 refactor(optionstr.c): remove some simple did_set_* functions 2 2023-01-25 11:48:53 +00:00
Lewis Russell
e5234d48ed refactor(optionstr.c): remove some simple did_set_* functions 2023-01-25 11:48:53 +00:00
Lewis Russell
c6e7abb583 refactor(optionstr.c): break up did_set_string_option 50 2023-01-25 11:48:53 +00:00
Lewis Russell
6dac70bbfe refactor(optionstr.c): break up did_set_string_option 49 2023-01-25 11:48:53 +00:00
Lewis Russell
01e51d3bd1 refactor(optionstr.c): break up did_set_string_option 48 2023-01-25 11:48:53 +00:00
Lewis Russell
f1ac5aec23 refactor(optionstr.c): break up did_set_string_option 47 2023-01-25 11:48:53 +00:00
Lewis Russell
cb1e5ddbfb refactor(optionstr.c): break up did_set_string_option 46 2023-01-25 11:48:52 +00:00
Lewis Russell
e0954f676a refactor(optionstr.c): break up did_set_string_option 45 2023-01-25 11:48:52 +00:00
Lewis Russell
a026cf0d94 refactor(optionstr.c): break up did_set_string_option 44 2023-01-25 11:48:52 +00:00
Lewis Russell
d59349de7b refactor(optionstr.c): break up did_set_string_option 43 2023-01-25 11:48:52 +00:00
Lewis Russell
99910c7382 refactor(optionstr.c): break up did_set_string_option 42 2023-01-25 11:48:52 +00:00
Lewis Russell
2a83a5077d refactor(optionstr.c): break up did_set_string_option 41 2023-01-25 11:48:52 +00:00
Lewis Russell
a84bc3817a refactor(optionstr.c): break up did_set_string_option 40 2023-01-25 11:48:52 +00:00
Lewis Russell
902b89ad4b refactor(optionstr.c): break up did_set_string_option 39 2023-01-25 11:48:52 +00:00
Lewis Russell
4c365548a2 refactor(optionstr.c): break up did_set_string_option 38 2023-01-25 11:48:52 +00:00
Lewis Russell
3ea6a45a12 refactor(optionstr.c): break up did_set_string_option 37 2023-01-25 11:48:52 +00:00
Lewis Russell
bc2c9b1a08 refactor(optionstr.c): break up did_set_string_option 36 2023-01-25 11:48:52 +00:00
Lewis Russell
6d701cf772 refactor(optionstr.c): break up did_set_string_option 35 2023-01-25 11:48:52 +00:00
Lewis Russell
47544b6255 refactor(optionstr.c): break up did_set_string_option 34 2023-01-25 11:48:52 +00:00
Lewis Russell
b693d65171 refactor(optionstr.c): break up did_set_string_option 33 2023-01-25 11:48:52 +00:00
Lewis Russell
8ef464aeb4 refactor(optionstr.c): break up did_set_string_option 32 2023-01-25 11:48:52 +00:00
Lewis Russell
0522dc35af refactor(optionstr.c): break up did_set_string_option 31 2023-01-25 11:48:52 +00:00
Lewis Russell
59746d228e refactor(optionstr.c): break up did_set_string_option 30 2023-01-25 11:48:52 +00:00
Lewis Russell
5024ac8eb5 refactor(optionstr.c): break up did_set_string_option 29 2023-01-25 11:48:52 +00:00
Lewis Russell
655292586a refactor(optionstr.c): break up did_set_string_option 28 2023-01-25 11:48:52 +00:00
Lewis Russell
f9e15db27d refactor(optionstr.c): break up did_set_string_option 27 2023-01-25 11:48:52 +00:00
Lewis Russell
700a02bd83 refactor(optionstr.c): break up did_set_string_option 26 2023-01-25 11:48:52 +00:00
Lewis Russell
7fa7c758e2 refactor(optionstr.c): break up did_set_string_option 25 2023-01-25 11:48:52 +00:00
Lewis Russell
12d065dceb refactor(optionstr.c): break up did_set_string_option 24 2023-01-25 11:48:52 +00:00
Lewis Russell
3fbc5f9860 refactor(optionstr.c): break up did_set_string_option 23 2023-01-25 11:48:52 +00:00
Lewis Russell
ccaed94475 refactor(optionstr.c): break up did_set_string_option 22 2023-01-25 11:48:52 +00:00
Lewis Russell
6dc62f2fe2 refactor(optionstr.c): break up did_set_string_option 21 2023-01-25 11:48:52 +00:00
Lewis Russell
2cea568a7c refactor(optionstr.c): break up did_set_string_option 20 2023-01-25 11:48:52 +00:00