aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
Commit message (Collapse)AuthorAge
...
| * | ui: cleanup UI_CALL wrappersBjörn Linse2017-05-10
| | | | | | | | | | | | remove pointless control chars in the text stream
| * | options: allow different highlights in windowsBjörn Linse2017-05-08
| | |
| * | options: consolidate updates for window string options affected by copy_winoptBjörn Linse2017-05-05
| | | | | | | | | | | | update note at options.c head about window options
| * | Use vim_strchr(s, c) when c may be NUL (#6656)James McCoy2017-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the refactoring in #5119, some vim_strchr() were changed to strchr(). However, vim_strchr() behaves differently than strchr() when c is NUL, returning NULL instead of a pointer to the NUL. Revert the strchr() calls where it isn't known whether c is NUL, since this causes a semantic change the surrounding code doesn't expect. In the case of #6650, this led to a heap overrun. Closes #6650
* | | Merge branch 'master' into option-fixesJakob Schnitzer2017-04-24
|\| |
| * | Merge #6550 from ZyX-I/pvs-check-commentJustin M. Keyes2017-04-20
| |\ \
| | * | *: Add comment to all C filesZyX2017-04-19
| | | |
| * | | 'scrollback': Allow :setlocal -1 on normal buffersJustin M. Keyes2017-04-20
| | | | | | | | | | | | | | | | Avoids a spurious :loadview error.
| * | | vim-patch:7.4.2209James McCoy2017-04-19
| |/ / | | | | | | | | | | | | | | | | | | | | | Problem: Cannot map <M-">. (Stephen Riehm) Solution: Solve the memory access problem in another way. (Dominique Pelle) Allow for using <M-\"> in a string. https://github.com/vim/vim/commit/35a4cfa200917dd171b1fff3cd5b6cee9add673d
| * / option: Remove FUNC_ATTR_MALLOC from get_winbuf_optionsZyX2017-04-15
| |/ | | | | | | Same as tv_dict_alloc() and additionally it saves some strings inside a dictionary.
| * 'guicursor': Disable by default for unknown terminals.Justin M. Keyes2017-04-04
| | | | | | | | | | | | | | User can still set guicursor explicitly in init.vim. Closes #5990 Closes #6403
| * 'listchars': `Whitespace` highlight group #6367Yichao Zhou2017-04-03
| |
| * vim-patch:7.4.2236lonerover2017-04-01
| | | | | | | | | | | | | | | | | | | | Problem: The 'langnoremap' option leads to double negatives. And it does not work for the last character of a mapping. Solution: Add 'langremap' with the opposite value. Keep 'langnoremap' for backwards compatibility. Make it work for the last character of a mapping. Make the test work. https://github.com/vim/vim/commit/920694c1b60fac8017b8909efcc24f189804a9bb
| * Merge pull request #6397 from jamessan/coverityJames McCoy2017-03-31
| |\ | | | | | | Fix latest Coverity issues
| | * coverity/16127: Verify lang is non-NULL before calling strlenJames McCoy2017-03-29
| | |
* | | update for changes in master; fix 'window'; testsJakob Schnitzer2017-03-31
| | |
* | | options: more tests; check first set later; stricter validationJakob Schnitzer2017-03-30
| | |
* | | options: fix setglobal for buf-local number optionsJakob Schnitzer2017-03-30
| | |
* | | options: group num_option validation by typeJakob Schnitzer2017-03-30
| | |
* | | options: more of the sameJakob Schnitzer2017-03-30
| | |
* | | options: move more validation togetherJakob Schnitzer2017-03-30
| | |
* | | options: clean up num_options side-effectsJakob Schnitzer2017-03-30
| | |
* | | options: if invalid value is given, reset to old valueJakob Schnitzer2017-03-30
| | |
* | | options: move code around in set_num_optionJakob Schnitzer2017-03-30
| | | | | | | | | | | | handle side-effects after validation
* | | options: setlocal should only set local valueJakob Schnitzer2017-03-30
|/ / | | | | | | For 'iminsert' and 'imsearch' the global value was always changed.
* / api: {get,set}_option should {get,set} global value of local options (#6405)Jakob Schnitzer2017-03-30
|/ | | | | - nvim_get_option should return the global default of a local option. - nvim_set_option should set the global default of a local option.
* *: Make some more things const and with lengthZyX2017-03-29
|
* eval: Move remaining get_tv_string* functions to eval/typval.cZyX2017-03-29
|
* eval: Split and move dict_add_nr_str to typval.cZyX2017-03-29
| | | | Function was split into tv_dict_add_nr() and tv_dict_add_str().
* *: Move some dictionary functions to typval.h and use char*ZyX2017-03-29
| | | | Also fixes buffer reusage in setmatches() and complete().
* terminal: global 'scrollback' #6352Jakob Schnitzer2017-03-27
| | | | | | | | | | | Make the 'scrollback' option work like most other buffer-local options: - `:set scrollback=x` sets the global and local value - `:setglobal scrollback=x` sets only the global default - new terminal buffers inherit the global Normal buffers are still always -1, and :setlocal there is an error. Closes #6337
* vim-patch:8.0.0179raichoo2017-03-19
| | | | | | | | Problem: 'formatprg' is a global option but the value may depend on the type of buffer. (Sung Pae) Solution: Make 'formatprg' global-local. (closes vim/vim#1380) https://github.com/vim/vim/commit/9be7c04e6cd5b0facedcb56b09a5bcfc339efe03
* Merge #6252 from jamessan/vim-7.4.2069Justin M. Keyes2017-03-15
|\ | | | | vim-patch:7.4.2069,7.4.2101,7.4.2222,7.4.2223
| * lintJames McCoy2017-03-11
| |
| * vim-patch:7.4.2101James McCoy2017-03-11
| | | | | | | | | | | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/2932359000b2f918d5fade79ea4d124d5943cd07
| * vim-patch:7.4.2069James McCoy2017-03-11
| | | | | | | | | | | | | | Problem: spell.c is too big. Solution: Split it in spell file handling and spell checking. https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381
* | coverity/155501: fix bug where P_NO_DEF_EXP was ignoredSander Bosma2017-03-11
|/
* terminal: 'scrollback'Justin M. Keyes2017-02-26
| | | | Closes #2637
* options: 'scrollback'Justin M. Keyes2017-02-26
|
* *: Fix linter errorsZyX2017-02-15
|
* *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* vim-patch:7.4.2017Marco Hinz2017-02-04
| | | | | | | | | | | Problem: When there are many errors adding them to the quickfix list takes a long time. Solution: Add BLN_NOOPT. Don't call buf_valid() in buf_copy_options(). Remember the last file name used. When going through the buffer list start from the end of the list. Only call buf_valid() when autocommands were executed. https://github.com/vim/vim/commit/8240433f48f7383c281ba2453cc55f10b8ec47d9
* LintingDaniel Hahler2017-01-13
|
* vim-patch:8.0.0121Daniel Hahler2017-01-13
| | | | | | | Problem: Setting 'cursorline' changes the curswant column. (Daniel Hahler) Solution: Add the P_RWINONLY flag. (closes vim/vim#1297) https://github.com/vim/vim/commit/a2477fd3490c1166522631eee53c57d34321086a
* lintJames McCoy2016-12-28
|
* vim-patch:7.4.2204James McCoy2016-12-28
| | | | | | | | | Problem: It is not easy to get information about buffers, windows and tabpages. Solution: Add getbufinfo(), getwininfo() and gettabinfo(). (Yegappan Lakshmanan) https://github.com/vim/vim/commit/b5ae48e9ffd3b8eb6ca4057de11f1bddcde8ce6f
* vim-patch:7.4.2201Chris Lucas2016-12-28
| | | | | | | Problem: The sign column disappears when the last sign is deleted. Solution: Add the 'signcolumn' option. (Christian Brabandt) https://github.com/vim/vim/commit/95ec9d6a6ab3117d60ff638670a803d43974ba51
* option.c: Update free_oldval after adjusting opt_idx for shada/viminfoJames McCoy2016-12-11
| | | | | | | | | | | | | | | | Previously, free_oldval was set immediately on entering did_set_string_option. However, opt_idx hadn't been adjusted to account for diverting 'viminfo' manipulation to 'shada'. Therefore, the code which determines whether to free the old value was looking at the flags for 'viminfo' while the code which sets whether a value was allocated was modifying the flags for 'shada'. This led to a leak of any values set for 'viminfo'. Updating free_oldval once opt_idx has been adjusted for the 'viminfo'/'shada' handling ensures the check/set values are consistent. Closes #5698
* vim-patch:8.0.0056James McCoy2016-11-20
| | | | | | | Problem: When setting 'filetype' there is no check for a valid name. Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'. https://github.com/vim/vim/commit/d0b5138ba4bccff8a744c99836041ef6322ed39a
* lintJames McCoy2016-11-15
|