aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
Commit message (Collapse)AuthorAge
* vim-patch:9.0.1064: code for making 'shortmess' temporarily empty is repeatedzeertzjq2023-04-16
| | | | | | | | | | 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) https://github.com/vim/vim/commit/9aee8ec400fe617f6d82441c46a22d0cef6fa3e6 Co-authored-by: Christian Brabandt <cb@256bit.org>
* refactor: make error message definitions constii142023-04-05
| | | | message.c functions now take const char * as a format. Error message definitions can be made const.
* fix(filetype): avoid recursive FileType autocmds (#22813)Lewis Russell2023-03-29
|
* fix(column): invalidate statuscolumn width when UPD_NOT_VALID (#22723)luukvbaal2023-03-19
|
* fix(spell): properly source spell/LANG.{vim,lua} (#22716)zeertzjq2023-03-18
| | | Using regexp doesn't work here because there are no wildcards.
* refactor(screen): screen.c delenda estbfredl2023-03-14
| | | | | | | | | | | | | 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.
* feat(options)!: deprecate paste, remove pastetoggle (#22647)ii142023-03-13
| | | | | 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.
* refactor(redraw): make cursor position redraw use the "redraw later" patternbfredl2023-03-12
|
* perf(statusline): UI elements are always redrawn on K_EVENTLuuk van Baal2023-03-08
| | | | | Problem: 'statusline'-format UI elements are redrawn on each K_EVENT. Solution: Only redraw UI elements when something relevant has changed.
* fix(column): issues with 'statuscolumn' width (#22542)luukvbaal2023-03-07
| | | | | | | | 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".)
* vim-patch:9.0.1307: setting 'formatoptions' with :let doesn't check for ↵zeertzjq2023-02-14
| | | | | | | | | | | 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) https://github.com/vim/vim/commit/32ff96ef018eb1a5bea0953648b4892a6ee71658 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* refactor: reduce scope of locals as per the style guide (#22211)dundargoc2023-02-11
|
* refactor(ui): cleanup 'redrawdebug', introduce "flush" modebfredl2023-02-08
|
* feat(spell): also source `spell/LANG.lua` when setting `spelllang` (#22111)Christian Clason2023-02-06
| | | | | | Problem: only Vimscript files are sourced when setting spelling language Solution: also source Lua files after sourcing Vimscript files Closes #22110
* refactor(optionstr.c): align comments (#22070)zeertzjq2023-02-01
| | | Align comments in did_set_string_option_for() at column 57.
* vim-patch:9.0.1255: changing 'virtualedit' does not have immediate effect ↵zeertzjq2023-01-29
| | | | | | | | | | (#22039) Problem: Changing 'virtualedit' does not have immediate effect. Solution: Correct how is checked for a changed value. (closes vim/vim#11878) https://github.com/vim/vim/commit/8fe5b9c8c1223861cec0484ccc031858ae08d107 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* refactor(options): don't pass negative number to illegal_char() (#21999)zeertzjq2023-01-26
| | | | | | | 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.
* vim-patch:9.0.1243: :setglobal cannot use script-local function for "expr" ↵zeertzjq2023-01-26
| | | | | | | | 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) https://github.com/vim/vim/commit/01d4efe2e87632aa085897d3d64e27585908f977
* refactor(optionstr.c): move handling of formatlistpatLewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_exproptLewis Russell2023-01-25
|
* refactor(optionstr.c): remove some redundant parensLewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_option_listflagsLewis Russell2023-01-25
|
* refactor(optionstr.c): add did_set_string_option_forLewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 52Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 51Lewis Russell2023-01-25
|
* refactor(optionstr.c): remove some simple did_set_* functions 2Lewis Russell2023-01-25
|
* refactor(optionstr.c): remove some simple did_set_* functionsLewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 50Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 49Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 48Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 47Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 46Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 45Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 44Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 43Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 42Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 41Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 40Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 39Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 38Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 37Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 36Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 35Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 34Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 33Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 32Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 31Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 30Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 29Lewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 28Lewis Russell2023-01-25
|