summaryrefslogtreecommitdiff
path: root/src/testdir
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1734: Vim9: cannot use a funcref for a closure twicev8.2.1734Bram Moolenaar2020-09-232-2/+2
| | | | | | Problem: Vim9: cannot use a funcref for a closure twice. Solution: Instead of putting the funcref on the stack use a growarray on the execution context.
* patch 8.2.1732: stuck when win_execute() for a popup causes an errorv8.2.1732Bram Moolenaar2020-09-233-0/+37
| | | | | Problem: Stuck when win_execute() for a popup causes an error. Solution: Disable the filter callback on error. (issue #6999)
* patch 8.2.1731: Vim9: cannot use += to append to empty NULL listv8.2.1731Bram Moolenaar2020-09-231-0/+14
| | | | | Problem: Vim9: cannot use += to append to empty NULL list. Solution: Copy the list instead of extending it. (closes #6998)
* patch 8.2.1730: Vim9: cannot use member of unknown typev8.2.1730Bram Moolenaar2020-09-231-0/+27
| | | | | Problem: Vim9: cannot use member of unknown type. Solution: When type is unknown us "any". (closes #6997)
* patch 8.2.1729: endless loop when ":normal" feeds popup window filterv8.2.1729Bram Moolenaar2020-09-232-0/+27
| | | | | Problem: Endless loop when ":normal" feeds popup window filter. Solution: Add the ex_normal_busy_done flag.
* patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"v8.2.1727Bram Moolenaar2020-09-222-0/+25
| | | | | | | Problem: A popup created with "cursorline" will ignore "firstline". Solution: When both "cursorline" and "firstline" are present put the cursor on "firstline". (closes #7000) Add the "winid" argument to getcurpos().
* patch 8.2.1726: fuzzy matching only works on stringsv8.2.1726Bram Moolenaar2020-09-223-24/+190
| | | | | | Problem: Fuzzy matching only works on strings. Solution: Support passing a dict. Add matchfuzzypos() to also get the match positions. (Yegappan Lakshmanan, closes #6947)
* patch 8.2.1725: not all Pascal files are recognizedv8.2.1725Bram Moolenaar2020-09-221-2/+2
| | | | | Problem: Not all Pascal files are recognized. Solution: Add filetype patterns. (Doug Kearns)
* patch 8.2.1724: Vim9: assignment tests spread outv8.2.1724Bram Moolenaar2020-09-215-680/+695
| | | | | Problem: Vim9: assignment tests spread out. Solution: Create new test file for assignment tests.
* patch 8.2.1723: Vim9: Variable argument name cannot start with underscorev8.2.1723Bram Moolenaar2020-09-211-0/+9
| | | | | Problem: Vim9: Variable argument name cannot start with underscore. Solution: Use eval_isnamec1(). (closes #6988)
* patch 8.2.1722: Vim9: cannot assign a lambda to a variable of type functionv8.2.1722Bram Moolenaar2020-09-211-0/+12
| | | | | | Problem: Vim9: cannot assign a lambda to a variable of type function. Solution: Allow for assigning a partial to a variable of type function. (Naruhiko Nishino, closes #6996)
* patch 8.2.1720: Vim9: memory leak with heredoc that isn't executedv8.2.1720Bram Moolenaar2020-09-211-0/+8
| | | | | | Problem: Vim9: memory leak with heredoc that isn't executed. (Dominique Pellé) Solution: Don't clear the list items. (closes #6991)
* patch 8.2.1719: Vim9: no error if comma is missing in between argumentsv8.2.1719Bram Moolenaar2020-09-201-0/+1
| | | | | Problem: Vim9: no error if comma is missing in between arguments. Solution: Give an error message.
* patch 8.2.1718: Vim9: :def function disallows "firstline" for no good reasonv8.2.1718Bram Moolenaar2020-09-201-0/+9
| | | | | | Problem: Vim9: :def function disallows "firstline" and "lastline" argument names for no good reason. Solution: Don't check the arguments for a :def function. (closes #6986)
* patch 8.2.1714: text properties corrupted with substitute commandv8.2.1714Bram Moolenaar2020-09-201-0/+13
| | | | | | Problem: Text properties corrupted with substitute command. (Filipe Brandenburger) Solution: Get the changed line again after using u_savesub(). (closes #6984)
* patch 8.2.1710: Vim9: list of list type can be wrongv8.2.1710Bram Moolenaar2020-09-191-0/+12
| | | | | | Problem: Vim9: list of list type can be wrong. Solution: Use VAR_UNKNOWN for empty list. Recognize VAR_UNKNOWN when looking for a common type. (closes #6979)
* patch 8.2.1708: Vim9: error message for function has unpritable charactersv8.2.1708Bram Moolenaar2020-09-181-0/+44
| | | | | Problem: Vim9: error message for function has unpritable characters. Solution: use printable_func_name(). (closes #6965)
* patch 8.2.1707: small inconsitency in highlight testv8.2.1707Bram Moolenaar2020-09-181-2/+2
| | | | | Problem: Small inconsitency in highlight test. Solution: Use one argument for :execute. (Antony Scriven, #6975)
* patch 8.2.1706: Vim9: crash after running into the "Multiple closures" errorv8.2.1706Bram Moolenaar2020-09-181-0/+14
| | | | | Problem: Vim9: crash after running into the "Multiple closures" error. Solution: When a function fails still update any closures. (closes #6973)
* patch 8.2.1705: "verbose hi Name" reports incorrect info after ":hi clear"v8.2.1705Bram Moolenaar2020-09-181-0/+34
| | | | | Problem: "verbose hi Name" reports incorrect info after ":hi clear". Solution: Store the script context. (Antony Scriven, closes #6975)
* patch 8.2.1704: Vim9: crash in for loop when autoload script has an errorv8.2.1704Bram Moolenaar2020-09-171-0/+39
| | | | | Problem: Vim9: crash in for loop when autoload script has an error. Solution: Reset suppress_errthrow. Check for NULL list. (closes #6967)
* patch 8.2.1703: ":highlight clear" does not restore default linkv8.2.1703Bram Moolenaar2020-09-171-9/+43
| | | | | | Problem: ":highlight clear" does not restore default link. Solution: Remember the default link and restore it. (Antony Scriven, closes #6970, closes #4405)
* patch 8.2.1702: crash when using undo after deleting folded linesv8.2.1702Bram Moolenaar2020-09-171-0/+19
| | | | | Problem: Crash when using undo after deleting folded lines. Solution: Check for NULL pointer. (closes #6968)
* patch 8.2.1701: Vim9: sort("i") does not workv8.2.1701Bram Moolenaar2020-09-161-0/+5
| | | | | Problem: Vim9: sort("i") does not work. Solution: Don't try getting a number for a string argument. (closes #6958)
* patch 8.2.1700: Vim9: try/catch causes wrong value to be returnedv8.2.1700Bram Moolenaar2020-09-161-0/+20
| | | | | Problem: Vim9: try/catch causes wrong value to be returned. Solution: Reset tcd_return. (closes #6964)
* patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9v8.2.1698Bram Moolenaar2020-09-162-5/+16
| | | | | Problem: Cannot lock a variable in legacy Vim script like in Vim9. Solution: Make ":lockvar 0" work.
* patch 8.2.1697: inconsistent capitalization of error messagesv8.2.1697Bram Moolenaar2020-09-164-31/+31
| | | | | Problem: Inconsistent capitalization of error messages. Solution: Always start with a capital.
* patch 8.2.1695: Vim9: crash when using varargs type "any"v8.2.1695Bram Moolenaar2020-09-161-0/+9
| | | | | Problem: Vim9: crash when using varargs type "any". Solution: Check if uf_va_type is &t_any. (closes #6957)
* patch 8.2.1693: "hi def" does not work for cleared highlightv8.2.1693Bram Moolenaar2020-09-161-0/+32
| | | | | | Problem: "hi def" does not work for cleared highlight. Solution: Check the "sg_cleared" flag. (Maxim Kim, closes #6956, closes #4405)
* patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expectedv8.2.1691Bram Moolenaar2020-09-164-42/+63
| | | | | | Problem: Vim9: list<any> is not accepted where list<number> is expected. Solution: Add functions to allocate and free a type_T, use it in ISN_CHECKTYPE. (closes #6959)
* patch 8.2.1690: text properties not adjusted for "I" in Visual block modev8.2.1690Bram Moolenaar2020-09-151-0/+31
| | | | | Problem: Text properties not adjusted for "I" in Visual block mode. Solution: Call inserted_bytes().
* patch 8.2.1689: 'colorcolumn' doesn't show in indentv8.2.1689Bram Moolenaar2020-09-153-0/+56
| | | | | | Problem: 'colorcolumn' doesn't show in indent. Solution: Also draw the column when draw_state is WL_BRI or WL_SBR. (Alexey Demin, closes #6948, closes #6619)
* patch 8.2.1688: increment/decrement removes text propertyv8.2.1688Bram Moolenaar2020-09-151-1/+21
| | | | | Problem: Increment/decrement removes text property. Solution: Insert the new number before deleting the old one. (closes #6962)
* patch 8.2.1686: Vim9: "const!" not sufficiently testedv8.2.1686Bram Moolenaar2020-09-141-0/+18
| | | | | Problem: Vim9: "const!" not sufficiently tested. Solution: Add a few more test cases. Fix type checking.
* patch 8.2.1685: Vim9: cannot declare a constant valuev8.2.1685Bram Moolenaar2020-09-141-0/+40
| | | | | Problem: Vim9: cannot declare a constant value. Solution: Introduce ":const!".
* patch 8.2.1684: "gF" does not use line number after file in Visual modev8.2.1684Bram Moolenaar2020-09-141-1/+20
| | | | | Problem: "gF" does not use line number after file in Visual mode. Solution: Look for ":123" after the Visual area. (closes #6952)
* patch 8.2.1682: Vim9: const works in an unexpected wayv8.2.1682Bram Moolenaar2020-09-141-0/+7
| | | | | | Problem: Vim9: const works in an unexpected way. Solution: ":const" only disallows changing the variable, not the value. Make "list[0] = 9" work at the script level.
* patch 8.2.1681: Vim9: unnessary :call commands in testsv8.2.1681Bram Moolenaar2020-09-142-46/+45
| | | | | Problem: Vim9: unnessary :call commands in tests. Solution: Remove the commands. (issue #6936)
* patch 8.2.1680: Vim9: line number for compare error is wrongv8.2.1680Bram Moolenaar2020-09-141-0/+1
| | | | | Problem: Vim9: line number for compare error is wrong. Solution: Set SOURCING_LNUM. (closes #6936)
* patch 8.2.1679: Vim9: ":*" is not recognized as a rangev8.2.1679Bram Moolenaar2020-09-141-0/+11
| | | | | Problem: Vim9: ":*" is not recognized as a range. Solution: Move recognizing "*" into skip_range(). (closes #6838)
* patch 8.2.1678: crash when using ":set" after ":ownsyntax"v8.2.1678Bram Moolenaar2020-09-131-0/+4
| | | | | Problem: Crash when using ":set" after ":ownsyntax". Solution: Make sure 'spelloptions' is not NULL. (closes #6950)
* patch 8.2.1677: memory access errors when calling setloclist() in autocommandv8.2.1677Bram Moolenaar2020-09-131-0/+24
| | | | | Problem: Memory access errors when calling setloclist() in an autocommand. Solution: Give an error if the list was changed unexpectedly. (closes #6946)
* patch 8.2.1675: MinGW: testdir makefile deletes non-existing filev8.2.1675Bram Moolenaar2020-09-131-1/+1
| | | | | | Problem: MinGW: testdir makefile deletes non-existing file. Solution: Use another way to delete the output file if it already exists. (Michael Soyka)
* patch 8.2.1674: Vim9: internal error when using variable that was not setv8.2.1674Bram Moolenaar2020-09-131-0/+8
| | | | | Problem: Vim9: internal error when using variable that was not set. Solution: Give a meaningful error. (closes #6937)
* patch 8.2.1673: complete_info() selected index has an invalid valuev8.2.1673Bram Moolenaar2020-09-121-0/+18
| | | | | | Problem: complete_info() selected index has an invalid value. (Ben Jackson) Solution: Set the index when there is only one match. (closes #6945) Add test for complete_info().
* patch 8.2.1671: Vim9: stray error for missing white spacev8.2.1671Bram Moolenaar2020-09-121-0/+10
| | | | | Problem: Vim9: stray error for missing white space. Solution: Do not skip over white space after member. (closes #6817)
* patch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is anyv8.2.1668Bram Moolenaar2020-09-121-0/+3
| | | | | Problem: Vim9: not accepting 0 or 1 as bool when type is any. Solution: Convert the type with the CHECKTYPE instruction. (closes #6913)
* patch 8.2.1667: local function name cannot shadow a global function namev8.2.1667Bram Moolenaar2020-09-121-0/+30
| | | | | | Problem: Local function name cannot shadow a global function name. Solution: Ignore global functions when checking a script-local or scoped function name. (closes #6926)
* patch 8.2.1666: the initial value of 'backupskip' can have duplicate itemsv8.2.1666Bram Moolenaar2020-09-121-0/+30
| | | | | | Problem: The initial value of 'backupskip' can have duplicate items. Solution: Remove duplicates, like when it is set later. (Tom Ryder, closes #6940)
* patch 8.2.1665: cannot do fuzzy string matchingv8.2.1665Bram Moolenaar2020-09-111-0/+24
| | | | | Problem: Cannot do fuzzy string matching. Solution: Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932)