]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1426: Vim9: cannot call autoload function in :def function v8.2.1426
Bram Moolenaar [Wed, 12 Aug 2020 13:21:22 +0000 (15:21 +0200)]
patch 8.2.1426: Vim9: cannot call autoload function in :def function

Problem:    Vim9: cannot call autoload function in :def function.
Solution:   Load the autoload script. (closes #6690)

4 years agopatch 8.2.1425: Vim9: cannot use call() without :call v8.2.1425
Bram Moolenaar [Wed, 12 Aug 2020 12:21:11 +0000 (14:21 +0200)]
patch 8.2.1425: Vim9: cannot use call() without :call

Problem:    Vim9: cannot use call() without :call.
Solution:   Do not skip over "call(". (closes #6689)

4 years agopatch 8.2.1424: Mac build fails v8.2.1424
Bram Moolenaar [Tue, 11 Aug 2020 21:08:48 +0000 (23:08 +0200)]
patch 8.2.1424: Mac build fails

Problem:    Mac build fails.
Solution:   Adjust configure to not fall back to Athena.  Adjust some other
            files.

4 years agopatch 8.2.1423: Vim9: find global function when looking for script-local v8.2.1423
Bram Moolenaar [Tue, 11 Aug 2020 20:30:42 +0000 (22:30 +0200)]
patch 8.2.1423: Vim9: find global function when looking for script-local

Problem:    Vim9: find global function when looking for script-local.
Solution:   Don't strip prefix if name starts with "s:". (closes #6688)

4 years agopatch 8.2.1422: the Mac GUI implementation is outdated v8.2.1422
Bram Moolenaar [Tue, 11 Aug 2020 19:58:20 +0000 (21:58 +0200)]
patch 8.2.1422: the Mac GUI implementation is outdated

Problem:    The Mac GUI implementation is outdated and probably doesn't even
            work.
Solution:   Remove the Mac GUI code.  The MacVim project provides the
            supported Vim GUI version.

4 years agopatch 8.2.1421: Vim9: handling "+" and "-" before number differs from script v8.2.1421
Bram Moolenaar [Tue, 11 Aug 2020 18:51:08 +0000 (20:51 +0200)]
patch 8.2.1421: Vim9: handling "+" and "-" before number differs from script

Problem:    Vim9: handling "+" and "-" before number differs from Vim script.
Solution:   Use the same sequence of commands.

4 years agopatch 8.2.1420: test 49 is old style v8.2.1420
Bram Moolenaar [Tue, 11 Aug 2020 18:42:19 +0000 (20:42 +0200)]
patch 8.2.1420: test 49 is old style

Problem:    Test 49 is old style.
Solution:   Convert remaining parts to new style. Remove obsolete items.
            (Yegappan Lakshmanan, closes #6683)

4 years agopatch 8.2.1419: Vim9: not operator applied too early v8.2.1419
Bram Moolenaar [Mon, 10 Aug 2020 21:09:37 +0000 (23:09 +0200)]
patch 8.2.1419: Vim9: not operator applied too early

Problem:    Vim9: not operator applied too early.
Solution:   Implement the "numeric_only" argument. (closes #6680)

4 years agopatch 8.2.1418: Vim9: invalid error for missing white space v8.2.1418
Bram Moolenaar [Mon, 10 Aug 2020 20:40:56 +0000 (22:40 +0200)]
patch 8.2.1418: Vim9: invalid error for missing white space

Problem:    Vim9: invalid error for missing white space after function.
Solution:   Do not skip over white space. (closes #6679)

4 years agopatch 8.2.1417: test 49 is old style v8.2.1417
Bram Moolenaar [Mon, 10 Aug 2020 20:15:30 +0000 (22:15 +0200)]
patch 8.2.1417: test 49 is old style

Problem:    Test 49 is old style.
Solution:   Convert more parts to new style test. (Yegappan Lakshmanan,
            closes #6682)

4 years agopatch 8.2.1416: Vim9: boolean evaluation does not work as intended v8.2.1416
Bram Moolenaar [Mon, 10 Aug 2020 19:57:54 +0000 (21:57 +0200)]
patch 8.2.1416: Vim9: boolean evaluation does not work as intended

Problem:    Vim9: boolean evaluation does not work as intended.
Solution:   Use tv2bool() in Vim9 script. (closes #6681)

4 years agopatch 8.2.1415: closing a popup window with CTRL-C interrupts 'statusline' v8.2.1415
Bram Moolenaar [Mon, 10 Aug 2020 19:19:23 +0000 (21:19 +0200)]
patch 8.2.1415: closing a popup window with CTRL-C interrupts 'statusline'

Problem:    Closing a popup window with CTRL-C interrupts 'statusline' if it
            calls a function.
Solution:   Reset got_int while redrawing. (closes #6675)

4 years agopatch 8.2.1414: popupwindow missing last couple of lines v8.2.1414
Bram Moolenaar [Mon, 10 Aug 2020 18:39:17 +0000 (20:39 +0200)]
patch 8.2.1414: popupwindow missing last couple of lines

Problem:    Popupwindow missing last couple of lines when cursor is in the
            first line.
Solution:   Compute the max height also when top aligned. (closes #6664)

4 years agopatch 8.2.1413: previous tab page not usable from an Ex command v8.2.1413
Bram Moolenaar [Mon, 10 Aug 2020 17:21:15 +0000 (19:21 +0200)]
patch 8.2.1413: previous tab page not usable from an Ex command

Problem:    Previous tab page not usable from an Ex command.
Solution:   Add the "#" argument for :tabnext et al. (Yegappan Lakshmanan,
            closes #6677)

4 years agopatch 8.2.1412: Vim: not operator does not result in boolean v8.2.1412
Bram Moolenaar [Sun, 9 Aug 2020 20:17:55 +0000 (22:17 +0200)]
patch 8.2.1412: Vim: not operator does not result in boolean

Problem:    Vim: not operator does not result in boolean.
Solution:   Make type depend on operator. (issue 6678)  Fix using "false" and
            "true" in Vim9 script.

4 years agopatch 8.2.1411: when splitting a window localdir is copied but prevdir is not v8.2.1411
Bram Moolenaar [Sun, 9 Aug 2020 19:45:52 +0000 (21:45 +0200)]
patch 8.2.1411: when splitting a window localdir is copied but prevdir is not

Problem:    when splitting a window localdir is copied but prevdir is not.
Solution:   Also copy prevdir. (closes #6667)

4 years agopatch 8.2.1410: adding compiler plugin requires test change v8.2.1410
Bram Moolenaar [Sun, 9 Aug 2020 18:05:41 +0000 (20:05 +0200)]
patch 8.2.1410: adding compiler plugin requires test change

Problem:    Adding compiler plugin requires test change.
Solution:   Include compiler plugin and adjust test.

4 years agopatch 8.2.1409: nmpmrc and php.ini filetypes not recognized v8.2.1409
Bram Moolenaar [Sun, 9 Aug 2020 17:32:39 +0000 (19:32 +0200)]
patch 8.2.1409: nmpmrc and php.ini filetypes not recognized

Problem:    Nmpmrc and php.ini filetypes not recognized.
Solution:   Add filetype detection. (Doug Kearns)

4 years agopatch 8.2.1408: Vim9: type casting not supported v8.2.1408
Bram Moolenaar [Sun, 9 Aug 2020 17:02:50 +0000 (19:02 +0200)]
patch 8.2.1408: Vim9: type casting not supported

Problem:    Vim9: type casting not supported.
Solution:   Introduce type casting.

4 years agopatch 8.2.1407: Vim9: type of list and dict only depends on first item v8.2.1407
Bram Moolenaar [Sun, 9 Aug 2020 15:22:04 +0000 (17:22 +0200)]
patch 8.2.1407: Vim9: type of list and dict only depends on first item

Problem:    Vim9: type of list and dict only depends on first item.
Solution:   Use all items to decide about the type.

4 years agopatch 8.2.1406: popupwindow lacks scrollbar if no "maxheight" is used v8.2.1406
Bram Moolenaar [Sun, 9 Aug 2020 14:37:48 +0000 (16:37 +0200)]
patch 8.2.1406: popupwindow lacks scrollbar if no "maxheight" is used

Problem:    Popupwindow lacks scrollbar if no "maxheight" is used.
Solution:   Compute the max height depending on the position. (closes #6664)

4 years agopatch 8.2.1405: Vim9: vim9compile.c is getting too big v8.2.1405
Bram Moolenaar [Sun, 9 Aug 2020 13:25:14 +0000 (15:25 +0200)]
patch 8.2.1405: Vim9: vim9compile.c is getting too big

Problem:    Vim9: vim9compile.c is getting too big.
Solution:   Split off type code to vim9type.c.

4 years agopatch 8.2.1404: Vim9: script test fails in the GUI v8.2.1404
Bram Moolenaar [Sun, 9 Aug 2020 12:43:58 +0000 (14:43 +0200)]
patch 8.2.1404: Vim9: script test fails in the GUI

Problem:    Vim9: script test fails in the GUI.
Solution:   Use another key to map.  Improve cleanup.

4 years agopatch 8.2.1403: Vim9: Vim highlighting may fail in cmdline window v8.2.1403
Bram Moolenaar [Sun, 9 Aug 2020 12:33:55 +0000 (14:33 +0200)]
patch 8.2.1403: Vim9: Vim highlighting may fail in cmdline window

Problem:    Vim9: Vim highlighting fails in cmdline window if it uses Vim9
            commands.
Solution:   Allow using :vim9script, :import and :export while in the cmdline
            window. (closes #6656)

4 years agopatch 8.2.1402: s390x tests always fail v8.2.1402
Bram Moolenaar [Sun, 9 Aug 2020 12:07:52 +0000 (14:07 +0200)]
patch 8.2.1402: s390x tests always fail

Problem:    s390x tests always fail.
Solution:   Temporarily disable s390x tests.

4 years agopatch 8.2.1401: cannot jump to the last used tabpage v8.2.1401
Bram Moolenaar [Sun, 9 Aug 2020 12:04:42 +0000 (14:04 +0200)]
patch 8.2.1401: cannot jump to the last used tabpage

Problem:    Cannot jump to the last used tabpage.
Solution:   Add g<Tab> and tabpagnr('#'). (Yegappan Lakshmanan, closes #6661,
            neovim #11626)

4 years agopatch 8.2.1400: Vim9: test does not delete written files v8.2.1400
Bram Moolenaar [Sun, 9 Aug 2020 11:02:10 +0000 (13:02 +0200)]
patch 8.2.1400: Vim9: test does not delete written files

Problem:    Vim9: test does not delete written files.
Solution:   Correct file names.

4 years agopatch 8.2.1399: Vim9: may find imported item in wrong script v8.2.1399
Bram Moolenaar [Sat, 8 Aug 2020 20:16:00 +0000 (22:16 +0200)]
patch 8.2.1399: Vim9: may find imported item in wrong script

Problem:    Vim9: may find imported item in wrong script.
Solution:   When looking up script-local function use the embedded script ID.
            (issue #6644)

4 years agopatch 8.2.1398: autoload script sourced twice if sourced directly v8.2.1398
Bram Moolenaar [Sat, 8 Aug 2020 19:33:21 +0000 (21:33 +0200)]
patch 8.2.1398: autoload script sourced twice if sourced directly

Problem:    Autoload script sourced twice if sourced directly.
Solution:   Do not source an autoload script again. (issue #6644)

4 years agopatch 8.2.1397: Vim9: return type of maparg() not adjusted for fourth arg v8.2.1397
Bram Moolenaar [Sat, 8 Aug 2020 15:55:49 +0000 (17:55 +0200)]
patch 8.2.1397: Vim9: return type of maparg() not adjusted for fourth arg

Problem:    Vim9: return type of maparg() not adjusted for fourth argument.
Solution:   Check if fourth argument is present. (closes #6645)

4 years agopatch 8.2.1396: Vim9: no error for unexpectedly returning a value v8.2.1396
Bram Moolenaar [Sat, 8 Aug 2020 14:47:30 +0000 (16:47 +0200)]
patch 8.2.1396: Vim9: no error for unexpectedly returning a value

Problem:    Vim9: no error for unexpectedly returning a value.
Solution:   Only set the return type for lambda's.  Make using function type
            in a function reference work.

4 years agopatch 8.2.1395: Vim9: no error if declaring a funcref with lower case letter v8.2.1395
Bram Moolenaar [Sat, 8 Aug 2020 13:46:01 +0000 (15:46 +0200)]
patch 8.2.1395: Vim9: no error if declaring a funcref with lower case letter

Problem:    Vim9: no error if declaring a funcref with a lower case letter.
Solution:   Check the name after the type is inferred. Fix confusing name.

4 years agopatch 8.2.1394: Vim9: compiling a function interferes with command modifiers v8.2.1394
Bram Moolenaar [Sat, 8 Aug 2020 13:10:27 +0000 (15:10 +0200)]
patch 8.2.1394: Vim9: compiling a function interferes with command modifiers

Problem:    Vim9: compiling a function interferes with command modifiers.
Solution:   Save and restore command modifiers. (closes #6658)

4 years agopatch 8.2.1393: insufficient testing for script debugging v8.2.1393
Bram Moolenaar [Sat, 8 Aug 2020 12:41:52 +0000 (14:41 +0200)]
patch 8.2.1393: insufficient testing for script debugging

Problem:    Insufficient testing for script debugging.
Solution:   Add more tests. (Ben Jackson)

4 years agopatch 8.2.1392: Vim9: line number incorrect after skipping over comment lines v8.2.1392
Bram Moolenaar [Sat, 8 Aug 2020 12:26:31 +0000 (14:26 +0200)]
patch 8.2.1392: Vim9: line number incorrect after skipping over comment lines

Problem:    Vim9: error line number incorrect after skipping over comment
            lines.
Solution:   Insert empty lines for skipped lines.

4 years agopatch 8.2.1391: Vim9: no error for shadowing a script function v8.2.1391
Bram Moolenaar [Fri, 7 Aug 2020 20:00:26 +0000 (22:00 +0200)]
patch 8.2.1391: Vim9: no error for shadowing a script function

Problem:    Vim9: no error for shadowing a script function.
Solution:   Check for already defined items. (closes #6652)

4 years agopatch 8.2.1390: Vim9: type error after storing an option value v8.2.1390
Bram Moolenaar [Fri, 7 Aug 2020 19:28:34 +0000 (21:28 +0200)]
patch 8.2.1390: Vim9: type error after storing an option value

Problem:    Vim9: type error after storing an option value.
Solution:   Drop the type after a STOREOPT instruction. (closes #6632)

4 years agopatch 8.2.1389: file missing from the distribution v8.2.1389
Bram Moolenaar [Fri, 7 Aug 2020 18:47:39 +0000 (20:47 +0200)]
patch 8.2.1389: file missing from the distribution

Problem:    File missing from the distribution.
Solution:   Add script_util.vim to the list of distributes files.

4 years agopatch 8.2.1388: Vim9: += only works for numbers v8.2.1388
Bram Moolenaar [Fri, 7 Aug 2020 18:46:20 +0000 (20:46 +0200)]
patch 8.2.1388: Vim9: += only works for numbers

Problem:    Vim9: += only works for numbers.
Solution:   Use += as concatenate for a list. (closes #6646)

4 years agoUpdate runtime files.
Bram Moolenaar [Fri, 7 Aug 2020 17:54:59 +0000 (19:54 +0200)]
Update runtime files.

4 years agopatch 8.2.1387: Vim9: cannot assign to single letter variable with type v8.2.1387
Bram Moolenaar [Fri, 7 Aug 2020 17:28:08 +0000 (19:28 +0200)]
patch 8.2.1387: Vim9: cannot assign to single letter variable with type

Problem:    Vim9: cannot assign to single letter variable with type.
Solution:   Exclude the colon from the variable name. (closes #6647)

4 years agopatch 8.2.1386: backslash not removed afer space with space in 'isfname' v8.2.1386
Bram Moolenaar [Fri, 7 Aug 2020 17:12:41 +0000 (19:12 +0200)]
patch 8.2.1386: backslash not removed afer space with space in 'isfname'

Problem:    Backslash not removed afer space in option with space in
            'isfname'.
Solution:   Do remove backslash before space, also when it is in 'isfname'.
            (Yasuhiro Matsumoto, closes #6651)

4 years agopatch 8.2.1385: no testing on ARM v8.2.1385
Bram Moolenaar [Fri, 7 Aug 2020 16:33:19 +0000 (18:33 +0200)]
patch 8.2.1385: no testing on ARM

Problem:    No testing on ARM.
Solution:   Add a test on Travis for ARM. (Ozaki Kiichi, closes #6615)

4 years agopatch 8.2.1384: no ATTENTION prompt for :vimgrep first match file v8.2.1384
Bram Moolenaar [Fri, 7 Aug 2020 16:12:18 +0000 (18:12 +0200)]
patch 8.2.1384: no ATTENTION prompt for :vimgrep first match file

Problem:    No ATTENTION prompt for :vimgrep first match file.
Solution:   When there is an existing swap file do not keep the dummy buffer.
            (closes #6649)

4 years agopatch 8.2.1383: test 49 is old style v8.2.1383
Bram Moolenaar [Fri, 7 Aug 2020 14:49:11 +0000 (16:49 +0200)]
patch 8.2.1383: test 49 is old style

Problem:    Test 49 is old style.
Solution:   Convert test cases to new style. (Yegappan Lakshmanan,
            closes #6638)

4 years agopatch 8.2.1382: Vim9: using :import in filetype plugin gives an error v8.2.1382
Bram Moolenaar [Thu, 6 Aug 2020 20:11:06 +0000 (22:11 +0200)]
patch 8.2.1382: Vim9: using :import in filetype plugin gives an error

Problem:    Vim9: using :import in filetype plugin gives an error.
Solution:   Allow commands with the EX_LOCK_OK flag. (closes #6636)

4 years agopatch 8.2.1381: MS-Windows: crash with Python 3.5 when stdin is redirected v8.2.1381
Bram Moolenaar [Thu, 6 Aug 2020 19:47:11 +0000 (21:47 +0200)]
patch 8.2.1381: MS-Windows: crash with Python 3.5 when stdin is redirected

Problem:    MS-Windows: crash with Python 3.5 when stdin is redirected.
Solution:   Reconnect stdin. (Yasuhiro Matsumoto, Ken Takata, closes #6641)

4 years agopatch 8.2.1380: Vim9: return type of getreg() is always a string v8.2.1380
Bram Moolenaar [Thu, 6 Aug 2020 19:26:59 +0000 (21:26 +0200)]
patch 8.2.1380: Vim9: return type of getreg() is always a string

Problem:    Vim9: return type of getreg() is always a string.
Solution:   Use list of strings when there are three arguments. (closes #6633)

4 years agopatch 8.2.1379: curly braces expression ending in " }" does not work v8.2.1379
Bram Moolenaar [Thu, 6 Aug 2020 14:38:12 +0000 (16:38 +0200)]
patch 8.2.1379: curly braces expression ending in " }" does not work

Problem:    Curly braces expression ending in " }" does not work.
Solution:   Skip over white space when checking for "}". (closes #6634)

4 years agopatch 8.2.1378: cannot put space between function name and paren v8.2.1378
Bram Moolenaar [Thu, 6 Aug 2020 09:23:36 +0000 (11:23 +0200)]
patch 8.2.1378: cannot put space between function name and paren

Problem:    Cannot put space between function name and paren.
Solution:   Allow this for backwards compatibility.

4 years agopatch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up v8.2.1377
Bram Moolenaar [Wed, 5 Aug 2020 20:07:26 +0000 (22:07 +0200)]
patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up

Problem:    Triggering the ATTENTION prompt causes typeahead to be messed up.
Solution:   Increment tb_change_cnt. (closes #6541)

4 years agopatch 8.2.1376: Vim9: expression mapping causes error for using :import v8.2.1376
Bram Moolenaar [Wed, 5 Aug 2020 14:20:03 +0000 (16:20 +0200)]
patch 8.2.1376: Vim9: expression mapping causes error for using :import

Problem:    Vim9: expression mapping causes error for using :import.
Solution:   Add EX_LOCK_OK to :import and :export. (closes 3606)

4 years agopatch 8.2.1375: Vim9: method name with digit not accepted v8.2.1375
Bram Moolenaar [Wed, 5 Aug 2020 13:43:44 +0000 (15:43 +0200)]
patch 8.2.1375: Vim9: method name with digit not accepted

Problem:    Vim9: method name with digit not accepted.
Solution:   Use eval_isnamec() instead of eval_isnamec1(). (closes #6613)

4 years agopatch 8.2.1374: Vim9: error for assigning empty list to script variable v8.2.1374
Bram Moolenaar [Wed, 5 Aug 2020 13:11:03 +0000 (15:11 +0200)]
patch 8.2.1374: Vim9: error for assigning empty list to script variable

Problem:    Vim9: error for assigning empty list to script variable.
Solution:   Use t_unknown for empty list member. (closes #6595)

4 years agopatch 8.2.1373: Vim9: no error for assigning to non-existing script var v8.2.1373
Bram Moolenaar [Wed, 5 Aug 2020 12:34:14 +0000 (14:34 +0200)]
patch 8.2.1373: Vim9: no error for assigning to non-existing script var

Problem:    Vim9: no error for assigning to non-existing script var.
Solution:   Check that in Vim9 script the variable was defined. (closes #6630)

4 years agopatch 8.2.1372: Vim9: no error for missing white space around operator v8.2.1372
Bram Moolenaar [Wed, 5 Aug 2020 10:44:41 +0000 (12:44 +0200)]
patch 8.2.1372: Vim9: no error for missing white space around operator

Problem:    Vim9: no error for missing white space around operator.
Solution:   Check for white space around ? and :.

4 years agopatch 8.2.1371: Vim9: no error for missing white space around operator v8.2.1371
Bram Moolenaar [Wed, 5 Aug 2020 10:32:38 +0000 (12:32 +0200)]
patch 8.2.1371: Vim9: no error for missing white space around operator

Problem:    Vim9: no error for missing white space around operator.
Solution:   Check for white space around && and ||.

4 years agopatch 8.2.1370: MS-Windows: warning for using fstat() with stat_T v8.2.1370
Bram Moolenaar [Wed, 5 Aug 2020 10:10:50 +0000 (12:10 +0200)]
patch 8.2.1370: MS-Windows: warning for using fstat() with stat_T

Problem:    MS-Windows: warning for using fstat() with stat_T.
Solution:   use _fstat64() if available. (Naruhiko Nishino, closes #6625)

4 years agopatch 8.2.1369: MS-Windows: autocommand test sometimes fails v8.2.1369
Bram Moolenaar [Wed, 5 Aug 2020 10:02:40 +0000 (12:02 +0200)]
patch 8.2.1369: MS-Windows: autocommand test sometimes fails

Problem:    MS-Windows: autocommand test sometimes fails.
Solution:   Do not rely on the cat command.

4 years agopatch 8.2.1368: Vim9: no error for missing white space around operator v8.2.1368
Bram Moolenaar [Wed, 5 Aug 2020 09:51:30 +0000 (11:51 +0200)]
patch 8.2.1368: Vim9: no error for missing white space around operator

Problem:    Vim9: no error for missing white space around operator.
Solution:   Check for white space around <, !=, etc.

4 years agopatch 8.2.1367: Vim9: no error for missing white space around operator v8.2.1367
Bram Moolenaar [Wed, 5 Aug 2020 09:36:52 +0000 (11:36 +0200)]
patch 8.2.1367: Vim9: no error for missing white space around operator

Problem:    Vim9: no error for missing white space around operator.
Solution:   Check for white space around *, / and %.

4 years agopatch 8.2.1366: test 49 is old style v8.2.1366
Bram Moolenaar [Wed, 5 Aug 2020 09:23:13 +0000 (11:23 +0200)]
patch 8.2.1366: test 49 is old style

Problem:    Test 49 is old style.
Solution:   Convert several tests to new style. (Yegappan Lakshmanan,
            closes #6629)

4 years agopatch 8.2.1365: Vim9: no error for missing white space around operator v8.2.1365
Bram Moolenaar [Wed, 5 Aug 2020 08:53:21 +0000 (10:53 +0200)]
patch 8.2.1365: Vim9: no error for missing white space around operator

Problem:    Vim9: no error for missing white space around operator.
Solution:   Check for white space. (closes #6618)

4 years agopatch 8.2.1364: invalid memory access when searching for raw string v8.2.1364
Bram Moolenaar [Tue, 4 Aug 2020 19:46:18 +0000 (21:46 +0200)]
patch 8.2.1364: invalid memory access when searching for raw string

Problem:    Invalid memory access when searching for raw string.
Solution:   Check for delimiter match before following quote. (closes #6578)

4 years agopatch 8.2.1363: test trying to run terminal when it is not supported v8.2.1363
Bram Moolenaar [Tue, 4 Aug 2020 19:04:57 +0000 (21:04 +0200)]
patch 8.2.1363: test trying to run terminal when it is not supported

Problem:    Test trying to run terminal when it is not supported.
Solution:   Check if Vim can be run in a terminal.

4 years agopatch 8.2.1362: last entry of ":set term=xxx" overwritten by error message v8.2.1362
Bram Moolenaar [Tue, 4 Aug 2020 18:17:31 +0000 (20:17 +0200)]
patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message

Problem:    Last entry of ":set term=xxx" overwritten by error message when
            'cmdheight' is two or more. (Tony Mechelynck)
Solution:   Output extra line breaks.

4 years agopatch 8.2.1361: error for white space after expression in assignment v8.2.1361
Bram Moolenaar [Tue, 4 Aug 2020 13:53:01 +0000 (15:53 +0200)]
patch 8.2.1361: error for white space after expression in assignment

Problem:    Error for white space after expression in assignment.
Solution:   Skip over white space. (closes #6617)

4 years agopatch 8.2.1360: stray error for white space after expression v8.2.1360
Bram Moolenaar [Mon, 3 Aug 2020 20:39:28 +0000 (22:39 +0200)]
patch 8.2.1360: stray error for white space after expression

Problem:    Stray error for white space after expression.
Solution:   Ignore trailing white space. (closes #6608)

4 years agopatch 8.2.1359: Vim9: cannot assign to / register in Vim9 script v8.2.1359
Bram Moolenaar [Sun, 2 Aug 2020 18:40:43 +0000 (20:40 +0200)]
patch 8.2.1359: Vim9: cannot assign to / register in Vim9 script

Problem:    Vim9: cannot assign to / register in Vim9 script.
Solution:   Adjust check for assignment in Vim9 script. (closes #6567)

4 years agopatch 8.2.1358: Vim9: test fails with +dnd is not available v8.2.1358
Bram Moolenaar [Sun, 2 Aug 2020 18:03:25 +0000 (20:03 +0200)]
patch 8.2.1358: Vim9: test fails with +dnd is not available

Problem:    Vim9: test fails with +dnd is not available.
Solution:   Add condition.

4 years agopatch 8.2.1357: Vim9: cannot assign to / register v8.2.1357
Bram Moolenaar [Sun, 2 Aug 2020 16:58:54 +0000 (18:58 +0200)]
patch 8.2.1357: Vim9: cannot assign to / register

Problem:    Vim9: cannot assign to / register.
Solution:   Adjust check for assignment.

4 years agopatch 8.2.1356: Vim9: cannot get the percent register v8.2.1356
Bram Moolenaar [Sun, 2 Aug 2020 15:33:26 +0000 (17:33 +0200)]
patch 8.2.1356: Vim9: cannot get the percent register

Problem:    Vim9: cannot get the percent register.
Solution:   Check for readable registers instead of writable. (closes #6566)

4 years agopatch 8.2.1355: Vim9: no error using :let for options and registers v8.2.1355
Bram Moolenaar [Sun, 2 Aug 2020 14:59:00 +0000 (16:59 +0200)]
patch 8.2.1355: Vim9: no error using :let for options and registers

Problem:    Vim9: no error using :let for options and registers.
Solution:   Give an error. (closes #6568)

4 years agopatch 8.2.1354: test 59 is old style v8.2.1354
Bram Moolenaar [Sun, 2 Aug 2020 14:10:39 +0000 (16:10 +0200)]
patch 8.2.1354: test 59 is old style

Problem:    Test 59 is old style.
Solution:   Convert into a new style test. (Yegappan Lakshmanan, closes #6604)

4 years agopatch 8.2.1353: crash when drawing double-wide character in terminal window v8.2.1353
Bram Moolenaar [Sun, 2 Aug 2020 13:05:05 +0000 (15:05 +0200)]
patch 8.2.1353: crash when drawing double-wide character in terminal window

Problem:    Crash when drawing double-wide character in terminal window.
            (Masato Nishihata)
Solution:   Check getcell() returning NULL. (issue #6141)

4 years agopatch 8.2.1352: Vim9: no error for shadowing a script-local function v8.2.1352
Bram Moolenaar [Sat, 1 Aug 2020 21:22:18 +0000 (23:22 +0200)]
patch 8.2.1352: Vim9: no error for shadowing a script-local function

Problem:    Vim9: no error for shadowing a script-local function by a nested
            function.
Solution:   Check for script-local function. (closes #6586)

4 years agopatch 8.2.1351: Vim9: no proper error if using namespace for nested function v8.2.1351
Bram Moolenaar [Sat, 1 Aug 2020 20:35:13 +0000 (22:35 +0200)]
patch 8.2.1351: Vim9: no proper error if using namespace for nested function

Problem:    Vim9: no proper error if using namespace for nested function.
Solution:   Specifically check for a namespace. (closes #6582)

4 years agopatch 8.2.1350: Vim9: no test for error message when redefining function v8.2.1350
Bram Moolenaar [Sat, 1 Aug 2020 20:23:20 +0000 (22:23 +0200)]
patch 8.2.1350: Vim9: no test for error message when redefining function

Problem:    Vim9: no test for error message when redefining function.
Solution:   Add a test.

4 years agopatch 8.2.1349: Vim9: can define a function with the name of an import v8.2.1349
Bram Moolenaar [Sat, 1 Aug 2020 20:16:43 +0000 (22:16 +0200)]
patch 8.2.1349: Vim9: can define a function with the name of an import

Problem:    Vim9: can define a function with the name of an import.
Solution:   Disallow using an existing name. (closes #6585)

4 years agopatch 8.2.1348: build failure without the eval feature v8.2.1348
Bram Moolenaar [Sat, 1 Aug 2020 19:11:38 +0000 (21:11 +0200)]
patch 8.2.1348: build failure without the eval feature

Problem:    Build failure without the eval feature.
Solution:   Add #ifdef.

4 years agopatch 8.2.1347: cannot easily get the script ID v8.2.1347
Bram Moolenaar [Sat, 1 Aug 2020 18:45:11 +0000 (20:45 +0200)]
patch 8.2.1347: cannot easily get the script ID

Problem:    Cannot easily get the script ID.
Solution:   Support expand('<SID>').

4 years agopatch 8.2.1346: small build fails v8.2.1346
Bram Moolenaar [Sat, 1 Aug 2020 17:23:43 +0000 (19:23 +0200)]
patch 8.2.1346: small build fails

Problem:    Small build fails.
Solution:   Add #ifdef.

4 years agopatch 8.2.1345: Redraw error when using visual block and scroll v8.2.1345
Bram Moolenaar [Sat, 1 Aug 2020 17:14:13 +0000 (19:14 +0200)]
patch 8.2.1345: Redraw error when using visual block and scroll

Problem:    Redraw error when using visual block and scroll.
Solution:   Add check for w_topline. ( closes #6597)

4 years agopatch 8.2.1344: Vim9: No test for trying to redefine global function v8.2.1344
Bram Moolenaar [Sat, 1 Aug 2020 16:57:52 +0000 (18:57 +0200)]
patch 8.2.1344: Vim9: No test for trying to redefine global function

Problem:    Vim9: No test for trying to redefine global function.
Solution:   Add a test.

4 years agopatch 8.2.1343: Vim9: cannot find global function when using g: v8.2.1343
Bram Moolenaar [Sat, 1 Aug 2020 16:53:07 +0000 (18:53 +0200)]
patch 8.2.1343: Vim9: cannot find global function when using g:

Problem:    Vim9: cannot find global function when using g: when local
            function with the same name exists.
Solution:   Find global function when using g:.

4 years agopatch 8.2.1342: Vim9: accidentally using "t" gives a confusing error v8.2.1342
Bram Moolenaar [Sat, 1 Aug 2020 15:00:03 +0000 (17:00 +0200)]
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error

Problem:    Vim9: accidentally using "x" gives a confusing error.
Solution:   Disallow using ":t" in Vim9 script. (issue #6399)

4 years agopatch 8.2.1341: build failures v8.2.1341
Bram Moolenaar [Sat, 1 Aug 2020 14:35:08 +0000 (16:35 +0200)]
patch 8.2.1341: build failures

Problem:    Build failures.
Solution:   Add missing error message.

4 years agopatch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD v8.2.1340
Bram Moolenaar [Sat, 1 Aug 2020 14:08:19 +0000 (16:08 +0200)]
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD

Problem:    Some tests fail on Cirrus CI and/or with FreeBSD.
Solution:   Make 'backupskip' empty. Do not run tests as root. Check for
            directory when using viminfo. (Ozaki Kiichi, closes #6596)

4 years agopatch 8.2.1339: Vim9: assigning to global dict variable doesn't work v8.2.1339
Bram Moolenaar [Sat, 1 Aug 2020 13:53:19 +0000 (15:53 +0200)]
patch 8.2.1339: Vim9: assigning to global dict variable doesn't work

Problem:    Vim9: assigning to global dict variable doesn't work.
Solution:   Guess variable type based in index type. (issue #6591)

4 years agopatch 8.2.1338: Vim9: assigning to script-local variable doesn't check type v8.2.1338
Bram Moolenaar [Sat, 1 Aug 2020 13:38:38 +0000 (15:38 +0200)]
patch 8.2.1338: Vim9: assigning to script-local variable doesn't check type

Problem:    Vim9: assigning to script-local variable doesn't check type.
Solution:   Use the type. (issue #6591)

4 years agopatch 8.2.1337: Vim9: cannot use empty key in dict assignment v8.2.1337
Bram Moolenaar [Sat, 1 Aug 2020 12:06:38 +0000 (14:06 +0200)]
patch 8.2.1337: Vim9: cannot use empty key in dict assignment

Problem:    Vim9: cannot use empty key in dict assignment.
Solution:   Allow empty key. (closes #6591)

4 years agopatch 8.2.1336: build failure on non-Unix systems v8.2.1336
Bram Moolenaar [Sat, 1 Aug 2020 11:22:10 +0000 (13:22 +0200)]
patch 8.2.1336: build failure on non-Unix systems

Problem:    Build failure on non-Unix systems.
Solution:   Add #ifdef.

4 years agopatch 8.2.1335: CTRL-C in the GUI doesn't interrupt v8.2.1335
Bram Moolenaar [Sat, 1 Aug 2020 11:10:14 +0000 (13:10 +0200)]
patch 8.2.1335: CTRL-C in the GUI doesn't interrupt

Problem:    CTRL-C in the GUI doesn't interrupt. (Sergey Vlasov)
Solution:   Recognize "C" with CTRL modifier as CTRL-C. (issue #6565)

4 years agopatch 8.2.1334: Github workflow timeout needs tuning v8.2.1334
Bram Moolenaar [Sat, 1 Aug 2020 10:26:04 +0000 (12:26 +0200)]
patch 8.2.1334: Github workflow timeout needs tuning

Problem:    Github workflow timeout needs tuning
Solution:   Use a 10 minute timeout. Fail when timing out. (Ken Takata,
            closes #6590)

4 years agopatch 8.2.1333: Vim9: memory leak when using nested global function v8.2.1333
Bram Moolenaar [Fri, 31 Jul 2020 22:03:09 +0000 (00:03 +0200)]
patch 8.2.1333: Vim9: memory leak when using nested global function

Problem:    Vim9: memory leak when using nested global function.
Solution:   Swap from and to when copying the lines.

4 years agopatch 8.2.1332: Vim9: memory leak when using nested global function v8.2.1332
Bram Moolenaar [Fri, 31 Jul 2020 21:47:12 +0000 (23:47 +0200)]
patch 8.2.1332: Vim9: memory leak when using nested global function

Problem:    Vim9: memory leak when using nested global function.
Solution:   Delete the function when deleting the instruction.  Disable test
            that still causes a leak.

4 years agopatch 8.2.1331: Vim9: :echo with two lists doesn't work v8.2.1331
Bram Moolenaar [Fri, 31 Jul 2020 20:38:17 +0000 (22:38 +0200)]
patch 8.2.1331: Vim9: :echo with two lists doesn't work

Problem:    Vim9: :echo with two lists doesn't work.
Solution:   Do not skip white space before []. (closes #6552)

4 years agopatch 8.2.1330: Github workflow takes longer than needed v8.2.1330
Bram Moolenaar [Fri, 31 Jul 2020 20:17:32 +0000 (22:17 +0200)]
patch 8.2.1330: Github workflow takes longer than needed

Problem:    Github workflow takes longer than needed.
Solution:   Do two test runs in parallel instead of sequentially. (Ken Takata,
            closes #6579)

4 years agopatch 8.2.1329: Vim9: cannot define global function inside :def function v8.2.1329
Bram Moolenaar [Fri, 31 Jul 2020 20:05:04 +0000 (22:05 +0200)]
patch 8.2.1329: Vim9: cannot define global function inside :def function

Problem:    Vim9: cannot define global function inside :def function.
Solution:   Assign to global variable instead of local. (closes #6584)

4 years agopatch 8.2.1328: no space allowed before comma in list v8.2.1328
Bram Moolenaar [Thu, 30 Jul 2020 20:14:33 +0000 (22:14 +0200)]
patch 8.2.1328: no space allowed before comma in list

Problem:    No space allowed before comma in list.
Solution:   Legacy Vim script allows it. (closes #6577)