summaryrefslogtreecommitdiff
path: root/src/option.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.4282: restricted mode requires the -Z command line optionv8.2.4282matveyt2022-02-011-0/+11
| | | | | | Problem: Restricted mode requires the -Z command line option. Solution: Use restricted mode when $SHELL ends in "nologin" or "false". (closes #9681)
* patch 8.2.4273: the EBCDIC support is outdatedv8.2.4273Bram Moolenaar2022-01-311-11/+3
| | | | | Problem: The EBCDIC support is outdated. Solution: Remove the EBCDIC support.
* patch 8.2.4245: ":retab 0" may cause illegal memory accessv8.2.4245Bram Moolenaar2022-01-281-7/+9
| | | | | Problem: ":retab 0" may cause illegal memory access. Solution: Limit the value of 'tabstop' to 10000.
* patch 8.2.4241: some type casts are redundantv8.2.4241=?UTF-8?q?Dundar=20G=C3=B6c?=2022-01-281-2/+2
| | | | | Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
* patch 8.2.4180: 'balloonexpr' is evaluated in the current script contextv8.2.4180Bram Moolenaar2022-01-221-0/+15
| | | | | Problem: 'balloonexpr' is evaluated in the current script context. Solution: Use the script context where the option was set.
* patch 8.2.4173: cannot use an import in 'foldexpr'v8.2.4173Bram Moolenaar2022-01-211-0/+6
| | | | | | Problem: Cannot use an import in 'foldexpr'. Solution: Set the script context to where 'foldexpr' was set. (closes #9584) Fix that the script context was not set for all buffers.
* patch 8.2.4171: cannot invoke option function using autoload importv8.2.4171Bram Moolenaar2022-01-211-0/+5
| | | | | Problem: Cannot invoke option function using autoload import. Solution: Expand the import to an autoload function name. (closes #9578)
* patch 8.2.4100: early return when getting the 'formatlistpat' valuev8.2.4100Bram Moolenaar2022-01-151-1/+0
| | | | | Problem: Early return when getting the 'formatlistpat' value. Solution: Remove the first line. (Christian Brabandt)
* patch 8.2.4093: cached breakindent values not initialized properlyv8.2.4093Christian Brabandt2022-01-151-0/+12
| | | | | | Problem: Cached breakindent values not initialized properly. Solution: Initialize and cache formatlistpat. (Christian Brabandt, closes #9526, closes #9512)
* patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle2022-01-081-0/+4
| | | | | Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
* patch 8.2.4012: error messages are spread outv8.2.4012Bram Moolenaar2022-01-051-3/+3
| | | | | Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3987: error messages are spread outv8.2.3987Bram Moolenaar2022-01-021-10/+10
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar2022-01-021-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar2022-01-011-9/+9
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-22/+22
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-13/+13
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3929: using unititialized variablev8.2.3929Bram Moolenaar2021-12-281-0/+3
| | | | | Problem: Using unititialized variable. Solution: Set the option flags to zero for a terminal option.
* patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle2021-12-271-2/+2
| | | | | Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
* patch 8.2.3889: duplicate code for translating script-local function namev8.2.3889Yegappan Lakshmanan2021-12-241-26/+1
| | | | | | Problem: Duplicate code for translating script-local function name. Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan, closes #9393)
* patch 8.2.3838: cannot use script-local function for setting *func optionsv8.2.3838Yegappan Lakshmanan2021-12-171-4/+26
| | | | | Problem: Cannot use script-local function for setting *func options. Solution: Use the script context. (Yegappan Lakshmanan, closes #9362)
* patch 8.2.3829: no error when setting a func option to script-local functionv8.2.3829Bram Moolenaar2021-12-161-0/+3
| | | | | Problem: No error when setting a func option to a script-local function. Solution: Give an error if the name starts with "s:". (closes #9358)
* patch 8.2.3804: script context not set when copying 'swf' and 'ts'v8.2.3804Bram Moolenaar2021-12-141-1/+2
| | | | | Problem: Script context not set when copying 'swf' and 'ts'. Solution: Use COPY_OPT_SCTX with the right argument. (closes #9347)
* patch 8.2.3756: might crash when callback is not validv8.2.3756Yegappan Lakshmanan2021-12-071-1/+1
| | | | | Problem: might crash when callback is not valid. Solution: Check for valid callback. (Yegappan Lakshmanan, closes #9293)
* patch 8.2.3751: cannot assign a lambda to an option that takes a functionv8.2.3751Yegappan Lakshmanan2021-12-061-11/+19
| | | | | | Problem: Cannot assign a lambda to an option that takes a function. Solution: Automatically convert the lambda to a string. (Yegappan Lakshmanan, closes #9286)
* patch 8.2.3731: "set! termcap" shows codes in one column, but not keysv8.2.3731Bram Moolenaar2021-12-031-6/+7
| | | | | Problem: "set! termcap" shows codes in one column, but not keys. Solution: Also use one column for keys. (closes #9258)
* patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'v8.2.3725Yegappan Lakshmanan2021-12-031-1/+3
| | | | | Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'. Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257)
* patch 8.2.3712: cannot use Vim9 lambda for 'tagfunc'v8.2.3712Yegappan Lakshmanan2021-12-011-1/+1
| | | | | Problem: Cannot use Vim9 lambda for 'tagfunc'. Solution: Make it work, add more tests. (Yegappan Lakshmanan, closes #9250)
* patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar2021-11-291-24/+0
| | | | | Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
* patch 8.2.3665: cannot use a lambda for 'tagfunc'v8.2.3665Yegappan Lakshmanan2021-11-241-0/+2
| | | | | Problem: Cannot use a lambda for 'tagfunc'. Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes #9204)
* patch 8.2.3628: looking terminal colors is a bit slowv8.2.3628Bram Moolenaar2021-11-201-0/+4
| | | | | Problem: Looking terminal colors is a bit slow. Solution: Cache the terminal colors. (closes #9130, closes #9058)
* patch 8.2.3619: cannot use a lambda for 'operatorfunc'v8.2.3619Yegappan Lakshmanan2021-11-181-0/+47
| | | | | | Problem: Cannot use a lambda for 'operatorfunc'. Solution: Support using a lambda or partial. (Yegappan Lakshmanan, closes #8775)
* patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scopev8.2.3528Bram Moolenaar2021-10-171-3/+15
| | | | | Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope. Solution: Make 'thesaurusfunc' global-local.
* patch 8.2.3525: option variable name does not match option namev8.2.3525Bram Moolenaar2021-10-161-2/+2
| | | | | | Problem: Option variable name does not match option name. (Christ van Willigen) Solution: Rename the variable.
* patch 8.2.3520: cannot define a function for thesaurus completionv8.2.3520Yegappan Lakshmanan2021-10-161-0/+3
| | | | | | Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes #8987, closes 8950)
* patch 8.2.3490: superfluous return statementsv8.2.3490=?UTF-8?q?Dundar=20G=C3=B6c?=2021-10-091-2/+0
| | | | | | Problem: Superfluous return statements. Solution: Remove superfluous return statements from void functions. (closes #8977)
* patch 8.2.3402: invalid memory access when using :retab with large valuev8.2.3402Bram Moolenaar2021-09-041-6/+6
| | | | | Problem: Invalid memory access when using :retab with large value. Solution: Check the number is positive.
* patch 8.2.3280: 'virtualedit' local to buffer is not the best solutionv8.2.3280Gary Johnson2021-08-031-9/+11
| | | | | Problem: 'virtualedit' local to buffer is not the best solution. Solution: Make it window-local. (Gary Johnson, closes #8685)
* patch 8.2.3246: memory use after freev8.2.3246Bram Moolenaar2021-07-291-1/+1
| | | | | Problem: Memory use after free. Solution: When clearing a string option set the pointer to "empty_option".
* patch 8.2.3227: 'virtualedit' can only be set globallyv8.2.3227Gary Johnson2021-07-261-1/+20
| | | | | Problem: 'virtualedit' can only be set globally. Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638)
* patch 8.2.3197: error messages are spread outv8.2.3197Bram Moolenaar2021-07-211-4/+4
| | | | | Problem: Error messages are spread out. Solution: Move a few more error messages to errors.h.
* patch 8.2.3124: Vim9: no error for white space between option and "=9"v8.2.3124Bram Moolenaar2021-07-081-1/+16
| | | | | Problem: Vim9: no error for white space between option and "=9". Solution: Check for extraneous white space. (issue #8408)
* patch 8.2.3123: Vim9: confusing error when using white space after optionv8.2.3123Bram Moolenaar2021-07-081-2/+7
| | | | | | Problem: Vim9: confusing error when using white space after option, before one of "!&<". Solution: Give a specific error. (issue #8408)
* patch 8.2.3079: Powershell core not supported by defaultv8.2.3079Mike Williams2021-06-301-3/+9
| | | | | Problem: Powershell core not supported by default. Solution: Set option defaults for "pwsh". (Mike Williams, closes #8481)
* patch 8.2.3071: shell options are not set properly for PowerShellv8.2.3071Mike Williams2021-06-281-4/+49
| | | | | Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)
* patch 8.2.3022: available encryption methods are not strong enoughv8.2.3022Christian Brabandt2021-06-201-0/+4
| | | | | | Problem: Available encryption methods are not strong enough. Solution: Add initial support for xchaha20. (Christian Brabandt, closes #8394)
* patch 8.2.3021: spaces allowed between option name and "!", "?", etc.v8.2.3021Bram Moolenaar2021-06-201-3/+4
| | | | | | Problem: Spaces allowed between option name and "!", "?", etc. Solution: Disallow spaces in Vim9 script, it was not documented. (closes #8408)
* patch 8.2.2993: 'fileencodings' default value should depend on 'encoding'v8.2.2993Bram Moolenaar2021-06-131-1/+19
| | | | | | | Problem: 'fileencodings' default value should depend on 'encoding'. (Gary Johnson) Solution: When 'encoding' is "utf-8" use a different default value for 'fileencodings'.
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-3/+2
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2912: MS-Windows: most users expect using Unicodev8.2.2912K.Takata2021-05-301-1/+8
| | | | | | Problem: MS-Windows: most users expect using Unicode. Solution: Default 'encoding' to utf-8 on MS-Windows. (Ken Takata, closes #3907)