summaryrefslogtreecommitdiff
path: root/src/option.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1587: redraw problem when sign icons in the number columnv8.1.1587Bram Moolenaar2019-06-241-3/+3
| | | | | | Problem: Redraw problem when sign icons in the number column. Solution: Clear and redraw when changing related options. Right aligh the sign icon in the GUI. (Yegappan Lakshmanan, closes #4578)
* patch 8.1.1564: sign column takes up spacev8.1.1564Bram Moolenaar2019-06-171-1/+7
| | | | | | Problem: Sign column takes up space. (Adam Stankiewicz) Solution: Optionally put signs in the number column. (Yegappan Lakshmanan, closes #4555, closes #4515)
* patch 8.1.1557: compiler warning for unused variables in tiny versionv8.1.1557Bram Moolenaar2019-06-161-2/+13
| | | | | | Problem: Compiler warning for unused variables in tiny version. (Tony Mechelynck) Solution: Add #ifdef.
* patch 8.1.1542: an OptionSet autocommand does not get enough infov8.1.1542Bram Moolenaar2019-06-151-15/+161
| | | | | | Problem: An OptionSet autocommand does not get enough info. Solution: Add v:option_command, v:option_oldlocal and v:option_oldglobal. (Latrice Wilgus, closes #4118)
* patch 8.1.1519: 'backupskip' may contain duplicatesv8.1.1519Bram Moolenaar2019-06-121-2/+3
| | | | | Problem: 'backupskip' may contain duplicates. Solution: Add the P_NODUP flag. (Tom Ryder)
* patch 8.1.1423: popup windows use options from current window and bufferv8.1.1423Bram Moolenaar2019-05-301-6/+36
| | | | | Problem: Popup windows use options from current window and buffer. Solution: Clear all local options when creating a popup window.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-7/+6
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1405: "highlight" option of popup windows not supportedv8.1.1405Bram Moolenaar2019-05-261-0/+48
| | | | | Problem: "highlight" option of popup windows not supported. Solution: Implement the "highlight" option.
* patch 8.1.1391: no popup window supportv8.1.1391Bram Moolenaar2019-05-251-1/+10
| | | | | Problem: No popup window support. Solution: Add initial code for popup windows. Add the 'wincolor' option.
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-8/+8
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1367: can set 'modelineexpr' in modelinev8.1.1367Bram Moolenaar2019-05-231-1/+1
| | | | | Problem: can set 'modelineexpr' in modeline. Solution: Add P_SECURE flag.
* patch 8.1.1366: using expressions in a modeline is unsafev8.1.1366Bram Moolenaar2019-05-231-13/+22
| | | | | | Problem: Using expressions in a modeline is unsafe. Solution: Disallow using expressions in a modeline, unless the 'modelineexpr' option is set. Update help, add more tests.
* patch 8.1.1355: obvious mistakes are accepted as valid expressionsv8.1.1355Bram Moolenaar2019-05-191-3/+3
| | | | | | Problem: Obvious mistakes are accepted as valid expressions. Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto, closes #3981)
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-10/+0
| | | | | | Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
* patch 8.1.1279: cannot set 'spellang' to "sr@latin"v8.1.1279Bram Moolenaar2019-05-051-1/+1
| | | | | Problem: Cannot set 'spellang' to "sr@latin". (Bojan Stipic) Solution: Allow using '@' in 'spellang'. (closes #4342)
* patch 8.1.1270: cannot see current match positionv8.1.1270Bram Moolenaar2019-05-041-2/+2
| | | | | | Problem: Cannot see current match position. Solution: Show "3/44" when using the "n" command and "S" is not in 'shortmess'. (Christian Brabandt, closes #4317)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-7/+16
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1228: not possible to process tags with a functionv8.1.1228Bram Moolenaar2019-04-281-0/+24
| | | | | Problem: Not possible to process tags with a function. Solution: Add tagfunc() (Christian Brabandt, Andy Massimino, closes #4010)
* patch 8.1.1219: not checking for NULL return from alloc()v8.1.1219Bram Moolenaar2019-04-271-7/+6
| | | | | Problem: Not checking for NULL return from alloc(). Solution: Add checks. (Martin Kunev, closes #4303, closes #4174)
* patch 8.1.1145: compiler warning for unused functionv8.1.1145Bram Moolenaar2019-04-111-0/+2
| | | | | Problem: Compiler warning for unused function. (Tony Mechelynck) Solution: Add #ifdef.
* patch 8.1.1144: too strict checking of the 'spellfile' optionv8.1.1144Bram Moolenaar2019-04-101-2/+19
| | | | | Problem: Too strict checking of the 'spellfile' option. Solution: Allow for a path.
* patch 8.1.1143: may pass weird strings to file name expansionv8.1.1143Bram Moolenaar2019-04-101-6/+29
| | | | | Problem: May pass weird strings to file name expansion. Solution: Check for matching characters. Disallow control characters.
* patch 8.1.1116: cannot enforce a Vim script stylev8.1.1116Bram Moolenaar2019-04-041-1/+2
| | | | | Problem: Cannot enforce a Vim script style. Solution: Add the :scriptversion command. (closes #3857)
* 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)