]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1476: filetype test fails on MS-Windows v8.2.1476
Bram Moolenaar [Mon, 17 Aug 2020 19:57:09 +0000 (21:57 +0200)]
patch 8.2.1476: filetype test fails on MS-Windows

Problem:    Filetype test fails on MS-Windows.
Solution:   Remove "^" from pattern.

4 years agopatch 8.2.1475: Vim9: can't use v:true for option flags v8.2.1475
Bram Moolenaar [Mon, 17 Aug 2020 19:41:02 +0000 (21:41 +0200)]
patch 8.2.1475: Vim9: can't use v:true for option flags

Problem:    Vim9: can't use v:true for option flags.
Solution:   Add tv_get_bool_chk(). (closes #6725)

4 years agopatch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrules v8.2.1474
Bram Moolenaar [Mon, 17 Aug 2020 19:17:25 +0000 (21:17 +0200)]
patch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrules

Problem:    /usr/lib/udef/rules.d not recognized as udevrules.
Solution:   Adjust match pattern. (Haochen Tong, closes 36722)

4 years agopatch 8.2.1473: items in a list given to :const can still be modified v8.2.1473
Bram Moolenaar [Mon, 17 Aug 2020 19:07:22 +0000 (21:07 +0200)]
patch 8.2.1473: items in a list given to :const can still be modified

Problem:    Items in a list given to :const can still be modified.
Solution:   Work like ":lockvar! name" but don't lock referenced items.
            Make locking a blob work.

4 years agopatch 8.2.1472: ":argdel" does not work like ":.argdel" as documented v8.2.1472
Bram Moolenaar [Mon, 17 Aug 2020 17:34:10 +0000 (19:34 +0200)]
patch 8.2.1472: ":argdel" does not work like ":.argdel" as documented

Problem:    ":argdel" does not work like ":.argdel" as documented. (Alexey
            Demin)
Solution:   Make ":argdel" work like ":.argdel". (closes #6727)
            Also fix giving the error "0 more files to edit".

4 years agopatch 8.2.1471: :const only locks the variable, not the value v8.2.1471
Bram Moolenaar [Sun, 16 Aug 2020 20:50:01 +0000 (22:50 +0200)]
patch 8.2.1471: :const only locks the variable, not the value

Problem:    :const only locks the variable, not the value.
Solution:   Lock the value as ":lockvar 1 var" would do. (closes #6719)

4 years agopatch 8.2.1470: errors in spell file not tested v8.2.1470
Bram Moolenaar [Sun, 16 Aug 2020 19:51:49 +0000 (21:51 +0200)]
patch 8.2.1470: errors in spell file not tested

Problem:    Errors in spell file not tested.
Solution:   Add test for spell file errors. (Yegappan Lakshmanan,
            closes #6721)

4 years agopatch 8.2.1469: Vim9: cannot assign string to string option v8.2.1469
Bram Moolenaar [Sun, 16 Aug 2020 19:29:05 +0000 (21:29 +0200)]
patch 8.2.1469: Vim9: cannot assign string to string option

Problem:    Vim9: cannot assign string to string option.
Solution:   Change checks for option value. (closes #6720)

4 years agopatch 8.2.1468: Vim9: invalid error for missing white space v8.2.1468
Bram Moolenaar [Sun, 16 Aug 2020 16:42:53 +0000 (18:42 +0200)]
patch 8.2.1468: Vim9: invalid error for missing white space

Problem:    Vim9: invalid error for missing white space.
Solution:   Don't skip over white space after index. (closes #6718)

4 years agopatch 8.2.1467: Vim9: :echomsg doesn't like a dict argument v8.2.1467
Bram Moolenaar [Sun, 16 Aug 2020 16:29:35 +0000 (18:29 +0200)]
patch 8.2.1467: Vim9: :echomsg doesn't like a dict argument

Problem:    Vim9: :echomsg doesn't like a dict argument.
Solution:   Convert arguments like in legacy script. (closes #6717)

4 years agopatch 8.2.1466: Vim9: cannot index or slice a variable with type "any" v8.2.1466
Bram Moolenaar [Sun, 16 Aug 2020 15:33:35 +0000 (17:33 +0200)]
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"

Problem:    Vim9: cannot index or slice a variable with type "any".
Solution:   Add runtime index and slice.

4 years agopatch 8.2.1465: Vim9: subscript not handled properly v8.2.1465
Bram Moolenaar [Sun, 16 Aug 2020 12:48:19 +0000 (14:48 +0200)]
patch 8.2.1465: Vim9: subscript not handled properly

Problem:    Vim9: subscript not handled properly.
Solution:   Adjust error message.  Remove dead code.  Disallow string to
            number conversion in scripts.

4 years agopatch 8.2.1464: Vim9: build warning for unused variable v8.2.1464
Bram Moolenaar [Sat, 15 Aug 2020 20:48:48 +0000 (22:48 +0200)]
patch 8.2.1464: Vim9: build warning for unused variable

Problem:    Vim9: build warning for unused variable.
Solution:   Delete the variable declaration.

4 years agopatch 8.2.1463: Vim9: list slice not supported yet v8.2.1463
Bram Moolenaar [Sat, 15 Aug 2020 20:14:53 +0000 (22:14 +0200)]
patch 8.2.1463: Vim9: list slice not supported yet

Problem:    Vim9: list slice not supported yet.
Solution:   Add support for list slicing.

4 years agopatch 8.2.1462: Vim9: string slice not supported yet v8.2.1462
Bram Moolenaar [Sat, 15 Aug 2020 19:10:16 +0000 (21:10 +0200)]
patch 8.2.1462: Vim9: string slice not supported yet

Problem:    Vim9: string slice not supported yet.
Solution:   Add support for string slicing.

4 years agoUpdate runtime files.
Bram Moolenaar [Sat, 15 Aug 2020 16:55:18 +0000 (18:55 +0200)]
Update runtime files.

4 years agopatch 8.2.1461: Vim9: string indexes are counted in bytes v8.2.1461
Bram Moolenaar [Sat, 15 Aug 2020 16:39:05 +0000 (18:39 +0200)]
patch 8.2.1461: Vim9: string indexes are counted in bytes

Problem:    Vim9: string indexes are counted in bytes.
Solution:   Use character indexes. (closes #6574)

4 years agopatch 8.2.1460: error messages are spread out v8.2.1460
Bram Moolenaar [Sat, 15 Aug 2020 14:33:28 +0000 (16:33 +0200)]
patch 8.2.1460: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more messages into errors.h.

4 years agopatch 8.2.1459: Vim9: declaring script var in script does not infer the type v8.2.1459
Bram Moolenaar [Sat, 15 Aug 2020 12:31:20 +0000 (14:31 +0200)]
patch 8.2.1459: Vim9: declaring script var in script does not infer the type

Problem:    Vim9: declaring ascript variable at the script level does not
            infer the type.
Solution:   Get the type from the value. (closes #6716)

4 years agopatch 8.2.1458: .gawk files not recognized v8.2.1458
Bram Moolenaar [Sat, 15 Aug 2020 12:07:23 +0000 (14:07 +0200)]
patch 8.2.1458: .gawk files not recognized

Problem:    .gawk files not recognized.
Solution:   Recognize .gawk files. (Doug Kearns)

4 years agopatch 8.2.1457: Vim9: the output of :disassemble cannot be interrupted v8.2.1457
Bram Moolenaar [Sat, 15 Aug 2020 11:49:17 +0000 (13:49 +0200)]
patch 8.2.1457: Vim9: the output of :disassemble cannot be interrupted

Problem:    Vim9: the output of :disassemble cannot be interrupted.
Solution:   Check got_int. (closes #6715)

4 years agopatch 8.2.1456: MS-Windows: test files are not deleted v8.2.1456
Bram Moolenaar [Fri, 14 Aug 2020 21:08:22 +0000 (23:08 +0200)]
patch 8.2.1456: MS-Windows: test files are not deleted

Problem:    MS-Windows: test files are not deleted.
Solution:   use "del" instead of $(DEL).

4 years agopatch 8.2.1455: Vim9: crash when using typecast before constant v8.2.1455
Bram Moolenaar [Fri, 14 Aug 2020 20:44:25 +0000 (22:44 +0200)]
patch 8.2.1455: Vim9: crash when using typecast before constant

Problem:    Vim9: crash when using typecast before constant.
Solution:   Generate constant before checking type.  Add tets.

4 years agopatch 8.2.1454: Vim9: failure invoking lambda with wrong arguments v8.2.1454
Bram Moolenaar [Fri, 14 Aug 2020 20:16:33 +0000 (22:16 +0200)]
patch 8.2.1454: Vim9: failure invoking lambda with wrong arguments

Problem:    Vim9: failure invoking lambda with wrong arguments.
Solution:   Handle invalid arguments.  Add a test.

4 years agopatch 8.2.1453: Vim9: failure to compile lambda not tested v8.2.1453
Bram Moolenaar [Fri, 14 Aug 2020 19:49:08 +0000 (21:49 +0200)]
patch 8.2.1453: Vim9: failure to compile lambda not tested

Problem:    Vim9: failure to compile lambda not tested.
Solution:   Add a test case.

4 years agopatch 8.2.1452: Vim9: dead code in to_name_end() v8.2.1452
Bram Moolenaar [Fri, 14 Aug 2020 19:42:54 +0000 (21:42 +0200)]
patch 8.2.1452: Vim9: dead code in to_name_end()

Problem:    Vim9: dead code in to_name_end().
Solution:   Remove check for lambda and dict, it won't be used.

4 years agopatch 8.2.1451: Vim9: list type at script level only uses first item v8.2.1451
Bram Moolenaar [Fri, 14 Aug 2020 19:27:37 +0000 (21:27 +0200)]
patch 8.2.1451: Vim9: list type at script level only uses first item

Problem:    Vim9: list type at script level only uses first item.
Solution:   Use all members, like in a compiled function. (closes #6712)
            Also for dictionary.

4 years agopatch 8.2.1450: Vim9: no check that script-local items don't become global v8.2.1450
Bram Moolenaar [Fri, 14 Aug 2020 18:52:28 +0000 (20:52 +0200)]
patch 8.2.1450: Vim9: no check that script-local items don't become global

Problem:    Vim9: no check that script-local items don't become global.
Solution:   Add a test.

4 years agopatch 8.2.1449: some test makefiles delete files that are not generated v8.2.1449
Bram Moolenaar [Fri, 14 Aug 2020 17:20:23 +0000 (19:20 +0200)]
patch 8.2.1449: some test makefiles delete files that are not generated

Problem:    Some test makefiles delete files that are not generated.
Solution:   Remove the deletion commands.

4 years agopatch 8.2.1448: test 77a for VMS depends on small.vim which does not exist v8.2.1448
Bram Moolenaar [Fri, 14 Aug 2020 17:11:03 +0000 (19:11 +0200)]
patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist

Problem:    Test 77a for VMS depends on small.vim which does not exist.
Solution:   Use the 'silent while 0" trick. (issue #6696)

4 years agopatch 8.2.1447: Vim9: return type of keys() is list<any> v8.2.1447
Bram Moolenaar [Fri, 14 Aug 2020 16:56:45 +0000 (18:56 +0200)]
patch 8.2.1447: Vim9: return type of keys() is list<any>

Problem:    Vim9: return type of keys() is list<any>.
Solution:   Should be list<string>. (closes #6711)

4 years agopatch 8.2.1446: Vim9: line number in error message is not correct v8.2.1446
Bram Moolenaar [Fri, 14 Aug 2020 16:35:07 +0000 (18:35 +0200)]
patch 8.2.1446: Vim9: line number in error message is not correct

Problem:    Vim9: line number in error message is not correct.
Solution:   Set SOURCING_LNUM before calling emsg(). (closes #6708)

4 years agopatch 8.2.1445: Vim9: function expanded name is cleared when sourcing again v8.2.1445
Bram Moolenaar [Fri, 14 Aug 2020 15:08:15 +0000 (17:08 +0200)]
patch 8.2.1445: Vim9: function expanded name is cleared when sourcing again

Problem:    Vim9: function expanded name is cleared when sourcing a script
            again.
Solution:   Only clear the expanded name when deleting the function.
            (closes #6707)

4 years agopatch 8.2.1444: error messages are spread out and names can be confusing v8.2.1444
Bram Moolenaar [Thu, 13 Aug 2020 20:47:35 +0000 (22:47 +0200)]
patch 8.2.1444: error messages are spread out and names can be confusing

Problem:    Error messages are spread out and names can be confusing.
Solution:   Start moving error messages to a separate file and use clear
            names.

4 years agopatch 8.2.1443: Vim9: crash when interrupting a nested :def function v8.2.1443
Bram Moolenaar [Thu, 13 Aug 2020 19:40:18 +0000 (21:40 +0200)]
patch 8.2.1443: Vim9: crash when interrupting a nested :def function

Problem:    Vim9: crash when interrupting a nested :def function.
Solution:   Push a dummy return value onto the stack. (closes #6701)

4 years agopatch 8.2.1442: outdated references to the Mac Carbon GUI v8.2.1442
Bram Moolenaar [Thu, 13 Aug 2020 19:05:39 +0000 (21:05 +0200)]
patch 8.2.1442: outdated references to the Mac Carbon GUI

Problem:    Outdated references to the Mac Carbon GUI.
Solution:   Remove or update references. (Yee Cheng Chin, closes #6703)

4 years agopatch 8.2.1441: running tests in tiny version gives error for summarize.vim v8.2.1441
Bram Moolenaar [Thu, 13 Aug 2020 17:42:39 +0000 (19:42 +0200)]
patch 8.2.1441: running tests in tiny version gives error for summarize.vim

Problem:    Running tests in tiny version gives error for summarize.vim.
Solution:   Set 'cpoptions' to allow for line continuation.  Restore
            redirecting test output to /dev/null.

4 years agopatch 8.2.1440: debugger code insufficiently tested v8.2.1440
Bram Moolenaar [Thu, 13 Aug 2020 17:20:04 +0000 (19:20 +0200)]
patch 8.2.1440: debugger code insufficiently tested

Problem:    Debugger code insufficiently tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #6700)

4 years agopatch 8.2.1439: tiny and small builds have no test coverage v8.2.1439
Bram Moolenaar [Thu, 13 Aug 2020 16:59:55 +0000 (18:59 +0200)]
patch 8.2.1439: tiny and small builds have no test coverage

Problem:    Tiny and small builds have no test coverage.
Solution:   Restore tests that do not depend on the +eval feature.
            (Ken Takata, closes #6696)

4 years agopatch 8.2.1438: missing tests for interrupting script execution from debugger v8.2.1438
Bram Moolenaar [Wed, 12 Aug 2020 20:22:09 +0000 (22:22 +0200)]
patch 8.2.1438: missing tests for interrupting script execution from debugger

Problem:    Missing tests for interrupting script execution from debugger.
Solution:   Add tests. (Yegappan Lakshmanan, closes #6697)

4 years agopatch 8.2.1437: Vim9: 'statusline' is evaluated using Vim9 script syntax v8.2.1437
Bram Moolenaar [Wed, 12 Aug 2020 20:18:23 +0000 (22:18 +0200)]
patch 8.2.1437: Vim9: 'statusline' is evaluated using Vim9 script syntax

Problem:    Vim9: 'statusline' is evaluated using Vim9 script syntax.
Solution:   Always use legacy script syntax.

4 years agopatch 8.2.1436: function implementing :substitute has unexpected name v8.2.1436
Bram Moolenaar [Wed, 12 Aug 2020 19:58:12 +0000 (21:58 +0200)]
patch 8.2.1436: function implementing :substitute has unexpected name

Problem:    Function implementing :substitute has unexpected name.
Solution:   Rename from do_sub() to ex_substitute().

4 years agopatch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes v8.2.1435
Bram Moolenaar [Wed, 12 Aug 2020 19:34:49 +0000 (21:34 +0200)]
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes

Problem:    Vim9: always converting to string for ".." leads to mistakes.
Solution:   Only automatically convert simple types.

4 years agopatch 8.2.1434: Vim9: crash when lambda uses outer function argument v8.2.1434
Bram Moolenaar [Wed, 12 Aug 2020 17:42:01 +0000 (19:42 +0200)]
patch 8.2.1434: Vim9: crash when lambda uses outer function argument

Problem:    Vim9: crash when lambda uses outer function argument.
Solution:   Set the flag that the outer context is used.

4 years agopatch 8.2.1433: Vim9: cannot mingle comments in multi-line lambda v8.2.1433
Bram Moolenaar [Wed, 12 Aug 2020 17:15:33 +0000 (19:15 +0200)]
patch 8.2.1433: Vim9: cannot mingle comments in multi-line lambda

Problem:    Vim9: cannot mingle comments in multi-line lambda.
Solution:   Skip over NULL lines. (closes #6694)

4 years agopatch 8.2.1432: various inconsistencies in test files v8.2.1432
Bram Moolenaar [Wed, 12 Aug 2020 16:50:36 +0000 (18:50 +0200)]
patch 8.2.1432: various inconsistencies in test files

Problem:    Various inconsistencies in test files.
Solution:   Add modelines where they were missing.  Use Check commands instead
            of silently skipping over tests.  Adjust indents and comments.
            (Ken Takata, closes #6695)

4 years agopatch 8.2.1431: Vim9: no error for white space before comma in dict v8.2.1431
Bram Moolenaar [Wed, 12 Aug 2020 16:34:28 +0000 (18:34 +0200)]
patch 8.2.1431: Vim9: no error for white space before comma in dict

Problem:    Vim9: no error for white space before comma in dict.
Solution:   Check for extra white space. (closes #6674)

4 years agopatch 8.2.1430: Vim9: error for missing comma instead of extra white space v8.2.1430
Bram Moolenaar [Wed, 12 Aug 2020 16:01:53 +0000 (18:01 +0200)]
patch 8.2.1430: Vim9: error for missing comma instead of extra white space

Problem:    Vim9: error for missing comma instead of extra white space.
Solution:   Check if comma can be found after white space. (closes #6668)
            Also check for extra white space in literal dict. (closes #6670)

4 years agopatch 8.2.1429: Vim9: no error for missing white after : in dict v8.2.1429
Bram Moolenaar [Wed, 12 Aug 2020 15:35:58 +0000 (17:35 +0200)]
patch 8.2.1429: Vim9: no error for missing white after : in dict

Problem:    Vim9: no error for missing white after : in dict.
Solution:   Check for white space. (closes #6671)  Also check that there is no
            white before the :.

4 years agopatch 8.2.1428: Vim9: :def function does not abort on nested function error v8.2.1428
Bram Moolenaar [Wed, 12 Aug 2020 14:38:10 +0000 (16:38 +0200)]
patch 8.2.1428: Vim9: :def function does not abort on nested function error

Problem:    Vim9: :def function does not abort on nested function error.
Solution:   Check whether an error message was given. (closes #6691)

4 years agopatch 8.2.1427: Vim9: cannot use a range with marks in :def function v8.2.1427
Bram Moolenaar [Wed, 12 Aug 2020 13:48:55 +0000 (15:48 +0200)]
patch 8.2.1427: Vim9: cannot use a range with marks in :def function

Problem:    Vim9: cannot use a range with marks in :def function.
Solution:   Parse range after colon. (closes #6686)

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)