]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1780: statusline not updated when splitting windows v8.2.1780
Bram Moolenaar [Thu, 1 Oct 2020 17:06:35 +0000 (19:06 +0200)]
patch 8.2.1780: statusline not updated when splitting windows

Problem:    Statusline not updated when splitting windows.
Solution:   Call status_redraw_all(). (Jason Franklin, closes #5496)

4 years agopatch 8.2.1779: some debian changelog files are not recognized v8.2.1779
Bram Moolenaar [Thu, 1 Oct 2020 14:54:07 +0000 (16:54 +0200)]
patch 8.2.1779: some debian changelog files are not recognized

Problem:    Some debian changelog files are not recognized.
Solution:   Add */debian/changelog. (Jason Franklin)

4 years agopatch 8.2.1778: Vim9: returning from a partial call clears outer context v8.2.1778
Bram Moolenaar [Thu, 1 Oct 2020 11:01:34 +0000 (13:01 +0200)]
patch 8.2.1778: Vim9: returning from a partial call clears outer context

Problem:    Vim9: returning from a partial call clears outer context, causing
            a crash.
Solution:   Put the outer context in the stack frame. (closes #7044)

4 years agopatch 8.2.1777: Vim9: some assignment tests in the wrong file v8.2.1777
Bram Moolenaar [Wed, 30 Sep 2020 20:59:42 +0000 (22:59 +0200)]
patch 8.2.1777: Vim9: some assignment tests in the wrong file

Problem:    Vim9: some assignment tests in the wrong file.
Solution:   Move assignment tests to test_vim9_assign.

4 years agopatch 8.2.1776: filetype.vim may be loaded twice v8.2.1776
Bram Moolenaar [Wed, 30 Sep 2020 20:45:39 +0000 (22:45 +0200)]
patch 8.2.1776: filetype.vim may be loaded twice

Problem:    Filetype.vim may be loaded twice.
Solution:   Do "syntax on" after "filetype on". (Adam Stankiewicz,
            closes #7049)

4 years agopatch 8.2.1775: MS-Windows: adding a long quickfix list is slow v8.2.1775
Bram Moolenaar [Tue, 29 Sep 2020 20:47:03 +0000 (22:47 +0200)]
patch 8.2.1775: MS-Windows: adding a long quickfix list is slow

Problem:    MS-Windows: adding a long quickfix list is slow.
Solution:   Shorten the buffer name only for the first entry. (Yegappan
            Lakshmanan, closes #7039, closes #7033)

4 years agopatch 8.2.1774: GTK: hang when forced to exit v8.2.1774
Bram Moolenaar [Tue, 29 Sep 2020 20:16:09 +0000 (22:16 +0200)]
patch 8.2.1774: GTK: hang when forced to exit

Problem:    GTK: hang when forced to exit.
Solution:   Do not clean up "mainwin" when really_exiting is set.
            (Zdenek Dohnal, closes #7042)

4 years agopatch 8.2.1773: crash when calling mapset() with a list as first argument v8.2.1773
Bram Moolenaar [Tue, 29 Sep 2020 19:45:41 +0000 (21:45 +0200)]
patch 8.2.1773: crash when calling mapset() with a list as first argument

Problem:    Crash when calling mapset() with a list as first argument.
Solution:   Check for NULL. (closes #7040)

4 years agopatch 8.2.1772: cannot use CTRL-W <Down> to move out of a terminal window v8.2.1772
Bram Moolenaar [Tue, 29 Sep 2020 19:23:25 +0000 (21:23 +0200)]
patch 8.2.1772: cannot use CTRL-W <Down> to move out of a terminal window

Problem:    Cannot use CTRL-W <Down> to move out of a terminal window.
Solution:   Use special_to_buf() instead of mb_char2bytes(). (closes #7045)

4 years agopatch 8.2.1771: synIDattr() cannot get the value of ctermul v8.2.1771
Bram Moolenaar [Tue, 29 Sep 2020 18:59:17 +0000 (20:59 +0200)]
patch 8.2.1771: synIDattr() cannot get the value of ctermul

Problem:    synIDattr() cannot get the value of ctermul.
Solution:   Add the "ul" value for "what". (closes #7037)

4 years agopatch 8.2.1770: invalid memory use when using SpellFileMissing autocmd v8.2.1770
Bram Moolenaar [Mon, 28 Sep 2020 21:13:15 +0000 (23:13 +0200)]
patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd

Problem:    Invalid memory use when using SpellFileMissing autocmd.
Solution:   Add test case. (Dominique Pellé, closes #7036)  Fix using a window
            that was closed.

4 years agopatch 8.2.1769: popup filter interferes with using :normal to move the cursor v8.2.1769
Bram Moolenaar [Mon, 28 Sep 2020 20:29:58 +0000 (22:29 +0200)]
patch 8.2.1769: popup filter interferes with using :normal to move the cursor

Problem:    A popup filter interferes with using :normal to move the cursor in
            a popup.
Solution:   Do not invoke the filter when ex_normal_busy is set.

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 28 Sep 2020 19:48:16 +0000 (21:48 +0200)]
Update runtime files.

4 years agopatch 8.2.1768: cannot use the help menu from a terminal window v8.2.1768
Bram Moolenaar [Mon, 28 Sep 2020 19:41:49 +0000 (21:41 +0200)]
patch 8.2.1768: cannot use the help menu from a terminal window

Problem:    Cannot use the help menu from a terminal window.
Solution:   Add ":tlnoremenu" commands. (Yee Cheng Chin, closes #7023)

4 years agopatch 8.2.1767: Vim9: test fails with python support v8.2.1767
Bram Moolenaar [Sun, 27 Sep 2020 21:33:59 +0000 (23:33 +0200)]
patch 8.2.1767: Vim9: test fails with python support

Problem:    Vim9: test fails with python support.
Solution:   Use "let" in legacy function.

4 years agopatch 8.2.1766: Vim9: Some tests are still using :let v8.2.1766
Bram Moolenaar [Sun, 27 Sep 2020 20:47:05 +0000 (22:47 +0200)]
patch 8.2.1766: Vim9: Some tests are still using :let

Problem:    Vim9: Some tests are still using :let.
Solution:   Change the last few declarations to use :var.

4 years agopatch 8.2.1765: Vim9: some tests use "var var" v8.2.1765
Bram Moolenaar [Sun, 27 Sep 2020 19:58:45 +0000 (21:58 +0200)]
patch 8.2.1765: Vim9: some tests use "var var"

Problem:    Vim9: some tests use "var var".
Solution:   Use "var name". (closes #7032)

4 years agopatch 8.2.1764: Vim9: no error when assigning to script var with wrong type v8.2.1764
Bram Moolenaar [Sun, 27 Sep 2020 19:27:40 +0000 (21:27 +0200)]
patch 8.2.1764: Vim9: no error when assigning to script var with wrong type

Problem:    Vim9: no error when assigning to script var with wrong type.
Solution:   Fix off-by-one error. (closes #7028)

4 years agopatch 8.2.1763: Vim9: cannot use "true" for popup window scrollbar option v8.2.1763
Bram Moolenaar [Sun, 27 Sep 2020 19:16:45 +0000 (21:16 +0200)]
patch 8.2.1763: Vim9: cannot use "true" for popup window scrollbar option

Problem:    Vim9: cannot use "true" for popup window scrollbar option.
Solution:   use dict_get_bool(). (closes #7029)

4 years agopatch 8.2.1762: when a timer uses :stopinsert completion isn't stopped v8.2.1762
Bram Moolenaar [Sun, 27 Sep 2020 18:13:03 +0000 (20:13 +0200)]
patch 8.2.1762: when a timer uses :stopinsert completion isn't stopped

Problem:    When a timer uses :stopinsert Insert mode completion isn't
            stopped. (Stanley Chan)
Solution:   Call ins_compl_prep(ESC).

4 years agopatch 8.2.1761: Vim9: Some tests are still using :let v8.2.1761
Bram Moolenaar [Sun, 27 Sep 2020 17:05:33 +0000 (19:05 +0200)]
patch 8.2.1761: Vim9: Some tests are still using :let

Problem:    Vim9: Some tests are still using :let.
Solution:   Change more declarations to use :var.

4 years agopatch 8.2.1760: Vim9: crash when end marker is missing v8.2.1760
Bram Moolenaar [Sun, 27 Sep 2020 16:24:03 +0000 (18:24 +0200)]
patch 8.2.1760: Vim9: crash when end marker is missing

Problem:    Vim9: crash when end marker is missing. (Dhiraj Mishra)
Solution:   Check for end of function lines. (closes #7031)

4 years agopatch 8.2.1759: Vim9: Some tests are still using :let v8.2.1759
Bram Moolenaar [Sun, 27 Sep 2020 15:57:43 +0000 (17:57 +0200)]
patch 8.2.1759: Vim9: Some tests are still using :let

Problem:    Vim9: Some tests are still using :let.
Solution:   Change more declarations to use :var.

4 years agopatch 8.2.1758: Vim9: type of unmaterialized list is wrong v8.2.1758
Bram Moolenaar [Sun, 27 Sep 2020 15:45:03 +0000 (17:45 +0200)]
patch 8.2.1758: Vim9: type of unmaterialized list is wrong

Problem:    Vim9: type of unmaterialized list is wrong.
Solution:   Use list<number>.

4 years agopatch 8.2.1757: Mac: default locale is lacking the encoding v8.2.1757
Bram Moolenaar [Sun, 27 Sep 2020 14:03:15 +0000 (16:03 +0200)]
patch 8.2.1757: Mac: default locale is lacking the encoding

Problem:    Mac: default locale is lacking the encoding.
Solution:   Add ".UTF-8 to the locale. (Yee Cheng Chin, closes #7022)

4 years agopatch 8.2.1756: Vim9: :let will soon be disallowed v8.2.1756
Bram Moolenaar [Sun, 27 Sep 2020 13:19:27 +0000 (15:19 +0200)]
patch 8.2.1756: Vim9: :let will soon be disallowed

Problem:    Vim9: :let will soon be disallowed.
Solution:   Add v:disallow_let temporarily.  Fix tests.

4 years agopatch 8.2.1755: Vim9: crash when using invalid heredoc marker v8.2.1755
Bram Moolenaar [Sun, 27 Sep 2020 12:22:48 +0000 (14:22 +0200)]
patch 8.2.1755: Vim9: crash when using invalid heredoc marker

Problem:    Vim9: crash when using invalid heredoc marker. (Dhiraj Mishra)
Solution:   Check for NULL list. (closes #7027)  Fix comment character.

4 years agopatch 8.2.1754: completion with spell checking not tested v8.2.1754
Bram Moolenaar [Sun, 27 Sep 2020 11:58:38 +0000 (13:58 +0200)]
patch 8.2.1754: completion with spell checking not tested

Problem:    Completion with spell checking not tested.
Solution:   Add a test case. (Dominique Pellé, closes #7024)

4 years agopatch 8.2.1753: Vim9: crash when using import at script level v8.2.1753
Bram Moolenaar [Sun, 27 Sep 2020 11:51:14 +0000 (13:51 +0200)]
patch 8.2.1753: Vim9: crash when using import at script level

Problem:    Vim9: crash when using import at script level.
Solution:   Give a "not implemented yet" error. (closes #7026)

4 years agopatch 8.2.1752: GTK GUI: cannot map alt-? with <A-?> v8.2.1752
Bram Moolenaar [Sun, 27 Sep 2020 11:16:46 +0000 (13:16 +0200)]
patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?>

Problem:    GTK GUI: cannot map alt-? with <A-?>. (Ingo Karkat)
Solution:   Adjust the characters for which the shift modifier is removed.
            (closes #7016)  Make Motif and Win32 use the same function as GTK.

4 years agopatch 8.2.1751: using 2 where bool is expected may throw an error v8.2.1751
Bram Moolenaar [Sat, 26 Sep 2020 20:39:24 +0000 (22:39 +0200)]
patch 8.2.1751: using 2 where bool is expected may throw an error

Problem:    Using 2 where bool is expected may throw an error.
Solution:   Make this backwards compatible.

4 years agopatch 8.2.1750: popup_setoptions() setting firstline fails if cursorline set v8.2.1750
Bram Moolenaar [Sat, 26 Sep 2020 20:03:00 +0000 (22:03 +0200)]
patch 8.2.1750: popup_setoptions() setting firstline fails if cursorline set

Problem:    Setting firstline with popup_setoptions() fails if cursorline is
            set.
Solution:   Use apply_options(). Update the popup before applying "zz".
            (closes #7010)

4 years agopatch 8.2.1749: Vim9: crash when closure fails in nested function v8.2.1749
Bram Moolenaar [Sat, 26 Sep 2020 17:59:38 +0000 (19:59 +0200)]
patch 8.2.1749: Vim9: crash when closure fails in nested function

Problem:    Vim9: crash when closure fails in nested function.
Solution:   Handle function returns before dereferencing remaining closures.
            (closes #7008)

4 years agopatch 8.2.1748: closing split window in other tab may cause a crash v8.2.1748
Bram Moolenaar [Sat, 26 Sep 2020 17:11:39 +0000 (19:11 +0200)]
patch 8.2.1748: closing split window in other tab may cause a crash

Problem:    Closing split window in other tab may cause a crash.
Solution:   Set tp_curwin properly. (Rob Pilling, closes #7018)

4 years agopatch 8.2.1747: result of expand() unexpectedly depends on 'completeslash' v8.2.1747
Bram Moolenaar [Sat, 26 Sep 2020 16:47:11 +0000 (18:47 +0200)]
patch 8.2.1747: result of expand() unexpectedly depends on 'completeslash'

Problem:    Result of expand() unexpectedly depends on 'completeslash'.
Solution:   Temporarily reset 'completeslash'. (Yasuhiro Matsumoto,
            closes #7021)

4 years agopatch 8.2.1746: Vim9: cannot use "fina" for "finally" v8.2.1746
Bram Moolenaar [Sat, 26 Sep 2020 15:20:53 +0000 (17:20 +0200)]
patch 8.2.1746: Vim9: cannot use "fina" for "finally"

Problem:    Vim9: Cannot use "fina" for "finally". (Naruhiko Nishino)
Solution:   Specifically check for "fina". (closes #7020)

4 years agopatch 8.2.1745: tiny version doesn't build v8.2.1745
Bram Moolenaar [Sat, 26 Sep 2020 13:20:42 +0000 (15:20 +0200)]
patch 8.2.1745: tiny version doesn't build

Problem:    Tiny version doesn't build.
Solution:   Add dummy ex_var() function.

4 years agopatch 8.2.1744: Vim9: using ":const!" is weird v8.2.1744
Bram Moolenaar [Sat, 26 Sep 2020 13:09:30 +0000 (15:09 +0200)]
patch 8.2.1744: Vim9: using ":const!" is weird

Problem:    Vim9: using ":const!" is weird.
Solution:   Use "var" - "final" - "const" like Dart.  "let" still works for
            now.

4 years agopatch 8.2.1743: cannot build without the eval feature v8.2.1743
Bram Moolenaar [Fri, 25 Sep 2020 21:49:01 +0000 (23:49 +0200)]
patch 8.2.1743: cannot build without the eval feature

Problem:    Cannot build without the eval feature.
Solution:   Move shorten_dir outside of #ifdef.

4 years agopatch 8.2.1742: test still fails without the terminal feature v8.2.1742
Bram Moolenaar [Fri, 25 Sep 2020 21:12:51 +0000 (23:12 +0200)]
patch 8.2.1742: test still fails without the terminal feature

Problem:    Test still fails without the terminal feature.
Solution:   Put check for terminal feature in separate function.

4 years agopatch 8.2.1741: pathshorten() only supports using one character v8.2.1741
Bram Moolenaar [Fri, 25 Sep 2020 20:42:48 +0000 (22:42 +0200)]
patch 8.2.1741: pathshorten() only supports using one character

Problem:    pathshorten() only supports using one character.
Solution:   Add an argument to control the length. (closes #7006)

4 years agopatch 8.2.1740: test fails without the terminal feature v8.2.1740
Bram Moolenaar [Fri, 25 Sep 2020 20:13:05 +0000 (22:13 +0200)]
patch 8.2.1740: test fails without the terminal feature

Problem:    Test fails without the terminal feature.
Solution:   Skip test if the terminal feature is not available.

4 years agopatch 8.2.1739: Vim9: crash when compiling a manually defined function v8.2.1739
Bram Moolenaar [Fri, 25 Sep 2020 19:47:28 +0000 (21:47 +0200)]
patch 8.2.1739: Vim9: crash when compiling a manually defined function

Problem:    Vim9: crash when compiling a manually defined function. (Antony
            Scriven)
Solution:   Check that the script ID is positive. (closes #7012)

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.