Luuk van Baal
44d4f03573
fix(column): rebuild status column when sign column is invalid
2023-04-19 03:22:27 +02:00
zeertzjq
e24a84f18e
vim-patch:9.0.1064: code for making 'shortmess' temporarily empty is repeated
...
Problem: Code for making 'shortmess' temporarily empty is repeated.
Solution: Add functions for making 'shortmess' empty and restoring it.
(Christian Brabandt, closes vim/vim#11709 )
9aee8ec400
Co-authored-by: Christian Brabandt <cb@256bit.org >
2023-04-16 16:12:52 +08:00
ii14
371823d407
refactor: make error message definitions const
...
message.c functions now take const char * as a format. Error message
definitions can be made const.
2023-04-05 21:13:53 +02:00
Lewis Russell
8b7fb668e4
fix(filetype): avoid recursive FileType autocmds ( #22813 )
2023-03-29 19:54:12 +01:00
luukvbaal
eeac80de0c
fix(column): invalidate statuscolumn width when UPD_NOT_VALID ( #22723 )
2023-03-19 09:21:49 +00:00
zeertzjq
c6f8af36e1
fix(spell): properly source spell/LANG.{vim,lua} ( #22716 )
...
Using regexp doesn't work here because there are no wildcards.
2023-03-18 09:55:08 +08:00
bfredl
d6ecead364
refactor(screen): screen.c delenda est
...
drawscreen.c vs screen.c makes absolutely no sense.
The screen exists only to draw upon it, therefore helper functions
are distributed randomly between screen.c and the file that
does the redrawing. In addition screen.c does a lot of drawing on the
screen.
It made more sense for vim/vim as our grid.c is their screen.c
Not sure if we want to dump all the code for option chars into
optionstr.c, so keep these in a optionchar.c for now.
2023-03-14 13:37:43 +01:00
ii14
2daf0b37db
feat(options)!: deprecate paste, remove pastetoggle ( #22647 )
...
we cannot remove 'paste'. It is very common in plugins and configs.
'pastetoggle' can and should be removed though, it's a total waste of everyone's time because it generates bug reports and doesn't work well, and is useless because bracketed-paste works better.
2023-03-13 10:29:11 +08:00
bfredl
846a056744
refactor(redraw): make cursor position redraw use the "redraw later" pattern
2023-03-12 10:18:57 +01:00
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