summaryrefslogtreecommitdiff
path: root/src/structs.h
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1990: cursor position wrong in terminal popup with finished jobv8.2.1990Bram Moolenaar2020-11-151-9/+20
| | | | | | Problem: Cursor position wrong in terminal popup with finished job. Solution: Only add the top and left offset when not done already. (closes #7298)
* patch 8.2.1966: popup becomes current window after closing a terminal windowv8.2.1966Bram Moolenaar2020-11-071-7/+7
| | | | | | | Problem: Popup becomes current window after closing a terminal window. Solution: When restoring the window after executing autocommands, check that the window ID is still the same. (Naruhiko Nishino, closes #7272)
* patch 8.2.1961: various comments can be improvedv8.2.1961Bram Moolenaar2020-11-051-1/+2
| | | | | Problem: Various comments can be improved. Solution: Various comment adjustments.
* patch 8.2.1909: number of status line items is limited to 80v8.2.1909Bram Moolenaar2020-10-261-2/+3
| | | | | Problem: Number of status line items is limited to 80. Solution: Dynamically allocate the arrays. (Rom Grk, closes #7181)
* patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar2020-10-241-24/+21
| | | | | Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
* patch 8.2.1897: command modifiers are saved and set inconsistentlyv8.2.1897Bram Moolenaar2020-10-241-3/+20
| | | | | | Problem: Command modifiers are saved and set inconsistently. Solution: Separate parsing and applying command modifiers. Save values in cmdmod_T.
* patch 8.2.1894: Vim9: command modifiers are not supportedv8.2.1894Bram Moolenaar2020-10-231-0/+2
| | | | | Problem: Vim9: command modifiers are not supported. Solution: Support "silent" and "silent!".
* patch 8.2.1870: Vim9: no need to keep all script variablesv8.2.1870Bram Moolenaar2020-10-201-0/+2
| | | | | | Problem: Vim9: no need to keep all script variables. Solution: Only keep script variables when a function was defined that could use them. Fix freeing static string on exit.
* patch 8.2.1846: Vim9: block variables are not found in compiled functionv8.2.1846Bram Moolenaar2020-10-151-1/+4
| | | | | | Problem: Vim9: variables declared in a local block are not found in when a function is compiled. Solution: Look for script variables in sn_all_vars.
* patch 8.2.1845: Vim9: function defined in a block can't use block variablesv8.2.1845Bram Moolenaar2020-10-141-7/+52
| | | | | | | Problem: Vim9: function defined in a block can't use variables defined in that block. Solution: First step: Make a second hashtab that holds all script variables, also block-local ones, with more information.
* patch 8.2.1826: Vim9: cannot use a {} block at script levelv8.2.1826Bram Moolenaar2020-10-101-0/+1
| | | | | Problem: Vim9: cannot use a {} block at script level. Solution: Recognize a {} block.
* patch 8.2.1824: Vim9: variables at the script level escape their scopev8.2.1824Bram Moolenaar2020-10-101-0/+2
| | | | | Problem: Vim9: variables at the script level escape their scope. Solution: When leaving a scope remove variables declared in it.
* patch 8.2.1819: Vim9: Memory leak when using a closurev8.2.1819Bram Moolenaar2020-10-101-0/+3
| | | | | | Problem: Vim9: Memory leak when using a closure. Solution: Compute the mininal refcount in the funcstack. Reenable disabled tests.
* patch 8.2.1813: Vim9: can assign wrong type to script dictv8.2.1813Bram Moolenaar2020-10-081-0/+1
| | | | | Problem: Vim9: can assign wrong type to script dict. (Christian J. Robinson) Solution: Check the type if known.
* patch 8.2.1795: Vim9: operators && and || have a confusing resultv8.2.1795Bram Moolenaar2020-10-031-2/+1
| | | | | Problem: Vim9: operators && and || have a confusing result. Solution: Make the result a boolean.
* patch 8.2.1692: build fails because TTFLAG_STATIC is missingv8.2.1692Bram Moolenaar2020-09-161-0/+1
| | | | | Problem: Build fails because TTFLAG_STATIC is missing. Solution: Include missing change.
* patch 8.2.1650: Vim9: result of && and || expression is not bool in scriptv8.2.1650Bram Moolenaar2020-09-091-3/+4
| | | | | | Problem: Vim9: result of && and || expression cannot be assigned to a bool at the script level. Solution: Add the VAR_BOOL_OK flag. Convert to bool when needed.
* patch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expectedv8.2.1641Bram Moolenaar2020-09-091-0/+1
| | | | | Problem: Vim9: cannot use 0 or 1 where a bool is expected. Solution: Allow using 0 and 1 for a bool type. (closes #6903)
* patch 8.2.1636: get stuck if a popup filter causes an errorv8.2.1636Bram Moolenaar2020-09-081-0/+1
| | | | | | Problem: Get stuck if a popup filter causes an error. Solution: Check whether the function can be called and does not cause an error. (closes #6902)
* patch 8.2.1556: cursorline highlighting always overrules sign highlightingv8.2.1556Bram Moolenaar2020-08-311-0/+1
| | | | | | Problem: Cursorline highlighting always overrules sign highlighting. Solution: Combine the highlighting, use the priority to decide how. (closes #6812)
* patch 8.2.1492: build failuresv8.2.1492Bram Moolenaar2020-08-201-7/+7
| | | | | | Problem: Build failures. Solution: Move typedef out of #ifdef. Adjust argument types. Discover America.
* patch 8.2.1491: Vim9: crash when compiling heredoc lines start with commentv8.2.1491Bram Moolenaar2020-08-201-1/+8
| | | | | | Problem: Vim9: crash when compiling heredoc lines start with comment. Solution: Skip over NULL pointers. Do not remove comment and empty lines when fetching function lines. (closes #6743)
* patch 8.2.1422: the Mac GUI implementation is outdatedv8.2.1422Bram Moolenaar2020-08-111-12/+0
| | | | | | | Problem: The Mac GUI implementation is outdated and probably doesn't even work. Solution: Remove the Mac GUI code. The MacVim project provides the supported Vim GUI version.
* patch 8.2.1373: Vim9: no error for assigning to non-existing script varv8.2.1373Bram Moolenaar2020-08-051-1/+3
| | | | | Problem: Vim9: no error for assigning to non-existing script var. Solution: Check that in Vim9 script the variable was defined. (closes #6630)
* patch 8.2.1329: Vim9: cannot define global function inside :def functionv8.2.1329Bram Moolenaar2020-07-311-0/+2
| | | | | Problem: Vim9: cannot define global function inside :def function. Solution: Assign to global variable instead of local. (closes #6584)
* patch 8.2.1239: "maxwidth" in 'completepopup' not obeyedv8.2.1239Bram Moolenaar2020-07-181-0/+1
| | | | | Problem: "maxwidth" in 'completepopup' not obeyed. (Jay Sitter) Solution: Add separate field for value from option. (closes #6470)
* patch 8.2.1208: build failurev8.2.1208Bram Moolenaar2020-07-141-0/+1
| | | | | Problem: Build failure. Solution: Add missing change.
* patch 8.2.1191: Vim9: crash when function calls itselfv8.2.1191Bram Moolenaar2020-07-121-0/+1
| | | | | Problem: Vim9: crash when function calls itself. Solution: Add status UF_COMPILING. (closes #6441)
* patch 8.2.1161: Vim9: using freed memoryv8.2.1161Bram Moolenaar2020-07-081-1/+4
| | | | | Problem: Vim9: using freed memory. Solution: Put pointer back in evalarg instead of freeing it.
* patch 8.2.1155: Vim9: cannot handle line break inside lambdav8.2.1155Bram Moolenaar2020-07-081-0/+3
| | | | | Problem: Vim9: cannot handle line break inside lambda. Solution: Pass the compilation context through. (closes #6407, closes #6409)
* patch 8.2.1154: Vim9: crash when using imported functionv8.2.1154Bram Moolenaar2020-07-081-0/+3
| | | | | | Problem: Vim9: crash when using imported function. Solution: Check for a function type. Set the script context when calling a function. (closes #6412)
* patch 8.2.1080: Vim9: no line break allowed in a for loopv8.2.1080Bram Moolenaar2020-06-281-2/+3
| | | | | Problem: Vim9: no line break allowed in a for loop. Solution: Skip line breaks in for command.
* patch 8.2.1079: Vim9: no line break allowed in a while loopv8.2.1079Bram Moolenaar2020-06-281-1/+2
| | | | | Problem: Vim9: no line break allowed in a while loop. Solution: Update stored loop lines when finding line breaks.
* patch 8.2.1071: Vim9: no line break allowed inside a lambdav8.2.1071Bram Moolenaar2020-06-271-0/+5
| | | | | Problem: Vim9: no line break allowed inside a lambda. Solution: Handle line break inside a lambda in Vim9 script.
* patch 8.2.1054: not so easy to pass a lua function to Vimv8.2.1054Bram Moolenaar2020-06-251-0/+9
| | | | | | Problem: Not so easy to pass a lua function to Vim. Solution: Convert a Lua function and closure to a Vim funcref. (Prabir Shrestha, closes #6246)
* patch 8.2.1049: Vim9: leaking memory when using continuation linev8.2.1049Bram Moolenaar2020-06-241-0/+3
| | | | | | Problem: Vim9: leaking memory when using continuation line. Solution: Keep a pointer to the continuation line in evalarg_T. Centralize checking for a next command.
* patch 8.2.1048: build failure without the eval featurev8.2.1048Bram Moolenaar2020-06-241-0/+4
| | | | | Problem: Build failure without the eval feature. Solution: Add dummy typedef.
* patch 8.2.1047: Vim9: script cannot use line continuation like :def functionv8.2.1047Bram Moolenaar2020-06-241-0/+13
| | | | | | Problem: Vim9: script cannot use line continuation like in a :def function. Solution: Pass the getline function pointer to the eval() functions. Use it for addition and multiplication operators.
* patch 8.2.1024: Vim9: no error for using "let g:var = val"v8.2.1024Bram Moolenaar2020-06-201-0/+2
| | | | | Problem: Vim9: no error for using "let g:var = val". Solution: Add an error.
* patch 8.2.1023: Vim9: redefining a function uses a new index every timev8.2.1023Bram Moolenaar2020-06-201-3/+7
| | | | | | Problem: Vim9: redefining a function uses a new index every time. Solution: When redefining a function clear the contents and re-use the index.
* patch 8.2.0955: build failsv8.2.0955Bram Moolenaar2020-06-101-0/+1
| | | | | Problem: Build fails. Solution: Add missing struct change.
* patch 8.2.0918: duplicate code for evaluating expression argumentv8.2.0918Bram Moolenaar2020-06-071-14/+0
| | | | | Problem: Duplicate code for evaluating expression argument. Solution: Merge the code and make the use more flexible.
* patch 8.2.0915: search() cannot skip over matches like searchpair() canv8.2.0915Bram Moolenaar2020-06-061-0/+15
| | | | | Problem: Search() cannot skip over matches like searchpair() can. Solution: Add an optional "skip" argument. (Christian Brabandt, closes #861)
* patch 8.2.0909: cannot go back to the previous local directoryv8.2.0909Bram Moolenaar2020-06-051-0/+3
| | | | | Problem: Cannot go back to the previous local directory. Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes #4362)
* patch 8.2.0865: syntax foldlevel is taken from the start of the linev8.2.0865Bram Moolenaar2020-05-311-0/+5
| | | | | | Problem: Syntax foldlevel is taken from the start of the line. Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line. (Brad King, closes #6087)
* patch 8.2.0864: pragmas are indented all the way to the leftv8.2.0864Bram Moolenaar2020-05-311-0/+1
| | | | | | Problem: Pragmas are indented all the way to the left. Solution: Add an option to indent progmas like normal code. (Max Rumpf, closes #5468)
* patch 8.2.0863: cannot set a separate color for underline/undercurlv8.2.0863Bram Moolenaar2020-05-311-0/+2
| | | | | Problem: Cannot set a separate color for underline/undercurl. Solution: Add the t_AU and t_8u termcap codes. (Timur Celik, closes #6011)
* patch 8.2.0844: text properties crossing lines not handled correctlyv8.2.0844Bram Moolenaar2020-05-301-0/+9
| | | | | | Problem: Text properties crossing lines not handled correctly. Solution: When saving for undo include an extra line when needed and do not adjust properties when undoing. (Axel Forsman, closes #5875)
* patch 8.2.0823: Vim9: script reload test is disabledv8.2.0823Bram Moolenaar2020-05-251-4/+8
| | | | | | | Problem: Vim9: script reload test is disabled. Solution: Compile a function in the context of the script where it was defined. Set execution stack for compiled function. Add a test that an error is reported for the right file/function.
* patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818Bram Moolenaar2020-05-241-1/+4
| | | | | | Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.