aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
Commit message (Collapse)AuthorAge
...
* 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.
* refactor: remove char_u (#22829)dundargoc2023-04-02
| | | Closes https://github.com/neovim/neovim/issues/459
* fix(api): Use local LastSet structure in nvim_get_option_info (#22741)Michal Liszcz2023-03-29
| | | | | | | | | | fix(api): use local LastSet structure in nvim_get_option_info * nvim_get_option_info is deprecated. It is always using the global LastSet information as reported in #15232. * nvim_get_option_info2 is added. The new function additionally accepts an 'opts' table {scope, buf, win} allowing to specify the option scope and query local options from another buffer or window.
* fix(column): invalidate statuscolumn width when UPD_NOT_VALID (#22723)luukvbaal2023-03-19
|
* fix(column): rebuild status column when sign column is invalidated (#22690)luukvbaal2023-03-18
| | | | | | | | | | | * fix(column): rebuild status column when sign column is invalidated Problem: When implementing a custom sign column through `'statuscolumn'`, the status column is not properly rebuilt when the sign column width changes. Solution: Force a rebuild of the status column when the sign column width is invalidated. * test(column): 'statuscolumn' has correct width when (un)placing signs
* 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.1380: CTRL-X on 2**64 subtracts two (#22530)zeertzjq2023-03-05
| | | | | | | | Problem: CTRL-X on 2**64 subtracts two. (James McCoy) Solution: Correct computation for large number. (closes vim/vim#12103) https://github.com/vim/vim/commit/5fb78c3fa5c996c08a65431d698bd2c251eef5c7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* refactor: replace char_u with char or uint8_t (#22400)dundargoc2023-03-04
| | | Work on https://github.com/neovim/neovim/issues/459
* refactor(build): graduate HAVE_LOCALE_H featurebfredl2023-03-03
| | | | | | Merge locale.h into os/lang.h Having a source file with the same name as a system header we use is considered an anti-pattern.
* feat(edit)!: remove old c implementation of hebrew keymapbfredl2023-02-28
| | | | | | | This feature has long been obsolete. The 'keymap' option can be used to support language keymaps, including hebrew and hebrewp (phonetic mapping). There is no need to keep the old c code with hardcoded keymaps for some languages.
* Merge pull request #22113 from luukvbaal/nrwidthLewis Russell2023-02-14
|\ | | | | fix(column): no longer reset nrwidth_line_count for 'statuscolumn'
| * fix(column): no longer reset nrwidth_line_count for 'statuscolumn'Luuk van Baal2023-02-04
| | | | | | | | | | | | | | | | Problem: We still explicitly reset `nrwidth_line_count` when changing `'number'` or `'relativenumber'` but this is no longer needed since the introduction of a `statuscol_line_count`. Solution: Remove reset of `nrwidth_line_count`. Resolve https://github.com/neovim/neovim/pull/22094#issuecomment-1416168926.
* | refactor(api): VALIDATE macros #22187Justin M. Keyes2023-02-14
| | | | | | | | | | | | | | | | | | Problem: - API validation involves too much boilerplate. - API validation errors are not consistently worded. Solution: Introduce some macros. Currently these are clumsy, but they at least help with consistency and avoid some nesting.
* | 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
| |
* | vim-patch:9.0.1295: the option initialization function is too long (#22222)zeertzjq2023-02-11
| | | | | | | | | | | | | | | | | | Problem: The option initialization function is too long. Solution: Move code to separate functions. (Yegappan Lakshmanan, closes vim/vim#11966) https://github.com/vim/vim/commit/6c41bedeed2a1f98fb9c55ff85634138782ad92a Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* | refactor: replace char_u with char (#21901)dundargoc2023-02-11
| | | | | | | | | | refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
* | build: enable MSVC level 3 warnings (#21934)dundargoc2023-02-11
| | | | | | | | | | | | MSVC has 4 different warning levels: 1 (severe), 2 (significant), 3 (production quality) and 4 (informational). Enabling level 3 warnings mostly revealed conversion problems, similar to GCC/clang -Wconversion flag.
* | refactor(ui): remove some superfluous ui_flush() callsbfredl2023-02-09
|/ | | | | | | | - <expr> mapping has no business saving and restoring the low-level UI cursor. The cursor will be put in a reasonable position after input is processed, chill out. - TUI handles output needed for suspend - vgetc() family of function does flushing
* Merge pull request #21994 from lewis6991/refactor/option_setLewis Russell2023-01-27
|\
| * refactor(option.c): factor out string option special case handlingLewis Russell2023-01-27
| |
| * refactor(option.c): factor out some nextchar checksLewis Russell2023-01-27
| |
| * refactor(option.c): add do_set_option_valueLewis Russell2023-01-26
| |
| * refactor(option.c): move bool prefix checkLewis Russell2023-01-26
| |
| * refactor(option.c): de-nest code in do_set_optionLewis Russell2023-01-26
| |
| * refactor(option.c): factor out opt_idx validationLewis Russell2023-01-26
| |
| * refactor(option.c): factor out option name parsingLewis Russell2023-01-26
| |
| * refactor(option.c): factor out option prefix parsingLewis Russell2023-01-26
| |
| * refactor(option.c): factor out set op parsingLewis Russell2023-01-26
| |
| * refactor(option.c): use skiptowhite_escLewis Russell2023-01-26
| |
| * refactor(option.c): change nextchar to uint8_tLewis Russell2023-01-26
| |
| * refactor(option.c): remove gotoLewis Russell2023-01-26
| |
| * refactor(option.c): int -> boolLewis Russell2023-01-26
| |
| * refactor(option.c): reduce scope or startargLewis Russell2023-01-26
| |
| * refactor(option.c): reduce scope or errbufLewis Russell2023-01-26
| |
| * refactor(option.c): reduce scope or errmsgLewis Russell2023-01-26
| |
| * refactor(option.c): factor out loop code from do_set()Lewis Russell2023-01-26
| |
| * refactor(option.c): factor out common skip checkLewis Russell2023-01-26
| |
| * refactor(option.c): simplify do_set_stringLewis Russell2023-01-26
| |
| * refactor(option.c): add do_set_boolLewis Russell2023-01-26
| |
| * refactor(option.c): add do_set_numLewis Russell2023-01-26
| |
* | vim-patch:9.0.1242: code for :runtime completion is not consistentzeertzjq2023-01-26
|/ | | | | | | Problem: Code for :runtime completion is not consistent. Solution: Make code for cmdline expansion more consistent. (closes vim/vim#11875) https://github.com/vim/vim/commit/b0d45ec67f4976318f199a7929ad3bcf93686fd0
* refactor(optionstr.c): add did_set_string_option_forLewis Russell2023-01-25
|
* refactor(optionstr.c): break up did_set_string_option 7Lewis Russell2023-01-25
|
* refactor(option.c): use intermediate for options refLewis Russell2023-01-25
|
* refactor(option.c): de-nest set_option_valueLewis Russell2023-01-25
|