]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1738: Mac: str2float() recognizes comma instead of decimal point v8.2.1738
Bram Moolenaar [Thu, 24 Sep 2020 21:08:19 +0000 (23:08 +0200)]
patch 8.2.1738: Mac: str2float() recognizes comma instead of decimal point

Problem:    Mac: str2float() recognizes comma instead of decimal point.
Solution:   Set LC_NUMERIC to "C". (closes #7003)

4 years agopatch 8.2.1737: cursor line highlight in popup window is not always updated v8.2.1737
Bram Moolenaar [Thu, 24 Sep 2020 20:57:31 +0000 (22:57 +0200)]
patch 8.2.1737: cursor line highlight in popup window is not always updated

Problem:    Cursor line highlight in popup window is not always updated.
Solution:   Check if the cursor has moved. (closes #7010)

4 years agopatch 8.2.1736: failure to compile a pattern not tested much v8.2.1736
Bram Moolenaar [Wed, 23 Sep 2020 20:38:05 +0000 (22:38 +0200)]
patch 8.2.1736: failure to compile a pattern not tested much

Problem:    Failure to compile a pattern not tested much.
Solution:   Add tests where a pattern fails to compile. (Yegappan Lakshmanan,
            closes #7004)

4 years agopatch 8.2.1735: Github actions appear to timeout too soon v8.2.1735
Bram Moolenaar [Wed, 23 Sep 2020 20:27:22 +0000 (22:27 +0200)]
patch 8.2.1735: Github actions appear to timeout too soon

Problem:    Github actions appear to timeout too soon.
Solution:   use "timeout" instead of "ping".

4 years agopatch 8.2.1734: Vim9: cannot use a funcref for a closure twice v8.2.1734
Bram Moolenaar [Wed, 23 Sep 2020 19:57:23 +0000 (21:57 +0200)]
patch 8.2.1734: Vim9: cannot use a funcref for a closure twice

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.

4 years agopatch 8.2.1733: Vim9: memory leaks when using nested function v8.2.1733
Bram Moolenaar [Wed, 23 Sep 2020 16:51:11 +0000 (18:51 +0200)]
patch 8.2.1733: Vim9: memory leaks when using nested function

Problem:    Vim9: memory leaks when using nested function.
Solution:   Free function when compilation fails.

4 years agopatch 8.2.1732: stuck when win_execute() for a popup causes an error v8.2.1732
Bram Moolenaar [Wed, 23 Sep 2020 15:41:26 +0000 (17:41 +0200)]
patch 8.2.1732: stuck when win_execute() for a popup causes an error

Problem:    Stuck when win_execute() for a popup causes an error.
Solution:   Disable the filter callback on error. (issue #6999)

4 years agopatch 8.2.1731: Vim9: cannot use += to append to empty NULL list v8.2.1731
Bram Moolenaar [Wed, 23 Sep 2020 13:56:50 +0000 (15:56 +0200)]
patch 8.2.1731: Vim9: cannot use += to append to empty NULL list

Problem:    Vim9: cannot use += to append to empty NULL list.
Solution:   Copy the list instead of extending it. (closes #6998)

4 years agopatch 8.2.1730: Vim9: cannot use member of unknown type v8.2.1730
Bram Moolenaar [Wed, 23 Sep 2020 11:25:32 +0000 (13:25 +0200)]
patch 8.2.1730: Vim9: cannot use member of unknown type

Problem:    Vim9: cannot use member of unknown type.
Solution:   When type is unknown us "any". (closes #6997)

4 years agopatch 8.2.1729: endless loop when ":normal" feeds popup window filter v8.2.1729
Bram Moolenaar [Wed, 23 Sep 2020 10:29:11 +0000 (12:29 +0200)]
patch 8.2.1729: endless loop when ":normal" feeds popup window filter

Problem:    Endless loop when ":normal" feeds popup window filter.
Solution:   Add the ex_normal_busy_done flag.

4 years agopatch 8.2.1728: compiler warning for using uninitialized variable v8.2.1728
Bram Moolenaar [Tue, 22 Sep 2020 20:08:32 +0000 (22:08 +0200)]
patch 8.2.1728: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (John Marriott)
Solution:   Initialize "neighbor".

4 years agopatch 8.2.1727: a popup created with "cursorline" will ignore "firstline" v8.2.1727
Bram Moolenaar [Tue, 22 Sep 2020 19:55:41 +0000 (21:55 +0200)]
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"

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().

4 years agopatch 8.2.1726: fuzzy matching only works on strings v8.2.1726
Bram Moolenaar [Tue, 22 Sep 2020 18:33:50 +0000 (20:33 +0200)]
patch 8.2.1726: fuzzy matching only works on strings

Problem:    Fuzzy matching only works on strings.
Solution:   Support passing a dict.  Add matchfuzzypos() to also get the match
            positions. (Yegappan Lakshmanan, closes #6947)

4 years agopatch 8.2.1725: not all Pascal files are recognized v8.2.1725
Bram Moolenaar [Tue, 22 Sep 2020 17:15:31 +0000 (19:15 +0200)]
patch 8.2.1725: not all Pascal files are recognized

Problem:    Not all Pascal files are recognized.
Solution:   Add filetype patterns. (Doug Kearns)

4 years agopatch 8.2.1724: Vim9: assignment tests spread out v8.2.1724
Bram Moolenaar [Mon, 21 Sep 2020 20:21:42 +0000 (22:21 +0200)]
patch 8.2.1724: Vim9: assignment tests spread out

Problem:    Vim9: assignment tests spread out.
Solution:   Create new test file for assignment tests.

4 years agopatch 8.2.1723: Vim9: Variable argument name cannot start with underscore v8.2.1723
Bram Moolenaar [Mon, 21 Sep 2020 20:02:49 +0000 (22:02 +0200)]
patch 8.2.1723: Vim9: Variable argument name cannot start with underscore

Problem:    Vim9: Variable argument name cannot start with underscore.
Solution:   Use eval_isnamec1(). (closes #6988)

4 years agopatch 8.2.1722: Vim9: cannot assign a lambda to a variable of type function v8.2.1722
Bram Moolenaar [Mon, 21 Sep 2020 19:48:21 +0000 (21:48 +0200)]
patch 8.2.1722: Vim9: cannot assign a lambda to a variable of type function

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)

4 years agopatch 8.2.1721: MS-Windows installer doesn't work v8.2.1721
Bram Moolenaar [Mon, 21 Sep 2020 19:29:57 +0000 (21:29 +0200)]
patch 8.2.1721: MS-Windows installer doesn't work

Problem:    MS-Windows installer doesn't work.
Solution:   Write "Russian" in ASCII. (closes #6995, see #).

4 years agopatch 8.2.1720: Vim9: memory leak with heredoc that isn't executed v8.2.1720
Bram Moolenaar [Mon, 21 Sep 2020 18:35:55 +0000 (20:35 +0200)]
patch 8.2.1720: Vim9: memory leak with heredoc that isn't executed

Problem:    Vim9: memory leak with heredoc that isn't executed. (Dominique
            Pellé)
Solution:   Don't clear the list items. (closes #6991)

4 years agopatch 8.2.1719: Vim9: no error if comma is missing in between arguments v8.2.1719
Bram Moolenaar [Sun, 20 Sep 2020 20:43:52 +0000 (22:43 +0200)]
patch 8.2.1719: Vim9: no error if comma is missing in between arguments

Problem:    Vim9: no error if comma is missing in between arguments.
Solution:   Give an error message.

4 years agopatch 8.2.1718: Vim9: :def function disallows "firstline" for no good reason v8.2.1718
Bram Moolenaar [Sun, 20 Sep 2020 20:04:00 +0000 (22:04 +0200)]
patch 8.2.1718: Vim9: :def function disallows "firstline" for no good reason

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)

4 years agopatch 8.2.1717 v8.2.1717
Bram Moolenaar [Sun, 20 Sep 2020 19:43:03 +0000 (21:43 +0200)]
patch 8.2.1717
Problem:    MS-Windows installer doesn't have Russian translations.
Solution:   Add Russian translations. (closes #6985)

4 years agopatch 8.2.1716: options window has duplicate translations v8.2.1716
Bram Moolenaar [Sun, 20 Sep 2020 19:32:03 +0000 (21:32 +0200)]
patch 8.2.1716: options window has duplicate translations

Problem:    Options window has duplicate translations.
Solution:   Make one entry for "global or local to buffer".  Fix wrong text.
            (closes #6983)

4 years agopatch 8.2.1715: Motif GUI: commented out code missed {} v8.2.1715
Bram Moolenaar [Sun, 20 Sep 2020 19:13:27 +0000 (21:13 +0200)]
patch 8.2.1715: Motif GUI: commented out code missed {}

Problem:    Motif GUI: commented out code missed {}.
Solution:   Add {} and reenable the code. (similar to #6989)

4 years agopatch 8.2.1714: text properties corrupted with substitute command v8.2.1714
Bram Moolenaar [Sun, 20 Sep 2020 19:04:35 +0000 (21:04 +0200)]
patch 8.2.1714: text properties corrupted with substitute command

Problem:    Text properties corrupted with substitute command. (Filipe
            Brandenburger)
Solution:   Get the changed line again after using u_savesub(). (closes #6984)

4 years agopatch 8.2.1713: Motif GUI: crash when setting menu colors v8.2.1713
Bram Moolenaar [Sun, 20 Sep 2020 17:57:15 +0000 (19:57 +0200)]
patch 8.2.1713: Motif GUI: crash when setting menu colors

Problem:    Motif GUI: crash when setting menu colors. (Andrzej Bylicki)
Solution:   Add {} to make "n" incremented correctly. (closes #6989,
            closes #5948)

4 years agoUpdate runtime files.
Bram Moolenaar [Sat, 19 Sep 2020 16:50:13 +0000 (18:50 +0200)]
Update runtime files.

4 years agopatch 8.2.1712: Vim9: leaking memory when calling a lambda v8.2.1712
Bram Moolenaar [Sat, 19 Sep 2020 16:19:19 +0000 (18:19 +0200)]
patch 8.2.1712: Vim9: leaking memory when calling a lambda

Problem:    Vim9: leaking memory when calling a lambda.
Solution:   Decrement function reference from ISN_DCALL.

4 years agopatch 8.2.1711: Vim9: leaking memory when using partial v8.2.1711
Bram Moolenaar [Sat, 19 Sep 2020 13:16:50 +0000 (15:16 +0200)]
patch 8.2.1711: Vim9: leaking memory when using partial

Problem:    Vim9: leaking memory when using partial.
Solution:   Do delete the function even when it was compiled.

4 years agopatch 8.2.1710: Vim9: list of list type can be wrong v8.2.1710
Bram Moolenaar [Sat, 19 Sep 2020 12:12:34 +0000 (14:12 +0200)]
patch 8.2.1710: Vim9: list of list type can be wrong

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)

4 years agopatch 8.2.1709: Vim9: memory leak when using multiple closures v8.2.1709
Bram Moolenaar [Fri, 18 Sep 2020 21:11:10 +0000 (23:11 +0200)]
patch 8.2.1709: Vim9: memory leak when using multiple closures

Problem:    Vim9: memory leak when using multiple closures.
Solution:   Free the partial.

4 years agopatch 8.2.1708: Vim9: error message for function has unpritable characters v8.2.1708
Bram Moolenaar [Fri, 18 Sep 2020 20:42:00 +0000 (22:42 +0200)]
patch 8.2.1708: Vim9: error message for function has unpritable characters

Problem:    Vim9: error message for function has unpritable characters.
Solution:   use printable_func_name(). (closes #6965)

4 years agopatch 8.2.1707: small inconsitency in highlight test v8.2.1707
Bram Moolenaar [Fri, 18 Sep 2020 19:55:26 +0000 (21:55 +0200)]
patch 8.2.1707: small inconsitency in highlight test

Problem:    Small inconsitency in highlight test.
Solution:   Use one argument for :execute. (Antony Scriven, #6975)

4 years agopatch 8.2.1706: Vim9: crash after running into the "Multiple closures" error v8.2.1706
Bram Moolenaar [Fri, 18 Sep 2020 19:25:32 +0000 (21:25 +0200)]
patch 8.2.1706: Vim9: crash after running into the "Multiple closures" error

Problem:    Vim9: crash after running into the "Multiple closures" error.
Solution:   When a function fails still update any closures. (closes #6973)

4 years agopatch 8.2.1705: "verbose hi Name" reports incorrect info after ":hi clear" v8.2.1705
Bram Moolenaar [Fri, 18 Sep 2020 17:40:45 +0000 (19:40 +0200)]
patch 8.2.1705: "verbose hi Name" reports incorrect info after ":hi clear"

Problem:    "verbose hi Name" reports incorrect info after ":hi clear".
Solution:   Store the script context. (Antony Scriven, closes #6975)

4 years agopatch 8.2.1704: Vim9: crash in for loop when autoload script has an error v8.2.1704
Bram Moolenaar [Thu, 17 Sep 2020 19:29:03 +0000 (21:29 +0200)]
patch 8.2.1704: Vim9: crash in for loop when autoload script has an error

Problem:    Vim9: crash in for loop when autoload script has an error.
Solution:   Reset suppress_errthrow.  Check for NULL list. (closes #6967)

4 years agopatch 8.2.1703: ":highlight clear" does not restore default link v8.2.1703
Bram Moolenaar [Thu, 17 Sep 2020 17:59:26 +0000 (19:59 +0200)]
patch 8.2.1703: ":highlight clear" does not restore default link

Problem:    ":highlight clear" does not restore default link.
Solution:   Remember the default link and restore it. (Antony Scriven,
            closes #6970, closes #4405)

4 years agopatch 8.2.1702: crash when using undo after deleting folded lines v8.2.1702
Bram Moolenaar [Thu, 17 Sep 2020 17:36:04 +0000 (19:36 +0200)]
patch 8.2.1702: crash when using undo after deleting folded lines

Problem:    Crash when using undo after deleting folded lines.
Solution:   Check for NULL pointer. (closes #6968)

4 years agopatch 8.2.1701: Vim9: sort("i") does not work v8.2.1701
Bram Moolenaar [Wed, 16 Sep 2020 21:23:36 +0000 (23:23 +0200)]
patch 8.2.1701: Vim9: sort("i") does not work

Problem:    Vim9: sort("i") does not work.
Solution:   Don't try getting a number for a string argument. (closes #6958)

4 years agopatch 8.2.1700: Vim9: try/catch causes wrong value to be returned v8.2.1700
Bram Moolenaar [Wed, 16 Sep 2020 20:29:52 +0000 (22:29 +0200)]
patch 8.2.1700: Vim9: try/catch causes wrong value to be returned

Problem:    Vim9: try/catch causes wrong value to be returned.
Solution:   Reset tcd_return. (closes #6964)

4 years agopatch 8.2.1699: build failure due to missing error message v8.2.1699
Bram Moolenaar [Wed, 16 Sep 2020 19:41:53 +0000 (21:41 +0200)]
patch 8.2.1699: build failure due to missing error message

Problem:    Build failure due to missing error message.
Solution:   Add error message.

4 years agopatch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9 v8.2.1698
Bram Moolenaar [Wed, 16 Sep 2020 19:08:28 +0000 (21:08 +0200)]
patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9

Problem:    Cannot lock a variable in legacy Vim script like in Vim9.
Solution:   Make ":lockvar 0" work.

4 years agopatch 8.2.1697: inconsistent capitalization of error messages v8.2.1697
Bram Moolenaar [Wed, 16 Sep 2020 15:55:40 +0000 (17:55 +0200)]
patch 8.2.1697: inconsistent capitalization of error messages

Problem:    Inconsistent capitalization of error messages.
Solution:   Always start with a capital.

4 years agopatch 8.2.1696: unused (duplicate) macros v8.2.1696
Bram Moolenaar [Wed, 16 Sep 2020 15:30:27 +0000 (17:30 +0200)]
patch 8.2.1696: unused (duplicate) macros

Problem:    Unused (duplicate) macros.
Solution:   Remove the macros.

4 years agopatch 8.2.1695: Vim9: crash when using varargs type "any" v8.2.1695
Bram Moolenaar [Wed, 16 Sep 2020 15:22:59 +0000 (17:22 +0200)]
patch 8.2.1695: Vim9: crash when using varargs type "any"

Problem:    Vim9: crash when using varargs type "any".
Solution:   Check if uf_va_type is &t_any. (closes #6957)

4 years agopatch 8.2.1694: compiler warning for loss if data v8.2.1694
Bram Moolenaar [Wed, 16 Sep 2020 13:46:08 +0000 (15:46 +0200)]
patch 8.2.1694: compiler warning for loss if data

Problem:    Compiler warning for loss if data.
Solution:   Add typecast.

4 years agopatch 8.2.1693: "hi def" does not work for cleared highlight v8.2.1693
Bram Moolenaar [Wed, 16 Sep 2020 13:43:21 +0000 (15:43 +0200)]
patch 8.2.1693: "hi def" does not work for cleared highlight

Problem:    "hi def" does not work for cleared highlight.
Solution:   Check the "sg_cleared" flag. (Maxim Kim, closes #6956,
            closes #4405)

4 years agopatch 8.2.1692: build fails because TTFLAG_STATIC is missing v8.2.1692
Bram Moolenaar [Wed, 16 Sep 2020 13:41:09 +0000 (15:41 +0200)]
patch 8.2.1692: build fails because TTFLAG_STATIC is missing

Problem:    Build fails because TTFLAG_STATIC is missing.
Solution:   Include missing change.

4 years agopatch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expected v8.2.1691
Bram Moolenaar [Wed, 16 Sep 2020 13:22:00 +0000 (15:22 +0200)]
patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expected

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)

4 years agopatch 8.2.1690: text properties not adjusted for "I" in Visual block mode v8.2.1690
Bram Moolenaar [Tue, 15 Sep 2020 19:34:18 +0000 (21:34 +0200)]
patch 8.2.1690: text properties not adjusted for "I" in Visual block mode

Problem:    Text properties not adjusted for "I" in Visual block mode.
Solution:   Call inserted_bytes().

4 years agopatch 8.2.1689: 'colorcolumn' doesn't show in indent v8.2.1689
Bram Moolenaar [Tue, 15 Sep 2020 18:52:26 +0000 (20:52 +0200)]
patch 8.2.1689: 'colorcolumn' doesn't show in indent

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)

4 years agopatch 8.2.1688: increment/decrement removes text property v8.2.1688
Bram Moolenaar [Tue, 15 Sep 2020 18:34:10 +0000 (20:34 +0200)]
patch 8.2.1688: increment/decrement removes text property

Problem:    Increment/decrement removes text property.
Solution:   Insert the new number before deleting the old one. (closes #6962)

4 years agopatch 8.2.1687: Vim9: out of bounds error v8.2.1687
Bram Moolenaar [Mon, 14 Sep 2020 20:39:11 +0000 (22:39 +0200)]
patch 8.2.1687: Vim9: out of bounds error

Problem:    Vim9: out of bounds error.
Solution:   Check that cmdidx is not negative.

4 years agopatch 8.2.1686: Vim9: "const!" not sufficiently tested v8.2.1686
Bram Moolenaar [Mon, 14 Sep 2020 20:28:30 +0000 (22:28 +0200)]
patch 8.2.1686: Vim9: "const!" not sufficiently tested

Problem:    Vim9: "const!" not sufficiently tested.
Solution:   Add a few more test cases.  Fix type checking.

4 years agopatch 8.2.1685: Vim9: cannot declare a constant value v8.2.1685
Bram Moolenaar [Mon, 14 Sep 2020 19:39:44 +0000 (21:39 +0200)]
patch 8.2.1685: Vim9: cannot declare a constant value

Problem:    Vim9: cannot declare a constant value.
Solution:   Introduce ":const!".

4 years agopatch 8.2.1684: "gF" does not use line number after file in Visual mode v8.2.1684
Bram Moolenaar [Mon, 14 Sep 2020 17:11:45 +0000 (19:11 +0200)]
patch 8.2.1684: "gF" does not use line number after file in Visual mode

Problem:    "gF" does not use line number after file in Visual mode.
Solution:   Look for ":123" after the Visual area. (closes #6952)

4 years agopatch 8.2.1683: Vim9: assignment test fails v8.2.1683
Bram Moolenaar [Mon, 14 Sep 2020 16:35:18 +0000 (18:35 +0200)]
patch 8.2.1683: Vim9: assignment test fails

Problem:    Vim9: assignment test fails.
Solution:   Include changes to find Ex command.

4 years agopatch 8.2.1682: Vim9: const works in an unexpected way v8.2.1682
Bram Moolenaar [Mon, 14 Sep 2020 16:15:09 +0000 (18:15 +0200)]
patch 8.2.1682: Vim9: const works in an unexpected way

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.

4 years agopatch 8.2.1681: Vim9: unnessary :call commands in tests v8.2.1681
Bram Moolenaar [Mon, 14 Sep 2020 15:04:31 +0000 (17:04 +0200)]
patch 8.2.1681: Vim9: unnessary :call commands in tests

Problem:    Vim9: unnessary :call commands in tests.
Solution:   Remove the commands. (issue #6936)

4 years agopatch 8.2.1680: Vim9: line number for compare error is wrong v8.2.1680
Bram Moolenaar [Mon, 14 Sep 2020 14:50:05 +0000 (16:50 +0200)]
patch 8.2.1680: Vim9: line number for compare error is wrong

Problem:    Vim9: line number for compare error is wrong.
Solution:   Set SOURCING_LNUM. (closes #6936)

4 years agopatch 8.2.1679: Vim9: ":*" is not recognized as a range v8.2.1679
Bram Moolenaar [Mon, 14 Sep 2020 14:37:34 +0000 (16:37 +0200)]
patch 8.2.1679: Vim9: ":*" is not recognized as a range

Problem:    Vim9: ":*" is not recognized as a range.
Solution:   Move recognizing "*" into skip_range(). (closes #6838)

4 years agopatch 8.2.1678: crash when using ":set" after ":ownsyntax" v8.2.1678
Bram Moolenaar [Sun, 13 Sep 2020 20:37:34 +0000 (22:37 +0200)]
patch 8.2.1678: crash when using ":set" after ":ownsyntax"

Problem:    Crash when using ":set" after ":ownsyntax".
Solution:   Make sure 'spelloptions' is not NULL. (closes #6950)

4 years agopatch 8.2.1677: memory access errors when calling setloclist() in autocommand v8.2.1677
Bram Moolenaar [Sun, 13 Sep 2020 20:21:22 +0000 (22:21 +0200)]
patch 8.2.1677: memory access errors when calling setloclist() in autocommand

Problem:    Memory access errors when calling setloclist() in an autocommand.
Solution:   Give an error if the list was changed unexpectedly. (closes #6946)

4 years agopatch 8.2.1676: compiler warnings for function typecast v8.2.1676
Bram Moolenaar [Sun, 13 Sep 2020 20:00:12 +0000 (22:00 +0200)]
patch 8.2.1676: compiler warnings for function typecast

Problem:    Compiler warnings for function typecast.
Solution:   Add an intermediate cast to "void *".

4 years agopatch 8.2.1675: MinGW: testdir makefile deletes non-existing file v8.2.1675
Bram Moolenaar [Sun, 13 Sep 2020 19:01:22 +0000 (21:01 +0200)]
patch 8.2.1675: MinGW: testdir makefile deletes non-existing file

Problem:    MinGW: testdir makefile deletes non-existing file.
Solution:   Use another way to delete the output file if it already exists.
            (Michael Soyka)

4 years agopatch 8.2.1674: Vim9: internal error when using variable that was not set v8.2.1674
Bram Moolenaar [Sun, 13 Sep 2020 16:57:47 +0000 (18:57 +0200)]
patch 8.2.1674: Vim9: internal error when using variable that was not set

Problem:    Vim9: internal error when using variable that was not set.
Solution:   Give a meaningful error. (closes #6937)

4 years agopatch 8.2.1673: complete_info() selected index has an invalid value v8.2.1673
Bram Moolenaar [Sat, 12 Sep 2020 20:52:57 +0000 (22:52 +0200)]
patch 8.2.1673: complete_info() selected index has an invalid value

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().

4 years agopatch 8.2.1672: v_lock is used when it is not initialized v8.2.1672
Bram Moolenaar [Sat, 12 Sep 2020 20:10:00 +0000 (22:10 +0200)]
patch 8.2.1672: v_lock is used when it is not initialized

Problem:    v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution:   Initialize the typval in eval1().

4 years agopatch 8.2.1671: Vim9: stray error for missing white space v8.2.1671
Bram Moolenaar [Sat, 12 Sep 2020 19:27:03 +0000 (21:27 +0200)]
patch 8.2.1671: Vim9: stray error for missing white space

Problem:    Vim9: stray error for missing white space.
Solution:   Do not skip over white space after member. (closes #6817)

4 years agopatch 8.2.1670: a couple of gcc compiler warnings v8.2.1670
Bram Moolenaar [Sat, 12 Sep 2020 19:04:23 +0000 (21:04 +0200)]
patch 8.2.1670: a couple of gcc compiler warnings

Problem:    A couple of gcc compiler warnings.
Solution:   Initialize local variables. (Dominique Pellé, closes #6944)

4 years agopatch 8.2.1669: Vim9: memory leak when storing a value fails v8.2.1669
Bram Moolenaar [Sat, 12 Sep 2020 17:51:42 +0000 (19:51 +0200)]
patch 8.2.1669: Vim9: memory leak when storing a value fails

Problem:    Vim9: memory leak when storing a value fails.
Solution:   Free the value when not storing it.

4 years agopatch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is any v8.2.1668
Bram Moolenaar [Sat, 12 Sep 2020 17:11:23 +0000 (19:11 +0200)]
patch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is any

Problem:    Vim9: not accepting 0 or 1 as bool when type is any.
Solution:   Convert the type with the CHECKTYPE instruction. (closes #6913)

4 years agopatch 8.2.1667: local function name cannot shadow a global function name v8.2.1667
Bram Moolenaar [Sat, 12 Sep 2020 16:32:34 +0000 (18:32 +0200)]
patch 8.2.1667: local function name cannot shadow a global function name

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)

4 years agopatch 8.2.1666: the initial value of 'backupskip' can have duplicate items v8.2.1666
Bram Moolenaar [Sat, 12 Sep 2020 12:53:53 +0000 (14:53 +0200)]
patch 8.2.1666: the initial value of 'backupskip' can have duplicate items

Problem:    The initial value of 'backupskip' can have duplicate items.
Solution:   Remove duplicates, like when it is set later. (Tom Ryder,
            closes #6940)

4 years agopatch 8.2.1665: cannot do fuzzy string matching v8.2.1665
Bram Moolenaar [Fri, 11 Sep 2020 20:25:15 +0000 (22:25 +0200)]
patch 8.2.1665: cannot do fuzzy string matching

Problem:    Cannot do fuzzy string matching.
Solution:   Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932)

4 years agopatch 8.2.1664: memory leak when using :mkview with a terminal buffer v8.2.1664
Bram Moolenaar [Fri, 11 Sep 2020 20:10:22 +0000 (22:10 +0200)]
patch 8.2.1664: memory leak when using :mkview with a terminal buffer

Problem:    Memory leak when using :mkview with a terminal buffer.
Solution:   Don't use a hastab for :mkview. (Rob Pilling, closes #6935)

4 years agopatch 8.2.1663: options window entries cannot be translated v8.2.1663
Bram Moolenaar [Fri, 11 Sep 2020 18:51:26 +0000 (20:51 +0200)]
patch 8.2.1663: options window entries cannot be translated

Problem:    Options window entries cannot be translated.
Solution:   Use AddOption() for all explanations. (closes #6800)

4 years agopatch 8.2.1662: :mksession does not restore shared terminal buffer properly v8.2.1662
Bram Moolenaar [Fri, 11 Sep 2020 18:36:36 +0000 (20:36 +0200)]
patch 8.2.1662: :mksession does not restore shared terminal buffer properly

Problem:    :mksession does not restore shared terminal buffer properly.
Solution:   Keep a hashtab with terminal buffers. (Rob Pilling, closes #6930)

4 years agopatch 8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addresses v8.2.1661
Bram Moolenaar [Fri, 11 Sep 2020 17:28:19 +0000 (19:28 +0200)]
patch 8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addresses

Problem:    Cannot connect to 127.0.0.1 for host with only IPv6 addresses.
Solution:   pass AI_V4MAPPED flag to getaddrinfo. (Filipe Brandenburger,
            closes #6931)

4 years agopatch 8.2.1660: assert functions require passing expected as first argument v8.2.1660
Bram Moolenaar [Fri, 11 Sep 2020 17:09:48 +0000 (19:09 +0200)]
patch 8.2.1660: assert functions require passing expected as first argument

Problem:    Assert functions require passing expected result as the first
            argument, which isn't obvious.
Solution:   Use a method, as in "runtest()->assert_equal(expected)".

4 years agopatch 8.2.1659: spellfile code not completely tested v8.2.1659
Bram Moolenaar [Fri, 11 Sep 2020 16:11:50 +0000 (18:11 +0200)]
patch 8.2.1659: spellfile code not completely tested

Problem:    Spellfile code not completely tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes #6929)

4 years agopatch 8.2.1658: expand('<stack>') has trailing ".." v8.2.1658
Bram Moolenaar [Fri, 11 Sep 2020 15:59:23 +0000 (17:59 +0200)]
patch 8.2.1658: expand('<stack>') has trailing ".."

Problem:    Expand('<stack>') has trailing "..".
Solution:   Remove the "..". (closes #6927)

4 years agopatch 8.2.1657: Vim9: no proper error for nested ":def!" v8.2.1657
Bram Moolenaar [Thu, 10 Sep 2020 20:28:01 +0000 (22:28 +0200)]
patch 8.2.1657: Vim9: no proper error for nested ":def!"

Problem:    Vim9: no proper error for nested ":def!".
Solution:   Check for "!". (closes #6920)

4 years agopatch 8.2.1656: Vim9: callstack wrong if :def function calls :def function v8.2.1656
Bram Moolenaar [Thu, 10 Sep 2020 20:05:08 +0000 (22:05 +0200)]
patch 8.2.1656: Vim9: callstack wrong if :def function calls :def function

Problem:    Vim9: callstack wrong if :def function calls :def function.
Solution:   Set the line number before calling. (closes #6914)

4 years agopatch 8.2.1655: cannot build with Strawberry Perl 5.32.0 v8.2.1655
Bram Moolenaar [Thu, 10 Sep 2020 19:36:11 +0000 (21:36 +0200)]
patch 8.2.1655: cannot build with Strawberry Perl 5.32.0

Problem:    Cannot build with Strawberry Perl 5.32.0.
Solution:   Use Perl_sv_2pvbyte_flags. (closes #6921)

4 years agopatch 8.2.1654: when job writes to hidden buffer current window is wrong v8.2.1654
Bram Moolenaar [Thu, 10 Sep 2020 19:25:45 +0000 (21:25 +0200)]
patch 8.2.1654: when job writes to hidden buffer current window is wrong

Problem:    When job writes to hidden buffer current window has display
            errors.  (Johnny McArthur)
Solution:   Use aucmd_prepbuf() instead of switch_to_win_for_buf().
            (closes #6925)

4 years agopatch 8.2.1653: expand('<stack>') does not include the final line number v8.2.1653
Bram Moolenaar [Thu, 10 Sep 2020 17:25:05 +0000 (19:25 +0200)]
patch 8.2.1653: expand('<stack>') does not include the final line number

Problem:    Expand('<stack>') does not include the final line number.
Solution:   Add the line nuber. (closes #6927)

4 years agopatch 8.2.1652: cannot translate lines in the options window v8.2.1652
Bram Moolenaar [Thu, 10 Sep 2020 12:25:25 +0000 (14:25 +0200)]
patch 8.2.1652: cannot translate lines in the options window

Problem:    Cannot translate lines in the options window.
Solution:   Use the AddOption() function to split descriptions where indicated
            by a line break. (issue #6800)

4 years agopatch 8.2.1651: spellfile code not completely tested v8.2.1651
Bram Moolenaar [Wed, 9 Sep 2020 20:43:19 +0000 (22:43 +0200)]
patch 8.2.1651: spellfile code not completely tested

Problem:    Spellfile code not completely tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes #6918)

4 years agopatch 8.2.1650: Vim9: result of && and || expression is not bool in script v8.2.1650
Bram Moolenaar [Wed, 9 Sep 2020 20:27:58 +0000 (22:27 +0200)]
patch 8.2.1650: Vim9: result of && and || expression is not bool in script

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.

4 years agopatch 8.2.1649: GTK3: using old file chooser v8.2.1649
Bram Moolenaar [Wed, 9 Sep 2020 18:58:55 +0000 (20:58 +0200)]
patch 8.2.1649: GTK3: using old file chooser

Problem:    GTK3: using old file chooser.
Solution:   Use native file chooser on GTK 3.20 and above. (Yogeshwar
            Velingker, closes #6909)

4 years agopatch 8.2.1648: Amiga: no common build file for Amiga (-like) systems v8.2.1648
Bram Moolenaar [Wed, 9 Sep 2020 18:41:40 +0000 (20:41 +0200)]
patch 8.2.1648: Amiga: no common build file for Amiga (-like) systems

Problem:    Amiga: no common build file for Amiga (-like) systems.
Solution:   Turn Make_morph.mak into Make_ami.mak. (Ola Söder, closes #6805)

4 years agopatch 8.2.1647: Vim9: result of expression with && and || is not a bool v8.2.1647
Bram Moolenaar [Wed, 9 Sep 2020 18:03:46 +0000 (20:03 +0200)]
patch 8.2.1647: Vim9: result of expression with && and || is not a bool

Problem:    Vim9: result of expression with && and || cannot be assigned to a
            bool variable.
Solution:   Add the TTFLAG_BOOL_OK flag and convert the value if needed.

4 years agopatch 8.2.1646: Amiga: Unnecessary #include v8.2.1646
Bram Moolenaar [Wed, 9 Sep 2020 17:25:09 +0000 (19:25 +0200)]
patch 8.2.1646: Amiga: Unnecessary #include

Problem:    Amiga: Unnecessary #include.
Solution:   Remove the #include. (Ola Söder, closes #6908)

4 years agopatch 8.2.1645: GTK3: icons become broken images when resized v8.2.1645
Bram Moolenaar [Wed, 9 Sep 2020 17:05:13 +0000 (19:05 +0200)]
patch 8.2.1645: GTK3: icons become broken images when resized

Problem:    GTK3: icons become broken images when resized.
Solution:   Use gtk_image_new_from_icon_name(). (closes #6916)
            Fix compiler warnings.

4 years agopatch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level v8.2.1644
Bram Moolenaar [Wed, 9 Sep 2020 16:54:42 +0000 (18:54 +0200)]
patch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level

Problem:    Vim9: cannot assign 1 and 0 to bool at script level.
Solution:   Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
            function.

4 years agopatch 8.2.1643: Vim9: :defcompile compiles dead functions v8.2.1643
Bram Moolenaar [Wed, 9 Sep 2020 15:08:51 +0000 (17:08 +0200)]
patch 8.2.1643: Vim9: :defcompile compiles dead functions

Problem:    Vim9: :defcompile compiles dead functions.
Solution:   Skip over dead functions.

4 years agopatch 8.2.1642: otions test fails v8.2.1642
Bram Moolenaar [Wed, 9 Sep 2020 13:10:52 +0000 (15:10 +0200)]
patch 8.2.1642: otions test fails

Problem:    Otions test fails.
Solution:   Correct call to OptionG().

4 years agopatch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expected v8.2.1641
Bram Moolenaar [Wed, 9 Sep 2020 12:55:31 +0000 (14:55 +0200)]
patch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expected

Problem:    Vim9: cannot use 0 or 1 where a bool is expected.
Solution:   Allow using 0 and 1 for a bool type. (closes #6903)

4 years agopatch 8.2.1640: Amiga: missing header for getgrgid() v8.2.1640
Bram Moolenaar [Wed, 9 Sep 2020 11:01:27 +0000 (13:01 +0200)]
patch 8.2.1640: Amiga: missing header for getgrgid()

Problem:    Amiga: missing header for getgrgid().
Solution:   Add the grp.h header. (Ola Söder, closes #6906)