]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1910: reading past the end of the command line v8.2.1910
Bram Moolenaar [Mon, 26 Oct 2020 20:39:13 +0000 (21:39 +0100)]
patch 8.2.1910: reading past the end of the command line

Problem:    Reading past the end of the command line.
Solution:   Check for NUL. (closes #7204)

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 26 Oct 2020 20:12:46 +0000 (21:12 +0100)]
Update runtime files.

4 years agopatch 8.2.1909: number of status line items is limited to 80 v8.2.1909
Bram Moolenaar [Mon, 26 Oct 2020 20:05:27 +0000 (21:05 +0100)]
patch 8.2.1909: number of status line items is limited to 80

Problem:    Number of status line items is limited to 80.
Solution:   Dynamically allocate the arrays. (Rom Grk, closes #7181)

4 years agopatch 8.2.1908: Lua is initialized even when not used v8.2.1908
Bram Moolenaar [Mon, 26 Oct 2020 19:18:08 +0000 (20:18 +0100)]
patch 8.2.1908: Lua is initialized even when not used

Problem:    Lua is initialized even when not used.
Solution:   Put lua_init() after check for "eap->skip". (Christian Brabandt,
            closes #7191).  Avoid compiler warnings.

4 years agopatch 8.2.1907: complete_info().selected may be wrong v8.2.1907
Bram Moolenaar [Mon, 26 Oct 2020 18:22:42 +0000 (19:22 +0100)]
patch 8.2.1907: complete_info().selected may be wrong

Problem:    Complete_info().selected may be wrong.
Solution:   Update cp_number if it was never set. (issue #6945)

4 years agopatch 8.2.1906: warning for signed/unsigned v8.2.1906
Bram Moolenaar [Mon, 26 Oct 2020 17:46:53 +0000 (18:46 +0100)]
patch 8.2.1906: warning for signed/unsigned

Problem:    Warning for signed/unsigned.
Solution:   Use size_t instead of int. (Mike Williams)

4 years agopatch 8.2.1905: the wininfo list may contain stale entries v8.2.1905
Bram Moolenaar [Sun, 25 Oct 2020 16:55:09 +0000 (17:55 +0100)]
patch 8.2.1905: the wininfo list may contain stale entries

Problem:    The wininfo list may contain stale entries.
Solution:   When closing a window remove any other entry where the window
            pointer is NULL.

4 years agopatch 8.2.1904: still using default option values after using ":badd +1" v8.2.1904
Bram Moolenaar [Sun, 25 Oct 2020 16:09:50 +0000 (17:09 +0100)]
patch 8.2.1904: still using default option values after using ":badd +1"

Problem:    Still using default option values after using ":badd +1".
Solution:   Find a window where options were set.  Don't set the window when
            using ":badd".

4 years agopatch 8.2.1903: buffer test fails with normal features v8.2.1903
Bram Moolenaar [Sun, 25 Oct 2020 15:18:26 +0000 (16:18 +0100)]
patch 8.2.1903: buffer test fails with normal features

Problem:    Buffer test fails with normal features.
Solution:   Use 'numberwidth' instead of 'conceallevel' in the test.

4 years agopatch 8.2.1902: default option values changed with :badd for existing buffer v8.2.1902
Bram Moolenaar [Sun, 25 Oct 2020 14:02:51 +0000 (15:02 +0100)]
patch 8.2.1902: default option values changed with :badd for existing buffer

Problem:    Default option values are changed when using :badd for an existing
            buffer.
Solution:   When calling buflist_new() pass a zero line number. (closes #7195)

4 years agopatch 8.2.1901: variable completion does not work in command line window v8.2.1901
Bram Moolenaar [Sun, 25 Oct 2020 12:22:42 +0000 (13:22 +0100)]
patch 8.2.1901: variable completion does not work in command line window

Problem:    Variable completion does not work in command line window.
Solution:   Use the "prevwin". (closes #7198)

4 years agopatch 8.2.1900: Vim9: command modifiers do not work v8.2.1900
Bram Moolenaar [Sat, 24 Oct 2020 21:08:38 +0000 (23:08 +0200)]
patch 8.2.1900: Vim9: command modifiers do not work

Problem:    Vim9: command modifiers do not work.
Solution:   Make most command modifiers work.

4 years agopatch 8.2.1899: crash in out-of-memory situation v8.2.1899
Bram Moolenaar [Sat, 24 Oct 2020 18:58:06 +0000 (20:58 +0200)]
patch 8.2.1899: crash in out-of-memory situation

Problem:    Crash in out-of-memory situation.
Solution:   Bail out if shell_name is NULL. (Dominique Pellé, closes #7196)

4 years agopatch 8.2.1898: command modifier parsing always uses global cmdmod v8.2.1898
Bram Moolenaar [Sat, 24 Oct 2020 18:49:43 +0000 (20:49 +0200)]
patch 8.2.1898: command modifier parsing always uses global cmdmod

Problem:    Command modifier parsing always uses global cmdmod.
Solution:   Pass in cmdmod_T to use.  Rename struct fields consistently.

4 years agopatch 8.2.1897: command modifiers are saved and set inconsistently v8.2.1897
Bram Moolenaar [Sat, 24 Oct 2020 15:19:16 +0000 (17:19 +0200)]
patch 8.2.1897: command modifiers are saved and set inconsistently

Problem:    Command modifiers are saved and set inconsistently.
Solution:   Separate parsing and applying command modifiers.  Save values in
            cmdmod_T.

4 years agopatch 8.2.1896: valgrind warns for using uninitialized memory v8.2.1896
Bram Moolenaar [Sat, 24 Oct 2020 11:30:51 +0000 (13:30 +0200)]
patch 8.2.1896: valgrind warns for using uninitialized memory

Problem:    Valgrind warns for using uninitialized memory.
Solution:   NUL terminate the SmcOpenConnection() error message. (Dominique
            Pellé, closes #7194)

4 years agopatch 8.2.1895: Vim9: silent command modifier test fails v8.2.1895
Bram Moolenaar [Fri, 23 Oct 2020 16:51:06 +0000 (18:51 +0200)]
patch 8.2.1895: Vim9: silent command modifier test fails

Problem:    Vim9: silent command modifier test fails.
Solution:   Add missing changes.

4 years agopatch 8.2.1894: Vim9: command modifiers are not supported v8.2.1894
Bram Moolenaar [Fri, 23 Oct 2020 16:02:32 +0000 (18:02 +0200)]
patch 8.2.1894: Vim9: command modifiers are not supported

Problem:    Vim9: command modifiers are not supported.
Solution:   Support "silent" and "silent!".

4 years agopatch 8.2.1893: fuzzy matching does not support multiple words v8.2.1893
Bram Moolenaar [Fri, 23 Oct 2020 14:50:30 +0000 (16:50 +0200)]
patch 8.2.1893: fuzzy matching does not support multiple words

Problem:    Fuzzy matching does not support multiple words.
Solution:   Add support for matching white space separated words. (Yegappan
            Lakshmanan, closes #7163)

4 years agopatch 8.2.1892: valgrind warns for using uninitialized access in tests v8.2.1892
Bram Moolenaar [Fri, 23 Oct 2020 13:40:39 +0000 (15:40 +0200)]
patch 8.2.1892: valgrind warns for using uninitialized access in tests

Problem:    Valgrind warns for using uninitialized access in tests.
Solution:   Fix condition for breaking out of loop. (Dominique Pellé,
            closes #7187)

4 years agopatch 8.2.1891: Vim9: skipping over expression doesn't handle line breaks v8.2.1891
Bram Moolenaar [Thu, 22 Oct 2020 19:22:58 +0000 (21:22 +0200)]
patch 8.2.1891: Vim9: skipping over expression doesn't handle line breaks

Problem:    Vim9: skipping over expression doesn't handle line breaks.
Solution:   Pass evalarg to skip_expr(). (closes #7157)

4 years agopatch 8.2.1890: Vim9: strange error for subtracting from a list v8.2.1890
Bram Moolenaar [Thu, 22 Oct 2020 18:09:43 +0000 (20:09 +0200)]
patch 8.2.1890: Vim9: strange error for subtracting from a list

Problem:    Vim9: strange error for subtracting from a list.
Solution:   Check getting a number, not a string. (closes #7167)

4 years agopatch 8.2.1889: Vim9: errornous error for missing white space after {} v8.2.1889
Bram Moolenaar [Thu, 22 Oct 2020 17:00:01 +0000 (19:00 +0200)]
patch 8.2.1889: Vim9: errornous error for missing white space after {}

Problem:    Vim9: errornous error for missing white space after {}.
Solution:   Don't skip over white space after {}. (issue #7167)

4 years agopatch 8.2.1888: Vim9: getbufline(-1, 1, '$') gives an error v8.2.1888
Bram Moolenaar [Thu, 22 Oct 2020 16:23:38 +0000 (18:23 +0200)]
patch 8.2.1888: Vim9: getbufline(-1, 1, '$') gives an error

Problem:    Vim9: Getbufline(-1, 1, '$') gives an error.
Solution:   Return an empty list. (closes #7180)

4 years agopatch 8.2.1887: Github actions not optimally configured v8.2.1887
Bram Moolenaar [Thu, 22 Oct 2020 15:33:17 +0000 (17:33 +0200)]
patch 8.2.1887: Github actions not optimally configured

Problem:    Github actions not optimally configured.
Solution:   Run CI on any pushed branches. Set fail-fast. (Ozaki Kiichi,
            closes #7184)

4 years agopatch 8.2.1886: using ":silent!" in a popup filter has unexpected effect v8.2.1886
Bram Moolenaar [Thu, 22 Oct 2020 11:44:54 +0000 (13:44 +0200)]
patch 8.2.1886: using ":silent!" in a popup filter has unexpected effect

Problem:    Using ":silent!" in a popup filter has unexpected effect.
Solution:   Use did_emsg instead of called_emsg. (closes #7178)

4 years agopatch 8.2.1885: filetype tests unnessarily creates swap files v8.2.1885
Bram Moolenaar [Thu, 22 Oct 2020 10:33:32 +0000 (12:33 +0200)]
patch 8.2.1885: filetype tests unnessarily creates swap files

Problem:    Filetype tests unnessarily creates swap files.
Solution:   Disable 'swapfile'. (Ken Takata, closes #7183)

4 years agopatch 8.2.1884: compiler warning for uninitialized variable v8.2.1884
Bram Moolenaar [Thu, 22 Oct 2020 10:31:49 +0000 (12:31 +0200)]
patch 8.2.1884: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable. (John Marriott)
Solution:   Initialize with NULL.

4 years agopatch 8.2.1883: compiler warnings when using Python v8.2.1883
Bram Moolenaar [Wed, 21 Oct 2020 19:01:59 +0000 (21:01 +0200)]
patch 8.2.1883: compiler warnings when using Python

Problem:    Compiler warnings when using Python.
Solution:   Adjust PyCFunction to also have the second argument.  Use "int"
            return type for some functions.  Insert "(void *)" to get rid of
            the remaining warnings.

4 years agopatch 8.2.1882: Vim9: v:disallow_let is no longer needed v8.2.1882
Bram Moolenaar [Wed, 21 Oct 2020 18:58:52 +0000 (20:58 +0200)]
patch 8.2.1882: Vim9: v:disallow_let is no longer needed

Problem:    Vim9: v:disallow_let is no longer needed.
Solution:   Remove v:disallow_let.

4 years agopatch 8.2.1881: cannot build with GTK3 v8.2.1881
Bram Moolenaar [Wed, 21 Oct 2020 15:28:27 +0000 (17:28 +0200)]
patch 8.2.1881: cannot build with GTK3

Problem:    Cannot build with GTK3.
Solution:   Adjust form functions.

4 years agopatch 8.2.1880: Vim9: asan complains about adding zero to NULL v8.2.1880
Bram Moolenaar [Wed, 21 Oct 2020 14:49:17 +0000 (16:49 +0200)]
patch 8.2.1880: Vim9: asan complains about adding zero to NULL

Problem:    Vim9: Asan complains about adding zero to NULL.
Solution:   Check for argument count first.

4 years agopatch 8.2.1879: Vim9: argument types of insert() not checked when compiling v8.2.1879
Bram Moolenaar [Wed, 21 Oct 2020 14:42:22 +0000 (16:42 +0200)]
patch 8.2.1879: Vim9: argument types of insert() not checked when compiling

Problem:    Vim9: argument types of insert() not checked when compiling.
Solution:   Add argument type checks for insert().

4 years agopatch 8.2.1878: GTK: error for redefining function v8.2.1878
Bram Moolenaar [Wed, 21 Oct 2020 14:10:21 +0000 (16:10 +0200)]
patch 8.2.1878: GTK: error for redefining function

Problem:    GTK: error for redefining function. (Tony Mechelynck)
Solution:   Remove "gtk_" prefix from local functions and prepend "gui_" to
            global functions.

4 years agopatch 8.2.1877: test for function list fails v8.2.1877
Bram Moolenaar [Wed, 21 Oct 2020 12:49:08 +0000 (14:49 +0200)]
patch 8.2.1877: test for function list fails

Problem:    Test for function list fails.
Solution:   Move "obsolete" comments one line up.

4 years agopatch 8.2.1876: Vim9: argument types are not checked at compile time v8.2.1876
Bram Moolenaar [Wed, 21 Oct 2020 12:25:07 +0000 (14:25 +0200)]
patch 8.2.1876: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types for builtin functions are not checked at
            compile time.
Solution:   Add an argument type checking mechanism. Implement type checks for
            one function.

4 years agopatch 8.2.1875: warning when building GTK gui v8.2.1875
Bram Moolenaar [Wed, 21 Oct 2020 10:38:00 +0000 (12:38 +0200)]
patch 8.2.1875: warning when building GTK gui

Problem:    Warning when building GTK gui.
Solution:   Add missing function parameter.

4 years agopatch 8.2.1874: can't do something just before leaving Insert mode v8.2.1874
Bram Moolenaar [Wed, 21 Oct 2020 10:19:53 +0000 (12:19 +0200)]
patch 8.2.1874: can't do something just before leaving Insert mode

Problem:    Can't do something just before leaving Insert mode.
Solution:   Add the InsertLeavePre autocommand event. (closes #7177)

4 years agopatch 8.2.1873: Vim9: missing white space when using <f-args> v8.2.1873
Bram Moolenaar [Tue, 20 Oct 2020 21:11:33 +0000 (23:11 +0200)]
patch 8.2.1873: Vim9: missing white space when using <f-args>

Problem:    Vim9: missing white space when using <f-args>.
Solution:   Add spaces. (Christian J. Robinson)

4 years agopatch 8.2.1872: matchfuzzy() does not prefer sequential matches v8.2.1872
Bram Moolenaar [Tue, 20 Oct 2020 17:01:30 +0000 (19:01 +0200)]
patch 8.2.1872: matchfuzzy() does not prefer sequential matches

Problem:    Matchfuzzy() does not prefer sequential matches.
Solution:   Give sequential matches a higher bonus. (Christian Brabandt,
            closes #7140)

4 years agopatch 8.2.1871: using %v in 'errorformat' may fail before %Z v8.2.1871
Bram Moolenaar [Tue, 20 Oct 2020 12:59:12 +0000 (14:59 +0200)]
patch 8.2.1871: using %v in 'errorformat' may fail before %Z

Problem:    Using %v in 'errorformat' may fail before %Z.
Solution:   Set qf_viscol only when qf_col is set. (closes #7169)

4 years agopatch 8.2.1870: Vim9: no need to keep all script variables v8.2.1870
Bram Moolenaar [Tue, 20 Oct 2020 12:25:07 +0000 (14:25 +0200)]
patch 8.2.1870: Vim9: no need to keep all script variables

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.

4 years agopatch 8.2.1869: Vim9: memory leak when using add() v8.2.1869
Bram Moolenaar [Mon, 19 Oct 2020 21:01:46 +0000 (23:01 +0200)]
patch 8.2.1869: Vim9: memory leak when using add()

Problem:    Vim9: memory leak when using add().
Solution:   Free the added item.

4 years agopatch 8.2.1868: Vim9: no error for missing space after comma in dict v8.2.1868
Bram Moolenaar [Mon, 19 Oct 2020 19:45:07 +0000 (21:45 +0200)]
patch 8.2.1868: Vim9: no error for missing space after comma in dict

Problem:    Vim9: no error for missing space after comma in dict.
Solution:   Check for white space. (closes #6672)

4 years agopatch 8.2.1867: Vim9: argument to add() not checked for blob v8.2.1867
Bram Moolenaar [Mon, 19 Oct 2020 18:45:36 +0000 (20:45 +0200)]
patch 8.2.1867: Vim9: argument to add() not checked for blob

Problem:    Vim9: argument to add() not checked for blob.
Solution:   Add the BLOBAPPEND instruction.

4 years agopatch 8.2.1866: Vim9: appending to pushed blob gives wrong result v8.2.1866
Bram Moolenaar [Mon, 19 Oct 2020 18:21:03 +0000 (20:21 +0200)]
patch 8.2.1866: Vim9: appending to pushed blob gives wrong result

Problem:    Vim9: appending to pushed blob gives wrong result.
Solution:   Set ga_maxlen when copying a blob.

4 years agopatch 8.2.1865: Vim9: add() does not check type of argument v8.2.1865
Bram Moolenaar [Mon, 19 Oct 2020 17:02:42 +0000 (19:02 +0200)]
patch 8.2.1865: Vim9: add() does not check type of argument

Problem:    Vim9: add() does not check type of argument.
Solution:   Inline the add() call. (closes #7160)

4 years agopatch 8.2.1864: Vim9: no error for wrong list type v8.2.1864
Bram Moolenaar [Mon, 19 Oct 2020 14:07:42 +0000 (16:07 +0200)]
patch 8.2.1864: Vim9: no error for wrong list type

Problem:    Vim9: no error for wrong list type.
Solution:   Add flag to indicate a constant. (closes #7160)

4 years agopatch 8.2.1863: json code not sufficiently tested v8.2.1863
Bram Moolenaar [Mon, 19 Oct 2020 11:12:33 +0000 (13:12 +0200)]
patch 8.2.1863: json code not sufficiently tested

Problem:    Json code not sufficiently tested.
Solution:   Add more test cases. (Dominique Pellé, closes #7166)

4 years agopatch 8.2.1862: vim9: memory leak when compiling lambda fails v8.2.1862
Bram Moolenaar [Sun, 18 Oct 2020 21:32:13 +0000 (23:32 +0200)]
patch 8.2.1862: vim9: memory leak when compiling lambda fails

Problem:    vim9: memory leak when compiling lambda fails.
Solution:   Call clear_evalarg().

4 years agopatch 8.2.1861: Vim9: no specific error when parsing lambda fails v8.2.1861
Bram Moolenaar [Sun, 18 Oct 2020 16:03:17 +0000 (18:03 +0200)]
patch 8.2.1861: Vim9: no specific error when parsing lambda fails

Problem:    Vim9: no specific error when parsing lambda fails.
Solution:   Also give syntax errors when not evaluating. (closes #7154)

4 years agopatch 8.2.1860: Vim9: memory leak when throwing empty string v8.2.1860
Bram Moolenaar [Sat, 17 Oct 2020 20:58:21 +0000 (22:58 +0200)]
patch 8.2.1860: Vim9: memory leak when throwing empty string

Problem:    Vim9: memory leak when throwing empty string.
Solution:   Free the empty string.

4 years agopatch 8.2.1859: Vim9: crash in unpack assignment v8.2.1859
Bram Moolenaar [Sat, 17 Oct 2020 20:04:08 +0000 (22:04 +0200)]
patch 8.2.1859: Vim9: crash in unpack assignment

Problem:    Vim9: crash in unpack assignment.
Solution:   Make sure an error message is turned into an exception.
            (closes #7159)

4 years agopatch 8.2.1858: Vim9: filter functions return number instead of bool v8.2.1858
Bram Moolenaar [Sat, 17 Oct 2020 17:29:51 +0000 (19:29 +0200)]
patch 8.2.1858: Vim9: filter functions return number instead of bool

Problem:    Vim9: filter functions return number instead of bool.
Solution:   Return v:true instead of one. (closes #7144)

4 years agopatch 8.2.1857: Vim9: using job_status() on an unused var gives an error v8.2.1857
Bram Moolenaar [Sat, 17 Oct 2020 16:51:52 +0000 (18:51 +0200)]
patch 8.2.1857: Vim9: using job_status() on an unused var gives an error

Problem:    Vim9: using job_status() on an unused var gives an error.
Solution:   Return "fail". (closes #7158)

4 years agopatch 8.2.1856: "2resize" uses size of current window v8.2.1856
Bram Moolenaar [Sat, 17 Oct 2020 15:39:55 +0000 (17:39 +0200)]
patch 8.2.1856: "2resize" uses size of current window

Problem:    "2resize" uses size of current window.
Solution:   Use size of resized window. (Yasuhiro Matsumoto, closes #7152)

4 years agopatch 8.2.1855: Vim9: get error message when nothing is wrong v8.2.1855
Bram Moolenaar [Fri, 16 Oct 2020 21:16:47 +0000 (23:16 +0200)]
patch 8.2.1855: Vim9: get error message when nothing is wrong

Problem:    Vim9: get error message when nothing is wrong.
Solution:   Check called_emsg instead of did_emsg. (closes #7143)

4 years agopatch 8.2.1854: Vim9: crash when throwing exception for NULL string v8.2.1854
Bram Moolenaar [Fri, 16 Oct 2020 18:25:23 +0000 (20:25 +0200)]
patch 8.2.1854: Vim9: crash when throwing exception for NULL string

Problem:    Vim9: crash when throwing exception for NULL string. (Dhiraj
            Mishra)
Solution:   Handle NULL string like empty string. (closes #7139)

4 years agopatch 8.2.1853: "to_f" is recognized at "topleft" modifier v8.2.1853
Bram Moolenaar [Fri, 16 Oct 2020 17:56:12 +0000 (19:56 +0200)]
patch 8.2.1853: "to_f" is recognized at "topleft" modifier

Problem:    "to_f" is recognized at "topleft" modifier.
Solution:   Do not recognize modifer when "_" follows. (closes #7019)

4 years agopatch 8.2.1852: map() returing zero for NULL list is unexpected v8.2.1852
Bram Moolenaar [Thu, 15 Oct 2020 20:29:17 +0000 (22:29 +0200)]
patch 8.2.1852: map() returing zero for NULL list is unexpected

Problem:    map() returing zero for NULL list is unexpected.
Solution:   Return the empty list. (closes #7133)

4 years agopatch 8.2.1851: Vim9: "!" followed by space incorrectly used v8.2.1851
Bram Moolenaar [Thu, 15 Oct 2020 19:54:56 +0000 (21:54 +0200)]
patch 8.2.1851: Vim9: "!" followed by space incorrectly used

Problem:    Vim9: "!" followed by space incorrectly used.
Solution:   Skip over trailing spaces. (closes #7131)

4 years agopatch 8.2.1850: "vat" does not select tags correctly over line break v8.2.1850
Bram Moolenaar [Thu, 15 Oct 2020 19:23:28 +0000 (21:23 +0200)]
patch 8.2.1850: "vat" does not select tags correctly over line break

Problem:    "vat" does not select tags correctly over line break.
Solution:   Adjust the search pattern. (Aufar Gilbran, closes #7136)

4 years agopatch 8.2.1849: Vim9: garbage collection frees block-local variables v8.2.1849
Bram Moolenaar [Thu, 15 Oct 2020 18:42:20 +0000 (20:42 +0200)]
patch 8.2.1849: Vim9: garbage collection frees block-local variables

Problem:    Vim9: garbage collection frees block-local variables.
Solution:   Mark all script variables as used.

4 years agopatch 8.2.1848: crash when passing a NULL string or list to popup_settext() v8.2.1848
Bram Moolenaar [Thu, 15 Oct 2020 17:10:56 +0000 (19:10 +0200)]
patch 8.2.1848: crash when passing a NULL string or list to popup_settext()

Problem:    Crashyyyyy passing a NULL string or list to popup_settext().
Solution:   Check for NULL pointers. (closes #7132)

4 years agopatch 8.2.1847: Vim9: using negative value for unsigned type v8.2.1847
Bram Moolenaar [Thu, 15 Oct 2020 11:57:56 +0000 (13:57 +0200)]
patch 8.2.1847: Vim9: using negative value for unsigned type

Problem:    Vim9: using negative value for unsigned type.
Solution:   Use zero instead of -1.

4 years agopatch 8.2.1846: Vim9: block variables are not found in compiled function v8.2.1846
Bram Moolenaar [Thu, 15 Oct 2020 10:46:44 +0000 (12:46 +0200)]
patch 8.2.1846: Vim9: block variables are not found in compiled function

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.

4 years agopatch 8.2.1845: Vim9: function defined in a block can't use block variables v8.2.1845
Bram Moolenaar [Wed, 14 Oct 2020 17:39:19 +0000 (19:39 +0200)]
patch 8.2.1845: Vim9: function defined in a block can't use block variables

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.

4 years agopatch 8.2.1844: using "q" at the more prompt doesn't stop a long message v8.2.1844
Bram Moolenaar [Tue, 13 Oct 2020 20:15:56 +0000 (22:15 +0200)]
patch 8.2.1844: using "q" at the more prompt doesn't stop a long message

Problem:    Using "q" at the more prompt doesn't stop a long message.
Solution:   Check for "got_int". (closes #7122)

4 years agopatch 8.2.1843: Netbeans: with huge buffer number memory allocation may fail v8.2.1843
Bram Moolenaar [Tue, 13 Oct 2020 19:11:13 +0000 (21:11 +0200)]
patch 8.2.1843: Netbeans: with huge buffer number memory allocation may fail

Problem:    Netbeans: with huge buffer number memory allocation may fail.
Solution:   Check for size overflow.

4 years agopatch 8.2.1842: crash when USE_FNAME_CASE is defined and using :browse v8.2.1842
Bram Moolenaar [Tue, 13 Oct 2020 17:08:24 +0000 (19:08 +0200)]
patch 8.2.1842: crash when USE_FNAME_CASE is defined and using :browse

Problem:    Crash when USE_FNAME_CASE is defined and using :browse.
Solution:   Don't use read-only memory for ".". (Yegappan Lakshmanan,
            closes #7123)

4 years agopatch 8.2.1841: Vim9: test for compilation error fails in normal build v8.2.1841
Bram Moolenaar [Tue, 13 Oct 2020 16:38:11 +0000 (18:38 +0200)]
patch 8.2.1841: Vim9: test for compilation error fails in normal build

Problem:    Vim9: test for compilation error fails in normal build.
Solution:   Invoke CheckRunVimInTerminal in a separate function.

4 years agopatch 8.2.1840: Vim9: error message is not clear about compilation error v8.2.1840
Bram Moolenaar [Mon, 12 Oct 2020 20:07:13 +0000 (22:07 +0200)]
patch 8.2.1840: Vim9: error message is not clear about compilation error

Problem:    Vim9: error message is not clear about compilation error.
Solution:   Say "compiling" instead of "processing".

4 years agopatch 8.2.1839: Vim9: memory leaks reported in assign test v8.2.1839
Bram Moolenaar [Mon, 12 Oct 2020 18:31:26 +0000 (20:31 +0200)]
patch 8.2.1839: Vim9: memory leaks reported in assign test

Problem:    Vim9: memory leaks reported in assign test.
Solution:   Move the failing job_start() call to separate test files, it
            causes false leak reports.

4 years agopatch 8.2.1838: Vim9: cannot insert a comment line in an expression v8.2.1838
Bram Moolenaar [Sun, 11 Oct 2020 19:34:41 +0000 (21:34 +0200)]
patch 8.2.1838: Vim9: cannot insert a comment line in an expression

Problem:    Vim9: cannot insert a comment line in an expression.
Solution:   Skip comment lines at the script level. (closes #7111)

4 years agopatch 8.2.1837: using "gn" after "gN" does not work v8.2.1837
Bram Moolenaar [Sun, 11 Oct 2020 18:44:15 +0000 (20:44 +0200)]
patch 8.2.1837: using "gn" after "gN" does not work

Problem:    Using "gn" after "gN" does not work.
Solution:   Extend the other end of the Visual area. (closes #7109)

4 years agopatch 8.2.1836: autocmd test fails on pacifist systems v8.2.1836
Bram Moolenaar [Sun, 11 Oct 2020 18:08:44 +0000 (20:08 +0200)]
patch 8.2.1836: autocmd test fails on pacifist systems

Problem:    Autocmd test fails on pacifist systems.
Solution:   Check that /bin/kill exists. (James McCoy, closes #7117)
            Tune the timing, make the autocmd test run faster.

4 years agopatch 8.2.1835: ":help ??" finds the "!!" tag v8.2.1835
Bram Moolenaar [Sun, 11 Oct 2020 17:08:33 +0000 (19:08 +0200)]
patch 8.2.1835: ":help ??" finds the "!!" tag

Problem:    ":help ??" finds the "!!" tag.
Solution:   Do not translate "?" into ".".  (Naruhiko Nishino, closes #7114,
            closes #7115)

4 years agopatch 8.2.1834: PyEval_InitThreads() is deprecated in Python 3.9 v8.2.1834
Bram Moolenaar [Sun, 11 Oct 2020 16:05:02 +0000 (18:05 +0200)]
patch 8.2.1834: PyEval_InitThreads() is deprecated in Python 3.9

Problem:    PyEval_InitThreads() is deprecated in Python 3.9.
Solution:   Do not call PyEval_InitThreads in Python 3.9 and later. (Ken
            Takata, closes #7113)  Avoid warnings for functions.

4 years agopatch 8.2.1833: when reading from stdin dup() is called twice v8.2.1833
Bram Moolenaar [Sun, 11 Oct 2020 12:58:46 +0000 (14:58 +0200)]
patch 8.2.1833: when reading from stdin dup() is called twice

Problem:    When reading from stdin dup() is called twice.
Solution:   Remove the dup() in main.c. (Ken Takata, closes #7110)

4 years agopatch 8.2.1832: readdirex() error is displayed as a message v8.2.1832
Bram Moolenaar [Sun, 11 Oct 2020 12:28:11 +0000 (14:28 +0200)]
patch 8.2.1832: readdirex() error is displayed as a message

Problem:    readdirex() error is displayed as a message. (Yegappan Lakshmanan)
Solution:   Use semsg() instead of smsg().

4 years agopatch 8.2.1831: file missing from distribution v8.2.1831
Bram Moolenaar [Sun, 11 Oct 2020 12:22:22 +0000 (14:22 +0200)]
patch 8.2.1831: file missing from distribution

Problem:    File missing from distribution.
Solution:   Add the github code analyses file.

4 years agoUpdate runtime files.
Bram Moolenaar [Sun, 11 Oct 2020 11:57:40 +0000 (13:57 +0200)]
Update runtime files.

4 years agopatch 8.2.1830: MS-Windows: Python3 issue with stdin v8.2.1830
Bram Moolenaar [Sat, 10 Oct 2020 21:26:28 +0000 (23:26 +0200)]
patch 8.2.1830: MS-Windows: Python3 issue with stdin

Problem:    MS-Windows: Python3 issue with stdin.
Solution:   Check if stdin is readable. (Ken Takata, closes #7106)

4 years agopatch 8.2.1829: warnings when executing Github actions v8.2.1829
Bram Moolenaar [Sat, 10 Oct 2020 20:34:36 +0000 (22:34 +0200)]
patch 8.2.1829: warnings when executing Github actions

Problem:    Warnings when executing Github actions.
Solution:   Use another method to set environment variables. (Ken Takata,
            closes #7107)

4 years agopatch 8.2.1828: build failure without the +eval feature v8.2.1828
Bram Moolenaar [Sat, 10 Oct 2020 20:26:52 +0000 (22:26 +0200)]
patch 8.2.1828: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Add dummys for ex_block and ex_endblock.

4 years agopatch 8.2.1827: filetype detection does not test enough file names v8.2.1827
Bram Moolenaar [Sat, 10 Oct 2020 19:50:25 +0000 (21:50 +0200)]
patch 8.2.1827: filetype detection does not test enough file names

Problem:    Filetype detection does not test enough file names.
Solution:   Test more file names. (Adam Stankiewicz, closes #7099)

4 years agopatch 8.2.1826: Vim9: cannot use a {} block at script level v8.2.1826
Bram Moolenaar [Sat, 10 Oct 2020 19:33:48 +0000 (21:33 +0200)]
patch 8.2.1826: Vim9: cannot use a {} block at script level

Problem:    Vim9: cannot use a {} block at script level.
Solution:   Recognize a {} block.

4 years agopatch 8.2.1825: Vim9: accessing freed memory v8.2.1825
Bram Moolenaar [Sat, 10 Oct 2020 18:31:37 +0000 (20:31 +0200)]
patch 8.2.1825: Vim9: accessing freed memory

Problem:    Vim9: accessing freed memory.
Solution:   Clear sv_name when the variable is deleted.

4 years agopatch 8.2.1824: Vim9: variables at the script level escape their scope v8.2.1824
Bram Moolenaar [Sat, 10 Oct 2020 17:07:09 +0000 (19:07 +0200)]
patch 8.2.1824: Vim9: variables at the script level escape their scope

Problem:    Vim9: variables at the script level escape their scope.
Solution:   When leaving a scope remove variables declared in it.

4 years agopatch 8.2.1823: "gN" does not select the matched string v8.2.1823
Bram Moolenaar [Sat, 10 Oct 2020 14:45:25 +0000 (16:45 +0200)]
patch 8.2.1823: "gN" does not select the matched string

Problem:    "gN" does not select the matched string.
Solution:   Move the cursor to the start of the match.

4 years agopatch 8.2.1822: list test doesn't fail v8.2.1822
Bram Moolenaar [Sat, 10 Oct 2020 14:42:39 +0000 (16:42 +0200)]
patch 8.2.1822: list test doesn't fail

Problem:    List test doesn't fail.
Solution:   Adjust the test for NULL list handling.

4 years agopatch 8.2.1821: Vim9: concatenating to a NULL list doesn't work v8.2.1821
Bram Moolenaar [Sat, 10 Oct 2020 13:37:58 +0000 (15:37 +0200)]
patch 8.2.1821: Vim9: concatenating to a NULL list doesn't work

Problem:    Vim9: concatenating to a NULL list doesn't work.
Solution:   Handle a NULL list like an empty list. (closes #7064)

4 years agopatch 8.2.1820: Vim9: crash when error happens in timer callback v8.2.1820
Bram Moolenaar [Sat, 10 Oct 2020 13:05:23 +0000 (15:05 +0200)]
patch 8.2.1820: Vim9: crash when error happens in timer callback

Problem:    Vim9: crash when error happens in timer callback.
Solution:   Check that current_exception is not NULL. (closes #7100)

4 years agopatch 8.2.1819: Vim9: Memory leak when using a closure v8.2.1819
Bram Moolenaar [Sat, 10 Oct 2020 12:13:01 +0000 (14:13 +0200)]
patch 8.2.1819: Vim9: Memory leak when using a closure

Problem:    Vim9: Memory leak when using a closure.
Solution:   Compute the mininal refcount in the funcstack.  Reenable disabled
            tests.

4 years agopatch 8.2.1818: SE Linux: deprecation warning for security_context_t v8.2.1818
Bram Moolenaar [Fri, 9 Oct 2020 21:04:47 +0000 (23:04 +0200)]
patch 8.2.1818: SE Linux: deprecation warning for security_context_t

Problem:    SE Linux: deprecation warning for security_context_t.
Solution:   Use "char *" instead. (James McCoy, closes #7093)

4 years agopatch 8.2.1817: Vim9: wrong instruction when reusing a local variable spot v8.2.1817
Bram Moolenaar [Fri, 9 Oct 2020 20:04:29 +0000 (22:04 +0200)]
patch 8.2.1817: Vim9: wrong instruction when reusing a local variable spot

Problem:    Vim9: wrong instruction when reusing a local variable spot.
Solution:   Clear a newly allocated local variable. (closes #7080)

4 years agopatch 8.2.1816: Vim9: another memory leak when using function reference v8.2.1816
Bram Moolenaar [Fri, 9 Oct 2020 08:20:53 +0000 (10:20 +0200)]
patch 8.2.1816: Vim9: another memory leak when using function reference

Problem:    Vim9: another memory leak when using function reference.
Solution:   Temporarily disable the tests.

4 years agopatch 8.2.1815: Vim9: memory leak when using function reference v8.2.1815
Bram Moolenaar [Thu, 8 Oct 2020 21:21:21 +0000 (23:21 +0200)]
patch 8.2.1815: Vim9: memory leak when using function reference

Problem:    Vim9: memory leak when using function reference.
Solution:   Temporarily disable the test.

4 years agopatch 8.2.1814: missing change to remove "static" v8.2.1814
Bram Moolenaar [Thu, 8 Oct 2020 19:30:40 +0000 (21:30 +0200)]
patch 8.2.1814: missing change to remove "static"

Problem:    Missing change to remove "static".
Solution:   Add the change.

4 years agopatch 8.2.1813: Vim9: can assign wrong type to script dict v8.2.1813
Bram Moolenaar [Thu, 8 Oct 2020 19:16:42 +0000 (21:16 +0200)]
patch 8.2.1813: Vim9: can assign wrong type to script dict

Problem:    Vim9: can assign wrong type to script dict. (Christian J.  Robinson)
Solution:   Check the type if known.