summaryrefslogtreecommitdiff
path: root/src/option.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-8/+2
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1046: the "secure" variable is used inconsistentlyv8.1.1046Bram Moolenaar2019-03-241-5/+4
| | | | | Problem: the "secure" variable is used inconsistently. (Justin M. Keyes) Solution: Set it to one instead of incrementing.
* patch 8.1.1032: warnings from clang static analyzerv8.1.1032Bram Moolenaar2019-03-211-2/+2
| | | | | Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan) Solution: Fix relevant warnings.
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-31/+31
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0936: may leak memory when using 'vartabstop'v8.1.0936Bram Moolenaar2019-02-161-4/+9
| | | | | Problem: May leak memory when using 'vartabstop'. (Kuang-che Wu) Solution: Fix handling allocated memory for 'vartabstop'. (closes #3976)
* patch 8.1.0932: Farsi support is outdated and unusedv8.1.0932Bram Moolenaar2019-02-161-83/+0
| | | | | Problem: Farsi support is outdated and unused. Solution: Delete the Farsi support.
* patch 8.1.0880: MS-Windows: inconsistent selection of winpty/conptyv8.1.0880Bram Moolenaar2019-02-081-19/+16
| | | | | | Problem: MS-Windows: inconsistent selection of winpty/conpty. Solution: Name option 'termwintype', use ++type argument and "term_pty" for term_start(). (Hirohito Higashi, closes #3915)
* patch 8.1.0870: Vim doesn't use the new ConPTY support in Windows 10v8.1.0870Bram Moolenaar2019-02-031-4/+32
| | | | | Problem: Vim doesn't use the new ConPTY support in Windows 10. Solution: Use ConPTY support, if available. (Nobuhiro Takasaki, closes #3794)
* patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'v8.1.0864Bram Moolenaar2019-01-311-5/+47
| | | | | | | Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
* patch 8.1.0858: 'indentkeys' and 'cinkeys' defaults are differentv8.1.0858Bram Moolenaar2019-01-311-2/+5
| | | | | Problem: 'indentkeys' and 'cinkeys' defaults are different. Solution: Make them the same, update docs. (close #3882)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-9/+0
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0814: :mksession cannot handle a very long 'runtimepath'v8.1.0814Bram Moolenaar2019-01-241-12/+52
| | | | | | | Problem: :mksession cannot handle a very long 'runtimepath'. (Timothy Madden) Solution: Expand each part separately, instead of the whole option at once. (Christian Brabandt, closes #3466)
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-194/+30
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-0/+4
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-9/+9
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0759: showing two characters for tab is limitedv8.1.0759Bram Moolenaar2019-01-161-1/+18
| | | | | | Problem: Showing two characters for tab is limited. Solution: Allow for a third character for "tab:" in 'listchars'. (Nathaniel Braun, Ken Takata, closes #3810)
* patch 8.1.0754: preferred column is lost when setting 'cursorcolumn'v8.1.0754Bram Moolenaar2019-01-151-1/+1
| | | | | | Problem: Preferred column is lost when setting 'cursorcolumn'. Solution: Change option flag to P_RWINONLY. (Takayuki Kurosawa, closes #3806)
* patch 8.1.0744: compiler warnings for signed/unsigned stringsv8.1.0744Bram Moolenaar2019-01-131-3/+3
| | | | | Problem: Compiler warnings for signed/unsigned strings. Solution: A few more type cast fixes.
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-90/+91
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0613: when executing an insecure function the secure flag is stuckv8.1.0613Bram Moolenaar2018-12-211-11/+8
| | | | | | Problem: When executing an insecure function the secure flag is stuck. (Gabriel Barta) Solution: Restore "secure" instead of decrementing it. (closes #3705)
* patch 8.1.0606: 'cryptmethod' defaults to a very old methodv8.1.0606Bram Moolenaar2018-12-161-1/+1
| | | | | Problem: 'cryptmethod' defaults to a very old method. Solution: Default to "blowfish2", it is now widely available.
* patch 8.1.0544: setting 'filetype' in a modeline causes an errorv8.1.0544Bram Moolenaar2018-11-251-22/+62
| | | | | | | Problem: Setting 'filetype' in a modeline causes an error (Hirohito Higashi). Solution: Don't add the P_INSECURE flag when setting 'filetype' from a modeline. Also for 'syntax'.
* patch 8.1.0542: shiftwidth() does not take 'vartabstop' into accountv8.1.0542Bram Moolenaar2018-11-221-1/+42
| | | | | | | Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt)
* patch 8.1.0540: may evaluate insecure value when appending to optionv8.1.0540Bram Moolenaar2018-11-201-9/+34
| | | | | | | Problem: May evaluate insecure value when appending to option. Solution: Set the secure flag when changing an option that was previously set insecurely. Also allow numbers for the characters from 'spelllang' that are used for LANG.vim.
* patch 8.1.0539: cannot build without the sandboxv8.1.0539Bram Moolenaar2018-11-201-3/+6
| | | | | | | Problem: Cannot build without the sandbox. Solution: Set the secure option instead of using the sandbox. Also restrict the characters from 'spelllang' that are used for LANG.vim. (suggested by Yasuhiro Matsumoto)
* patch 8.1.0515: reloading a script gives errors for existing functionsv8.1.0515Bram Moolenaar2018-11-101-1/+2
| | | | | Problem: Reloading a script gives errors for existing functions. Solution: Allow redefining a function once when reloading a script.
* patch 8.1.0510: filter test fails when $LANG is C.UTF-8v8.1.0510Bram Moolenaar2018-11-041-1/+7
| | | | | | Problem: Filter test fails when $LANG is C.UTF-8. Solution: Set 'helplang' to "en" for any C language. (Christian Brabandt, closes #3577)
* patch 8.1.0495: :filter only supports some commandsv8.1.0495Bram Moolenaar2018-10-251-0/+4
| | | | | | Problem: :filter only supports some commands. Solution: Add :filter support for more commands. (Marcin Szamotulski, closes #2856)
* patch 8.1.0479: failure when setting 'varsofttabstop' to end in a commav8.1.0479Bram Moolenaar2018-10-151-8/+9
| | | | | | | Problem: Failure when setting 'varsofttabstop' to end in a comma. (Ralf Schandl) Solution: Reject value with trailing command. Add test for invalid values (closes #3544)
* patch 8.1.0445: setting 'term' does not store location for termcap optionsv8.1.0445Bram Moolenaar2018-10-021-13/+55
| | | | | | Problem: Setting 'term' does not store location for termcap options. Solution: Set the script context for termcap options that are changed when 'term' is set.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-14/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0435: cursorline highlight not removed in some situationv8.1.0435Bram Moolenaar2018-09-251-0/+5
| | | | | | | Problem: Cursorline highlight not removed in some situation. (Vitaly Yashin) Solution: Reset last_cursorline when resetting 'cursorline'. (Christian Brabandt, closes #3481)
* patch 8.1.0415: not actually using 16 colors with vtpv8.1.0415Bram Moolenaar2018-09-211-2/+0
| | | | | | Problem: Not actually using 16 colors with vtp. Solution: Always use 256 colors when vtp is used. (Nobuhiro Takasaki, closes #3432)
* patch 8.1.0414: v:option_old is cleared when using :set in OptionSet autocmdv8.1.0414Bram Moolenaar2018-09-211-3/+8
| | | | | | Problem: v:option_old and v:option_new are cleared when using :set in OptionSet autocmd. (Gary Johnson) Solution: Don't trigger OptionSet recursively.
* patch 8.1.0386: cannot test with non-default option valuev8.1.0386Bram Moolenaar2018-09-131-1/+5
| | | | | Problem: Cannot test with non-default option value. Solution: Add test_option_not_set().
* patch 8.1.0363: internal diff isn't used by default as advertisedv8.1.0363Bram Moolenaar2018-09-101-1/+1
| | | | | | Problem: Internal diff isn't used by default as advertised. Solution: Add "internal" to the default value of 'diffopt'. Also add couple of files missing from the distribution.
* patch 8.1.0362: cannot get the script line number when executing a functionv8.1.0362Bram Moolenaar2018-09-101-442/+456
| | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes #3362) Also display the line number with ":verbose set".
* patch 8.1.0253: saving and restoring window title does not always workv8.1.0253Bram Moolenaar2018-08-071-3/+7
| | | | | | Problem: Saving and restoring window title does not always work. Solution: Use the stack push and pop commands. (Kouichi Iwamoto, closes #3059)
* patch 8.1.0205: invalid memory access with invalid modelinev8.1.0205Bram Moolenaar2018-07-231-9/+12
| | | | | Problem: Invalid memory access with invalid modeline. Solution: Pass pointer limit. Add a test. (closes #3241)
* patch 8.1.0172: 'viminfofile' option does not behave like a file namev8.1.0172Bram Moolenaar2018-07-081-1/+2
| | | | | Problem: 'viminfofile' option does not behave like a file name. Solution: Add the P_EXPAND flag. (closes #3178)
* patch 8.1.0166: using dict_add_nr_str() is clumsyv8.1.0166Bram Moolenaar2018-07-081-3/+3
| | | | | Problem: Using dict_add_nr_str() is clumsy. Solution: Split into two functions. (Ozaki Kiichi, closes #3154)
* patch 8.1.0138: negative value of 'softtabstop' not used correctlyv8.1.0138Bram Moolenaar2018-07-021-1/+1
| | | | | Problem: Negative value of 'softtabstop' not used correctly. Solution: Use get_sts_value(). (Tom Ryder)
* patch 8.1.0126: various problems with 'vartabstop'v8.1.0126Bram Moolenaar2018-06-281-2/+4
| | | | | | Problem: Various problems with 'vartabstop'. Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian Brabandt, closes #3076)
* patch 8.1.0123: MS-Windows: colors are wrong after setting 'notgc'v8.1.0123Bram Moolenaar2018-06-281-1/+4
| | | | | | Problem: MS-Windows: colors are wrong after setting 'notgc'. Solution: Only call control_console_color_rgb() for the win32 terminal. (Nobuhiro Takasaki, closes #3107)
* patch 8.1.0114: confusing variable namev8.1.0114Bram Moolenaar2018-06-241-2/+3
| | | | | Problem: Confusing variable name. Solution: Rename new_ts to new_vts_array. Change zero to NULL.
* patch 8.1.0107: Python: getting buffer option clears messagev8.1.0107Bram Moolenaar2018-06-241-7/+11
| | | | | Problem: Python: getting buffer option clears message. (Jacob Niehus) Solution: Don't use aucmd_prepbuf(). (closes #3079)
* patch 8.1.0105: all tab stops are the samev8.1.0105Bram Moolenaar2018-06-231-0/+484
| | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711)
* patch 8.1.0067: syntax highlighting not working when re-entering a bufferv8.1.0067Bram Moolenaar2018-06-171-9/+17
| | | | | Problem: Syntax highlighting not working when re-entering a buffer. Solution: Do force executing autocommands when not called recursively.
* patch 8.1.0066: nasty autocommand causes using freed memoryv8.1.0066Bram Moolenaar2018-06-171-6/+12
| | | | | | Problem: Nasty autocommand causes using freed memory. (Dominique Pelle) Solution: Do not force executing autocommands if the value of 'syntax' or 'filetype' did not change.
* patch 8.1.0061: window title is wrong after resetting and setting 'title'v8.1.0061Bram Moolenaar2018-06-161-26/+4
| | | | | Problem: Window title is wrong after resetting and setting 'title'. Solution: Move resetting the title into maketitle(). (Jason Franklin)