aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
Commit message (Collapse)AuthorAge
...
| * vim-patch:9.0.1294: the set_bool_option() function is too long Lewis Russell2023-04-21
| | | | | | | | | | | | | | | | | | | | Problem: The set_bool_option() function is too long. Solution: Move code to separate functions. (Yegappan Lakshmanan, closes vim/vim#11964) https://github.com/vim/vim/commit/80b817b7494b5b162efd2d0d308933f81aef7c45 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * Merge pull request #23187 from luukvbaal/statuscolumnLewis Russell2023-04-21
| |\ | | | | | | fix(column): rebuild status column when sign column is invalid
| | * fix(column): rebuild status column when sign column is invalidLuuk van Baal2023-04-19
| | |
| * | refactor: fix PVS warnings (#23200)zeertzjq2023-04-19
| |/
| * vim-patch:8.2.4180: 'balloonexpr' is evaluated in the current script contextzeertzjq2023-04-17
| | | | | | | | | | | | | | | | | | Problem: 'balloonexpr' is evaluated in the current script context. Solution: Use the script context where the option was set. https://github.com/vim/vim/commit/5600a709f453045c80f92087acc0f855b4af377a Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:8.2.1080: Vim9: no line break allowed in a for loopzeertzjq2023-04-14
| | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: no line break allowed in a for loop. Solution: Skip line breaks in for command. https://github.com/vim/vim/commit/b7a78f7a6713f07d2fcad0b27dea22925c7b1cdf Omit *_break_count and skip_for_lines(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * refactor: remove redundant castsii142023-04-07
| |
| * refactor: remove redundant castsii142023-04-07
| |
| * refactor: remove redundant const char * castsii142023-04-07
| |
| * 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
| | |