aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
Commit message (Collapse)AuthorAge
...
* vim-patch:7.4.2174James McCoy2016-11-15
| | | | | | | Problem: Adding duplicate flags to 'whichwrap' leaves commas behind. Solution: Also remove the commas. (Naruhiko Nishino) https://github.com/vim/vim/commit/c8ce615299b4d8c1b2e6cf83496f48cd497d8a37
* Merge #5561 'inccommand'Justin M. Keyes2016-11-09
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Initial work by: Robin Elrharbi-Fleury (Robinhola) Audrey Rayé (Adrey06) Philémon Hullot (DesbyP) Aymeric Collange (aym7) Clément Guyomard (Clement0) Major revisions by: KillTheMule Björn Linse <bjorn.linse@gmail.com> Justin M. Keyes <justinkz@gmail.com>
| * 'inccommand': rename 'incsubstitute'Justin M. Keyes2016-11-08
| | | | | | | | | | | | | | | | | | 'inccommand' allows us to expand the feature to other commands, such as: :cdo :cfdo :global Also rename "IncSubstitute" highlight group to "Substitute".
| * Incsubsitution featureKillTheMule2016-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally implemented by * Clement0 * DesbyP * aym7 * Adrey06 * Robinhola in #4811. Major reworkings and bug fixes by * bfredl Most tests suggested by ZyX-l, suggestions for improvements by oni-link.
* | encoding: cleanup mbyte.c given fixed encoding=utf-8Björn Linse2016-11-05
| | | | | | | | | | | | | | | | | | Eliminate mb_init(): Set "enc_utf" and "has_mbyte" early. Eliminate "enc_unicode" and "enc_latin1like". init_chartab() and screenalloc() are already invoked elsewhere in the initialization process. The EncodingChanged autocmd cannot be triggered. At initialization, there is no spellfiles to reload
* | encoding: only allow encoding=utf-8Björn Linse2016-11-05
| |
* | lintJames McCoy2016-11-02
| |
* | Use int as the standard type for boolean options.James McCoy2016-11-02
|/ | | | | | | | | | | | | | All options are accessed by passing char_u pointers around, casting the pointer to the right pointer type for the specific option, and then dereferencing that pointer. This dance works fine on little-endian systems when some bool options are int types (as in Vim) and some are bool types (as would make more sense), but on big-endian systems *(int *)varp when varp is pointing to a bool will read random memory. Therefore, all boolean options must remain a consistent type and int is currently the easiest to choose.
* vim-patch: 7.4.1619 (#5475)Michael Ennen2016-10-16
| | | | | | | | Problem: When 'fileformats' is set in the vimrc it applies to new buffers but not the initial buffer. Solution: Set 'fileformat' when starting up. (Mike Williams) https://github.com/vim/vim/commit/364fa5c7ec2a99a791c8f8b66fe70b0bf1dd9a41
* Merge pull request #5261 from jbradaric/vim-7.4.1961James McCoy2016-09-27
|\ | | | | vim-patch:7.4.1961
| * option.c: Fix linter errors.Jurica Bradaric2016-09-25
| |
| * vim-patch:7.4.1961Jurica Bradaric2016-09-25
| | | | | | | | | | | | | | | | | | | | Problem: When 'insertmode' is reset while doing completion the popup menu remains even though Vim is in Normal mode. Solution: Ignore stop_insert_mode when the popup menu is visible. Don't set stop_insert_mode when 'insertmode' was already off. (Christian Brabandt) https://github.com/vim/vim/commit/00672e1d3f59dbff91a18d418b2984be96f89ee5
* | lintJames McCoy2016-09-24
| |
* | vim-patch:7.4.1604James McCoy2016-09-24
|/ | | | | | | | | Problem: Although emoji characters are ambiguous width, best is to treat them as full width. Solution: Update the Unicode character tables. Add the 'emoji' options. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/3848e00e0177abdb31bc600234967863ec487233
* refactor: eliminate misc2.cJustin M. Keyes2016-09-13
| | | | | | | | | | move `call_shell` to misc1.c Move some fns to state.c Move some fns to option.c Move some fns to memline.c Move `vim_chdir*` fns to file_search.c Move some fns to new module, bytes.c Move some fns to fileio.c
* test: Add unittest spec for option.c (#5289)Kalle Ranki2016-09-04
| | | | | | | | Move typedef expand_T to types.h for tests Fix lint error for old style comments Describe 'check_ff_value' valid values as an initial test. Fix 'get_sts_value' comment inaccuracy and add unit test for it
* highlight: Added QuickFixLine highlight groupTommy Allen2016-08-17
| | | | | | | | | | | | - Links to Search by default screen.c: Combine CursorLine with QuickFixLine - HLF_QFL takes priority over HLF_CUL docs: Updated to mention QuickFixLine runtime: Added QuickFixLine to nvimHLGroup tests: QuickFixLine highlight
* Set the default value for 'packpath'James McCoy2016-08-08
| | | | | | | | As noted in “:help 'packpath'”, the default value is supposed to be the same as that for 'runtimepath'. This was missed in the original port of the packages functionality from Vim. Closes #5193
* Merge #4964 from ZyX-I/no-xdg-expandJustin M. Keyes2016-08-04
|\ | | | | option: Do not expand options, obtained from XDG vars
| * option: Silence linterZyX2016-07-10
| |
| * option: Also escape commas in options other then &runtimepathZyX2016-07-10
| |
| * option: Also do not expand XDG defaults with set&ZyX2016-07-10
| |
| * option: Do not expand options, obtained from XDG varsZyX2016-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is a wrong thing to do, this makes valid variable values be treated incorrectly: in XDG_DATA_HOME='/home/$foo/.local/share' `$foo` should be treated literally and not expanded to `foo` environment variable value. Also makes option_expand not try to expand too long strings even if these too long strings are default values. Previously it thought that default values should always be expanded. Also does not try to expand NULL should it be the default value just in case. Fixes #4961
* | vim-patch:7.4.1147 (#5005)prollings2016-07-10
|/ | | | | | | Problem: Conflict for "chartab". (Kazunobu Kuriyama) Solution: Rename the global one to something less obvious. Move it into src/chartab.c. https://github.com/vim/vim/commit/88e8f9f14434a7cd538d0c159dc432bea869a5bd
* lintJames McCoy2016-07-08
|
* vim-patch:7.4.1552James McCoy2016-07-08
| | | | | | | Problem: ":colorscheme" does not use 'packpath'. Solution: Also use in "start" and "opt" directories in 'packpath'. https://github.com/vim/vim/commit/7f8989dd8a627af2185df381195351a913f3777f
* vim-patch:7.4.1384James McCoy2016-07-08
| | | | | | | Problem: It is not easy to use a set of plugins and their dependencies. Solution: Add packages, ":loadopt", 'packpath'. https://github.com/vim/vim/commit/f6fee0e2d4341c0c2f5339c1268e5877fafd07cf
* options: Default t_Co to 256.Justin M. Keyes2016-07-02
| | | | | | | | This commit doesn't change any behavior, only moves the init out of main.c We _could_ move some initialization from tui.c:terminfo_start to an earlier phase, in order to avoid mis-reporting 't_Co' during startup. But this will be messy, and gains very little: TERM=linux works "good enough" as long as we correct t_Co in tui.c:terminfo_start (c5b02d5a7).
* option: Make all pointers in set_string_option constantZyX2016-06-24
|
* *: Fix linter errorsZyX2016-06-24
| | | | | | | | | Also adds one exception to linter rules: typedef struct { kvec_t(Object) stack; } EncodedData; is completely valid (from the style guide point of view) code.
* option: Handle NULL string in set_option_valueZyX2016-06-24
|
* Add new functionality to the `=` marker in the STLTJ DeVries2016-06-14
| | | | | | This new functionality is explained in the documentation. Also, many tests have been added to the buffer_spec.lua file
* Merge #3745 from cacplate/ops_WconversionJustin M. Keyes2016-06-13
|\ | | | | Enable -Wconversion in ops.c
| * ops.c: enable -Wconversion warningCharles Joachim2016-05-30
| |
* | vim-patch:7.4.1142James McCoy2016-06-02
|/ | | | | | | Problem: Cannot define keyword characters for a syntax file. Solution: Add the ":syn iskeyword" command. (Christian Brabandt) https://github.com/vim/vim/commit/b8060fe862f684b591f9ac679eac5b2594d6c5a0
* vim-patch:7.4.1017James McCoy2016-05-20
| | | | | | | | Problem: When there is a backslash in an option ":set -=" doesn't work. Solution: Handle a backslash better. (Jacob Niehus) Add a new test, merge in old test. https://github.com/vim/vim/commit/8f79acdf7ede2693fbda53c3c9693f16db4f193b
* *: Fix new linter errorsZyX2016-05-01
| | | | Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
* option.c: include header for completeopt_was_setJustin M. Keyes2016-04-28
|
* Merge pull request #4622 from Shougo/vim-7.4.1753Justin M. Keyes2016-04-27
|\ | | | | vim-patch:7.4.1753
| * vim-patch:7.4.1753Shougo Matsushita2016-04-22
| | | | | | | | | | | | | | Problem: "noinsert" in 'completeopt' is sometimes ignored. Solution: Set the variables when the 'completeopt' was set. (Ozaki Kiichi) https://github.com/vim/vim/commit/c020042083b9c0a4e932b562c3bef97c76328e18
* | Merge pull request #4593 from ZyX-I/length-functionsJustin M. Keyes2016-04-26
|\ \ | | | | | | Make some function accept strings with length in place of just strings
| * | *: Fix linter errorsZyX2016-04-18
| | |
| * | option: Allow zero-length optionsZyX2016-04-18
| | | | | | | | | | | | | | | Code that expected NUL-terminated strings allowed them and this behaviour is actually used.
| * | option: Use findoption_len in do_setZyX2016-04-18
| | |
| * | option: Add find_key_option_len functionZyX2016-04-18
| | |
| * | option: Add findoption_len functionZyX2016-04-18
| | | | | | | | | | | | It is like findoption(), but works with non-NUL-terminated strings.
| * | keymap: Make replace_termcodes and friends accept length and cpo_flagsZyX2016-04-18
| | | | | | | | | | | | | | | | | | | | | Reasons: - One does not have to do `s[len] = NUL` to work with these functions if they do not need to replace the whole string: thus `s` may be const. - One does not have to save/restore p_cpo to work with them.
* | | Merge pull request #4273 from watiko/vim-7.4.957Justin M. Keyes2016-04-25
|\ \ \ | |_|/ |/| | vim-patch:7.4.{941,942,957}
| * | vim-patch:7.4.941watiko2016-03-06
| |/ | | | | | | | | | | | | Problem: There is no way to ignore case only for tag searches. Solution: Add the 'tagcase' option. (Gary Johnson) https://github.com/vim/vim/commit/0f6562e9036f889185dff49a75c7fc5ffb28b307
* / *: Make set_vim_var_\* functions have proper argument typesZyX2016-04-18
|/