]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1141: Vim9: return type of filter() is any v8.2.1141
Bram Moolenaar [Sun, 5 Jul 2020 18:16:41 +0000 (20:16 +0200)]
patch 8.2.1141: Vim9: return type of filter() is any

Problem:    Vim9: return type of filter() is any.
Solution:   Use type of the argument.

4 years agopatch 8.2.1140: Vim9: return type of extend() is any v8.2.1140
Bram Moolenaar [Sun, 5 Jul 2020 18:08:39 +0000 (20:08 +0200)]
patch 8.2.1140: Vim9: return type of extend() is any

Problem:    Vim9: return type of extend() is any.
Solution:   Use type of the argument.

4 years agopatch 8.2.1139: Vim9: test for silent echo fails in some environments v8.2.1139
Bram Moolenaar [Sun, 5 Jul 2020 16:48:23 +0000 (18:48 +0200)]
patch 8.2.1139: Vim9: test for silent echo fails in some environments

Problem:    Vim9: test for silent echo fails in some environments.
Solution:   Use :function instead of :def.

4 years agopatch 8.2.1138: Vim9: return type of copy() and deepcopy() is any v8.2.1138
Bram Moolenaar [Sun, 5 Jul 2020 16:41:08 +0000 (18:41 +0200)]
patch 8.2.1138: Vim9: return type of copy() and deepcopy() is any

Problem:    Vim9: return type of copy() and deepcopy() is any.
Solution:   Use type of the argument.

4 years agopatch 8.2.1137: Vim9: modifiers not cleared after compiling function v8.2.1137
Bram Moolenaar [Sun, 5 Jul 2020 16:18:42 +0000 (18:18 +0200)]
patch 8.2.1137: Vim9: modifiers not cleared after compiling function

Problem:    Vim9: modifiers not cleared after compiling function.
Solution:   Clear command modifiers. (closes #6396)

4 years agopatch 8.2.1136: Vim9: return type of argv() is always any v8.2.1136
Bram Moolenaar [Sun, 5 Jul 2020 15:04:13 +0000 (17:04 +0200)]
patch 8.2.1136: Vim9: return type of argv() is always any

Problem:    Vim9: return type of argv() is always any.
Solution:   Use list<string> if there is no argument.

4 years agopatch 8.2.1135: Vim9: getting a dict member may not work v8.2.1135
Bram Moolenaar [Sun, 5 Jul 2020 14:51:26 +0000 (16:51 +0200)]
patch 8.2.1135: Vim9: getting a dict member may not work

Problem:    Vim9: getting a dict member may not work.
Solution:   Clear the dict only after copying the item.

4 years agopatch 8.2.1134: Vim9: getting a list member may not work v8.2.1134
Bram Moolenaar [Sun, 5 Jul 2020 14:42:13 +0000 (16:42 +0200)]
patch 8.2.1134: Vim9: getting a list member may not work

Problem:    Vim9: getting a list member may not work.
Solution:   Clear the list only after copying the item. (closes #6393)

4 years agopatch 8.2.1133: Vim9: return type of add() is not specific enough v8.2.1133
Bram Moolenaar [Sun, 5 Jul 2020 14:07:21 +0000 (16:07 +0200)]
patch 8.2.1133: Vim9: return type of add() is not specific enough

Problem:    Vim9: return type of add() is not specific enough.
Solution:   Return the type of the first argument. (closes #6395)

4 years agopatch 8.2.1132: Vim9: return type of repeat() is not specific enough v8.2.1132
Bram Moolenaar [Sun, 5 Jul 2020 14:01:56 +0000 (16:01 +0200)]
patch 8.2.1132: Vim9: return type of repeat() is not specific enough

Problem:    Vim9: return type of repeat() is not specific enough.
Solution:   Return the type of the first argument. (closes #6395)

4 years agopatch 8.2.1131: Vim9: error message for returning a value is not clear v8.2.1131
Bram Moolenaar [Sun, 5 Jul 2020 13:52:19 +0000 (15:52 +0200)]
patch 8.2.1131: Vim9: error message for returning a value is not clear

Problem:    Vim9: error message for returning a value in a function that does
            not return anything is not clear.
Solution:   Add a specific message.

4 years agopatch 8.2.1130: Vim9: bar not recognized after function call v8.2.1130
Bram Moolenaar [Sun, 5 Jul 2020 13:32:17 +0000 (15:32 +0200)]
patch 8.2.1130: Vim9: bar not recognized after function call

Problem:    Vim9: bar not recognized after function call
Solution:   Skip whitespace. (closes #6391)

4 years agopatch 8.2.1129: Vim9: bar not recognized after not compiled command v8.2.1129
Bram Moolenaar [Sun, 5 Jul 2020 12:57:51 +0000 (14:57 +0200)]
patch 8.2.1129: Vim9: bar not recognized after not compiled command

Problem:    Vim9: bar not recognized after not compiled command.
Solution:   Check for bar for commands where this is possible. (closes #6391)

4 years agopatch 8.2.1128: the write message mentions characters, but it's bytes v8.2.1128
Bram Moolenaar [Sun, 5 Jul 2020 12:10:13 +0000 (14:10 +0200)]
patch 8.2.1128: the write message mentions characters, but it's bytes

Problem:    The write message mentions characters, but it's actually bytes.
Solution:   Change "C" to "B" and "characters" to "bytes".

4 years agopatch 8.2.1127: Vim9: getting a dict member may not work v8.2.1127
Bram Moolenaar [Sat, 4 Jul 2020 17:19:43 +0000 (19:19 +0200)]
patch 8.2.1127: Vim9: getting a dict member may not work

Problem:    Vim9: getting a dict member may not work.
Solution:   Clear the dict only after copying the item. (closes #6390)

4 years agopatch 8.2.1126: Vim9: using :copen causes an error v8.2.1126
Bram Moolenaar [Sat, 4 Jul 2020 15:39:10 +0000 (17:39 +0200)]
patch 8.2.1126: Vim9: using :copen causes an error

Problem:    Vim9: using :copen causes an error.
Solution:   Add flag LET_NO_COMMAND in set_var().

4 years agopatch 8.2.1125: Vim9: double quote can be a string or a comment v8.2.1125
Bram Moolenaar [Sat, 4 Jul 2020 12:15:00 +0000 (14:15 +0200)]
patch 8.2.1125: Vim9: double quote can be a string or a comment

Problem:    Vim9: double quote can be a string or a comment.
Solution:   Only support comments starting with # to avoid confusion.

4 years agopatch 8.2.1124: Vim9: no line break allowed in :import command v8.2.1124
Bram Moolenaar [Sat, 4 Jul 2020 11:15:31 +0000 (13:15 +0200)]
patch 8.2.1124: Vim9: no line break allowed in :import command

Problem:    Vim9: no line break allowed in :import command.
Solution:   Skip over line breaks.

4 years agopatch 8.2.1123: Python 3 test is old style v8.2.1123
Bram Moolenaar [Fri, 3 Jul 2020 19:17:34 +0000 (21:17 +0200)]
patch 8.2.1123: Python 3 test is old style

Problem:    Python 3 test is old style.
Solution:   Turn into new style test. (Yegappan Lakshmanan, closes #6385)

4 years agopatch 8.2.1122: Vim9: line continuation in dict member not recognized v8.2.1122
Bram Moolenaar [Fri, 3 Jul 2020 19:09:52 +0000 (21:09 +0200)]
patch 8.2.1122: Vim9: line continuation in dict member not recognized

Problem:    Vim9: line continuation in dict member not recognized.
Solution:   Check for line continuation.

4 years agopatch 8.2.1121: command completion not working after ++arg v8.2.1121
Bram Moolenaar [Fri, 3 Jul 2020 16:15:06 +0000 (18:15 +0200)]
patch 8.2.1121: command completion not working after ++arg

Problem:    Command completion not working after ++arg.
Solution:   Move skipping up. (Christian Brabandt, closes #6382)

4 years agopatch 8.2.1120: Python code not tested properly v8.2.1120
Bram Moolenaar [Fri, 3 Jul 2020 16:00:05 +0000 (18:00 +0200)]
patch 8.2.1120: Python code not tested properly

Problem:    Python code not tested properly.
Solution:   Add more tests and convert old-style test into new-style test.
            (Yegappan Lakshmanan, closes #6370)

4 years agopatch 8.2.1119: configure fails with Xcode 12 beta v8.2.1119
Bram Moolenaar [Thu, 2 Jul 2020 20:50:37 +0000 (22:50 +0200)]
patch 8.2.1119: configure fails with Xcode 12 beta

Problem:    Configure fails with Xcode 12 beta.
Solution:   use "return" instead of "exit()". (Nico Weber, closes #6381)

4 years agopatch 8.2.1118: condition can never be true, dead code v8.2.1118
Bram Moolenaar [Thu, 2 Jul 2020 19:23:42 +0000 (21:23 +0200)]
patch 8.2.1118: condition can never be true, dead code

Problem:    Condition can never be true, dead code.
Solution:   Remove the dead code.

4 years agopatch 8.2.1117: Coverity warns for unsing unitialized field v8.2.1117
Bram Moolenaar [Thu, 2 Jul 2020 19:17:57 +0000 (21:17 +0200)]
patch 8.2.1117: Coverity warns for unsing unitialized field

Problem:    Coverity warns for unsing unitialized field.
Solution:   Initialize v_lock.

4 years agopatch 8.2.1116: Vim9: parsing command checks for list twice v8.2.1116
Bram Moolenaar [Thu, 2 Jul 2020 19:11:34 +0000 (21:11 +0200)]
patch 8.2.1116: Vim9: parsing command checks for list twice

Problem:    Vim9: parsing command checks for list twice.
Solution:   Adjust how a command is parsed.

4 years agopatch 8.2.1115: iminsert test fails when compiled with VIMDLL v8.2.1115
Bram Moolenaar [Thu, 2 Jul 2020 18:59:05 +0000 (20:59 +0200)]
patch 8.2.1115: iminsert test fails when compiled with VIMDLL

Problem:    Iminsert test fails when compiled with VIMDLL.
Solution:   Change condition. (Ken Takata, closes #6376)

4 years agopatch 8.2.1114: terminal test sometimes times out v8.2.1114
Bram Moolenaar [Wed, 1 Jul 2020 19:53:50 +0000 (21:53 +0200)]
patch 8.2.1114: terminal test sometimes times out

Problem:    Terminal test sometimes times out.
Solution:   Split the test in two parts.

4 years agopatch 8.2.1113: no test for verbose output of :call v8.2.1113
Bram Moolenaar [Wed, 1 Jul 2020 18:19:37 +0000 (20:19 +0200)]
patch 8.2.1113: no test for verbose output of :call

Problem:    No test for verbose output of :call.
Solution:   Add a test.

4 years agopatch 8.2.1112: Vim9: no line continuation allowed in method call v8.2.1112
Bram Moolenaar [Wed, 1 Jul 2020 18:07:14 +0000 (20:07 +0200)]
patch 8.2.1112: Vim9: no line continuation allowed in method call

Problem:    Vim9: no line continuation allowed in method call.
Solution:   Handle line continuation in expression before method call.

4 years agopatch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict() v8.2.1111
Bram Moolenaar [Wed, 1 Jul 2020 16:29:55 +0000 (18:29 +0200)]
patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()

Problem:    Inconsistent naming of get_list_tv() and eval_dict().
Solution:   Rename get_list_tv() to eval_list().  Similarly for eval_number(),
            eval_string(), eval_lit_string() and a few others.

4 years agopatch 8.2.1110: Vim9: line continuation does not work in function arguments v8.2.1110
Bram Moolenaar [Wed, 1 Jul 2020 15:28:33 +0000 (17:28 +0200)]
patch 8.2.1110: Vim9: line continuation does not work in function arguments

Problem:    Vim9: line continuation does not work in function arguments.
Solution:   Pass "evalarg" to get_func_tv().  Fix seeing double quoted string
            as comment.

4 years agopatch 8.2.1109: still crashing when using s:variable v8.2.1109
Bram Moolenaar [Wed, 1 Jul 2020 14:00:44 +0000 (16:00 +0200)]
patch 8.2.1109: still crashing when using s:variable

Problem:    Still crashing when using s:variable.
Solution:   Remove assignment. (Ken Takata)

4 years agopatch 8.2.1108: mouse left-right scroll is not supported in terminal window v8.2.1108
Bram Moolenaar [Wed, 1 Jul 2020 13:49:29 +0000 (15:49 +0200)]
patch 8.2.1108: mouse left-right scroll is not supported in terminal window

Problem:    Mouse left-right scroll is not supported in terminal window.
Solution:   Implement mouse codes 6 and 7. (Trygve Aaberge, closes #6363)

4 years agopatch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI v8.2.1107
Bram Moolenaar [Wed, 1 Jul 2020 13:12:44 +0000 (15:12 +0200)]
patch 8.2.1107: 'imactivatefunc' and 'imstatusfunc' are not used in the GUI

Problem:    'imactivatefunc' and 'imstatusfunc' are not used in the GUI.
Solution:   Adjust the #ifdefs. (closes #6367)

4 years agopatch 8.2.1106: crash when trying to use s: variable in typed command v8.2.1106
Bram Moolenaar [Wed, 1 Jul 2020 12:38:12 +0000 (14:38 +0200)]
patch 8.2.1106: crash when trying to use s: variable in typed command

Problem:    Crash when trying to use s: variable in typed command.
Solution:   Don't use the script index when not set. (Ken Takata,
            closes #6366)

4 years agopatch 8.2.1105: insufficient test coverage for Lua v8.2.1105
Bram Moolenaar [Wed, 1 Jul 2020 11:52:55 +0000 (13:52 +0200)]
patch 8.2.1105: insufficient test coverage for Lua

Problem:    Insufficient test coverage for Lua.
Solution:   Add tests. (Yegappan Lakshmanan, closes #6368)  Fix uncovered
            memory leak.  Avoid unnecessary copy/free.

4 years agopatch 8.2.1104: Coverity warnts for possible NULL pointer use v8.2.1104
Bram Moolenaar [Wed, 1 Jul 2020 11:15:24 +0000 (13:15 +0200)]
patch 8.2.1104: Coverity warnts for possible NULL pointer use

Problem:    Coverity warnts for possible NULL pointer use.
Solution:   Check "pbyts" is not NULL.

4 years agopatch 8.2.1103: Coverity reports an unnecessary NULL check v8.2.1103
Bram Moolenaar [Wed, 1 Jul 2020 11:07:37 +0000 (13:07 +0200)]
patch 8.2.1103: Coverity reports an unnecessary NULL check

Problem:    Coverity reports an unnecessary NULL check.
Solution:   Remove the check for NULL.

4 years agopatch 8.2.1102: Coverity gets confused by an unnecessary NULL check v8.2.1102
Bram Moolenaar [Wed, 1 Jul 2020 11:04:05 +0000 (13:04 +0200)]
patch 8.2.1102: Coverity gets confused by an unnecessary NULL check

Problem:    Coverity gets confused by an unnecessary NULL check.
Solution:   Remove the check for NULL.

4 years agopatch 8.2.1101: no error when using wrong arguments for setqflist() v8.2.1101
Bram Moolenaar [Tue, 30 Jun 2020 20:11:44 +0000 (22:11 +0200)]
patch 8.2.1101: no error when using wrong arguments for setqflist()

Problem:    No error when using wrong arguments for setqflist() or
            setloclist().
Solution:   Check for the error.

4 years agopatch 8.2.1100: Vim9: cannot use line break in :execute argument v8.2.1100
Bram Moolenaar [Tue, 30 Jun 2020 20:02:02 +0000 (22:02 +0200)]
patch 8.2.1100: Vim9: cannot use line break in :execute argument

Problem:    Vim9: cannot use line break in :execute, :echomsg and :echoerr
            argument.
Solution:   Check for line break.

4 years agopatch 8.2.1099: Vim9: cannot use line break in :cexpr argument v8.2.1099
Bram Moolenaar [Tue, 30 Jun 2020 19:18:36 +0000 (21:18 +0200)]
patch 8.2.1099: Vim9: cannot use line break in :cexpr argument

Problem:    Vim9: cannot use line break in :cexpr argument.
Solution:   Check for line break.

4 years agopatch 8.2.1098: Vim9: cannot use line break in :throw argument v8.2.1098
Bram Moolenaar [Tue, 30 Jun 2020 18:55:15 +0000 (20:55 +0200)]
patch 8.2.1098: Vim9: cannot use line break in :throw argument

Problem:    Vim9: cannot use line break in :throw argument.
Solution:   Check for line break.

4 years agoRuntime file updates
Bram Moolenaar [Tue, 30 Jun 2020 18:38:27 +0000 (20:38 +0200)]
Runtime file updates

4 years agopatch 8.2.1097: highlight code not sufficiently tested v8.2.1097
Bram Moolenaar [Tue, 30 Jun 2020 16:45:43 +0000 (18:45 +0200)]
patch 8.2.1097: highlight code not sufficiently tested

Problem:    Highlight code not sufficiently tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #6359)

4 years agopatch 8.2.1096: Vim9: return type of getqflist() is wrong v8.2.1096
Bram Moolenaar [Tue, 30 Jun 2020 11:38:01 +0000 (13:38 +0200)]
patch 8.2.1096: Vim9: return type of getqflist() is wrong

Problem:    Vim9: return type of getqflist() is wrong.
Solution:   Let the return type depend on the arguments.  Also for
            getloclist(). (closes #6367)

4 years agopatch 8.2.1095: may use pointer after freeing it v8.2.1095
Bram Moolenaar [Mon, 29 Jun 2020 21:18:42 +0000 (23:18 +0200)]
patch 8.2.1095: may use pointer after freeing it

Problem:    May use pointer after freeing it when text properties are used.
Solution:   Update redo buffer before calling ml_replace().

4 years agopatch 8.2.1094: dead code in libvterm v8.2.1094
Bram Moolenaar [Mon, 29 Jun 2020 21:14:02 +0000 (23:14 +0200)]
patch 8.2.1094: dead code in libvterm

Problem:    Dead code in libvterm.
Solution:   Remove condition that is always true.

4 years agopatch 8.2.1093: Python: double free when adding item to dict fails v8.2.1093
Bram Moolenaar [Mon, 29 Jun 2020 21:07:44 +0000 (23:07 +0200)]
patch 8.2.1093: Python: double free when adding item to dict fails

Problem:    Python: double free when adding item to dict fails.
Solution:   Remove vim_free() call.

4 years agopatch 8.2.1092: not checking if saving for undo succeeds v8.2.1092
Bram Moolenaar [Mon, 29 Jun 2020 21:02:21 +0000 (23:02 +0200)]
patch 8.2.1092: not checking if saving for undo succeeds

Problem:    Not checking if saving for undo succeeds.
Solution:   Bail out if u_savesub() returns FAIL.

4 years agopatch 8.2.1091: no check if opening a pty works v8.2.1091
Bram Moolenaar [Mon, 29 Jun 2020 20:40:42 +0000 (22:40 +0200)]
patch 8.2.1091: no check if opening a pty works

Problem:    No check if opening a pty works.
Solution:   Check for invalid file descriptor.

4 years agopatch 8.2.1090: may use NULL pointer when skipping over name v8.2.1090
Bram Moolenaar [Mon, 29 Jun 2020 20:31:36 +0000 (22:31 +0200)]
patch 8.2.1090: may use NULL pointer when skipping over name

Problem:    May use NULL pointer when skipping over name.
Solution:   Always set ll_name_end.

4 years agopatch 8.2.1089: Coverity warns for pointer computation v8.2.1089
Bram Moolenaar [Mon, 29 Jun 2020 20:24:56 +0000 (22:24 +0200)]
patch 8.2.1089: Coverity warns for pointer computation

Problem:    Coverity warns for pointer computation.
Solution:   Avoid computing a pointer to invalid memory.

4 years agopatch 8.2.1088: a very long translation might cause a buffer overflow v8.2.1088
Bram Moolenaar [Mon, 29 Jun 2020 19:32:06 +0000 (21:32 +0200)]
patch 8.2.1088: a very long translation might cause a buffer overflow

Problem:    A very long translation might cause a buffer overflow.
Solution:   Trunctate the message if needed.

4 years agopatch 8.2.1087: possible memory leak when file expansion fails v8.2.1087
Bram Moolenaar [Mon, 29 Jun 2020 19:14:51 +0000 (21:14 +0200)]
patch 8.2.1087: possible memory leak when file expansion fails

Problem:    Possible memory leak when file expansion fails.
Solution:   Clear the grow array when returning FAIL.  Use an error message
            instead of an empty string.

4 years agopatch 8.2.1086: possibly using freed memory when text properties used v8.2.1086
Bram Moolenaar [Mon, 29 Jun 2020 18:40:37 +0000 (20:40 +0200)]
patch 8.2.1086: possibly using freed memory when text properties used

Problem:    Possibly using freed memory when text properties used when
            changing indent of a line.
Solution:   Compute the offset before calling ml_replace().

4 years agopatch 8.2.1085: Coverity complains about ignoring dict_add() return value v8.2.1085
Bram Moolenaar [Mon, 29 Jun 2020 18:23:32 +0000 (20:23 +0200)]
patch 8.2.1085: Coverity complains about ignoring dict_add() return value

Problem:    Coverity complains about ignoring dict_add() return value.
Solution:   Add (void).

4 years agopatch 8.2.1084: Lua: registering function has useless code v8.2.1084
Bram Moolenaar [Mon, 29 Jun 2020 18:20:33 +0000 (20:20 +0200)]
patch 8.2.1084: Lua: registering function has useless code

Problem:    Lua: registering function has useless code.
Solution:   Remove clearing grow arrays.

4 years agopatch 8.2.1083: crash when using reduce() on a NULL list v8.2.1083
Bram Moolenaar [Mon, 29 Jun 2020 18:09:36 +0000 (20:09 +0200)]
patch 8.2.1083: crash when using reduce() on a NULL list

Problem:    Crash when using reduce() on a NULL list.
Solution:   Only access the list when not NULL.

4 years agopatch 8.2.1082: Coverity complains about ignoring dict_add() return value v8.2.1082
Bram Moolenaar [Mon, 29 Jun 2020 17:55:58 +0000 (19:55 +0200)]
patch 8.2.1082: Coverity complains about ignoring dict_add() return value

Problem:    Coverity complains about ignoring dict_add() return value.
Solution:   Add (void).

4 years agopatch 8.2.1081: Lua: cannot use table.insert() and table.remove() v8.2.1081
Bram Moolenaar [Sun, 28 Jun 2020 20:41:26 +0000 (22:41 +0200)]
patch 8.2.1081: Lua: cannot use table.insert() and table.remove()

Problem:    Lua: cannot use table.insert() and table.remove().
Solution:   Add the list functions. (Prabir Shrestha, closes #6353)

4 years agopatch 8.2.1080: Vim9: no line break allowed in a for loop v8.2.1080
Bram Moolenaar [Sun, 28 Jun 2020 16:43:40 +0000 (18:43 +0200)]
patch 8.2.1080: Vim9: no line break allowed in a for loop

Problem:    Vim9: no line break allowed in a for loop.
Solution:   Skip line breaks in for command.

4 years agopatch 8.2.1079: Vim9: no line break allowed in a while loop v8.2.1079
Bram Moolenaar [Sun, 28 Jun 2020 13:51:16 +0000 (15:51 +0200)]
patch 8.2.1079: Vim9: no line break allowed in a while loop

Problem:    Vim9: no line break allowed in a while loop.
Solution:   Update stored loop lines when finding line breaks.

4 years agopatch 8.2.1078: highlight and match functionality together in one file v8.2.1078
Bram Moolenaar [Sun, 28 Jun 2020 11:17:26 +0000 (13:17 +0200)]
patch 8.2.1078: highlight and match functionality together in one file

Problem:    Highlight and match functionality together in one file.
Solution:   Move match functionality to a separate file. (Yegappan Lakshmanan,
            closes #6352)

4 years agopatch 8.2.1077: no enough test coverage for highlighting v8.2.1077
Bram Moolenaar [Sun, 28 Jun 2020 11:10:22 +0000 (13:10 +0200)]
patch 8.2.1077: no enough test coverage for highlighting

Problem:    No enough test coverage for highlighting.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #6351)

4 years agopatch 8.2.1076: Vim9: no line break allowed in :if expression v8.2.1076
Bram Moolenaar [Sat, 27 Jun 2020 21:07:36 +0000 (23:07 +0200)]
patch 8.2.1076: Vim9: no line break allowed in :if expression

Problem:    Vim9: no line break allowed in :if expression.
Solution:   Skip linebreak.

4 years agopatch 8.2.1075: Vim9: no line break allowed in :echo expression v8.2.1075
Bram Moolenaar [Sat, 27 Jun 2020 19:56:17 +0000 (21:56 +0200)]
patch 8.2.1075: Vim9: no line break allowed in :echo expression

Problem:    Vim9: no line break allowed in :echo expression.
Solution:   Skip linebreak.

4 years agopatch 8.2.1074: Vim9: no line break allowed after some operators v8.2.1074
Bram Moolenaar [Sat, 27 Jun 2020 19:18:00 +0000 (21:18 +0200)]
patch 8.2.1074: Vim9: no line break allowed after some operators

Problem:    Vim9: no line break allowed after some operators.
Solution:   Skip a line break after the operator.  Add
            eval_may_get_next_line() to simplify checking for a line break.

4 years agopatch 8.2.1073: Vim9: no line break allowed in () expression v8.2.1073
Bram Moolenaar [Sat, 27 Jun 2020 18:46:29 +0000 (20:46 +0200)]
patch 8.2.1073: Vim9: no line break allowed in () expression

Problem:    Vim9: no line break allowed in () expression.
Solution:   Skip a line break.

4 years agopatch 8.2.1072: missing libvterm test v8.2.1072
Bram Moolenaar [Sat, 27 Jun 2020 16:13:10 +0000 (18:13 +0200)]
patch 8.2.1072: missing libvterm test

Problem:    Missing libvterm test.
Solution:   Sync with libvterm revision 768.

4 years agopatch 8.2.1071: Vim9: no line break allowed inside a lambda v8.2.1071
Bram Moolenaar [Sat, 27 Jun 2020 16:06:45 +0000 (18:06 +0200)]
patch 8.2.1071: Vim9: no line break allowed inside a lambda

Problem:    Vim9: no line break allowed inside a lambda.
Solution:   Handle line break inside a lambda in Vim9 script.

4 years agopatch 8.2.1070: Vim9: leaking memory when lacking white space in dict v8.2.1070
Bram Moolenaar [Sat, 27 Jun 2020 15:04:05 +0000 (17:04 +0200)]
patch 8.2.1070: Vim9: leaking memory when lacking white space in dict

Problem:    Vim9: leaking memory when lacking white space in dict.
Solution:   Clear the typval.

4 years agopatch 8.2.1069: Vim9: fail to check for white space in list v8.2.1069
Bram Moolenaar [Sat, 27 Jun 2020 14:36:05 +0000 (16:36 +0200)]
patch 8.2.1069: Vim9: fail to check for white space in list

Problem:    Vim9: fail to check for white space in list.
Solution:   Add check for white space.

4 years agopatch 8.2.1068: Vim9: no line break allowed inside a dict v8.2.1068
Bram Moolenaar [Sat, 27 Jun 2020 12:11:53 +0000 (14:11 +0200)]
patch 8.2.1068: Vim9: no line break allowed inside a dict

Problem:    Vim9: no line break allowed inside a dict.
Solution:   Handle line break inside a dict in Vim9 script.

4 years agopatch 8.2.1067: expression "!expr->func()" does not work v8.2.1067
Bram Moolenaar [Sat, 27 Jun 2020 11:11:50 +0000 (13:11 +0200)]
patch 8.2.1067: expression "!expr->func()" does not work

Problem:    Expression "!expr->func()" does not work.
Solution:   Apply plus and minus earlier. (closes #6348)

4 years agopatch 8.2.1066: Lua arrays are zero based v8.2.1066
Bram Moolenaar [Sat, 27 Jun 2020 10:32:57 +0000 (12:32 +0200)]
patch 8.2.1066: Lua arrays are zero based

Problem:    Lua arrays are zero based.
Solution:   Make Lua arrays one based. (Prabir Shrestha, closes #6347)
            Note: this is not backwards compatible.

4 years agopatch 8.2.1065: Vim9: no line break allowed inside a list v8.2.1065
Bram Moolenaar [Fri, 26 Jun 2020 20:46:27 +0000 (22:46 +0200)]
patch 8.2.1065: Vim9: no line break allowed inside a list

Problem:    Vim9: no line break allowed inside a list.
Solution:   Handle line break inside a list in Vim9 script.

4 years agopatch 8.2.1064: Vim9: no line break allowed before comperators v8.2.1064
Bram Moolenaar [Fri, 26 Jun 2020 20:00:38 +0000 (22:00 +0200)]
patch 8.2.1064: Vim9: no line break allowed before comperators

Problem:    Vim9: no line break allowed before comperators.
Solution:   Check for comperator after line break.

4 years agopatch 8.2.1063: Vim9: no line break allowed before || or && v8.2.1063
Bram Moolenaar [Fri, 26 Jun 2020 19:38:51 +0000 (21:38 +0200)]
patch 8.2.1063: Vim9: no line break allowed before || or &&

Problem:    Vim9: no line break allowed before || or &&.
Solution:   Check for operator after line break.

4 years agopatch 8.2.1062: Vim9: no line break allowed inside "cond ? val1 : val2" v8.2.1062
Bram Moolenaar [Fri, 26 Jun 2020 19:28:25 +0000 (21:28 +0200)]
patch 8.2.1062: Vim9: no line break allowed inside "cond ? val1 : val2"

Problem:    Vim9: no line break allowed inside "cond ? val1 : val2".
Solution:   Check for operator after line break.

4 years agopatch 8.2.1061: insufficient testing for src/window.c v8.2.1061
Bram Moolenaar [Fri, 26 Jun 2020 18:41:39 +0000 (20:41 +0200)]
patch 8.2.1061: insufficient testing for src/window.c

Problem:    Insufficient testing for src/window.c.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #6345)

4 years agopatch 8.2.1060: not all elinks files are recognized v8.2.1060
Bram Moolenaar [Fri, 26 Jun 2020 18:23:45 +0000 (20:23 +0200)]
patch 8.2.1060: not all elinks files are recognized

Problem:    Not all elinks files are recognized.
Solution:   Just check for "elinks.conf". (Guido Cella, closes #6337)

4 years agopatch 8.2.1059: crash when using :tabonly in an autocommand v8.2.1059
Bram Moolenaar [Fri, 26 Jun 2020 17:44:06 +0000 (19:44 +0200)]
patch 8.2.1059: crash when using :tabonly in an autocommand

Problem:    Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan)
Solution:   Do not allow the autocommand window to be closed.

4 years agopatch 8.2.1058: multiline conceal causes display errors v8.2.1058
Bram Moolenaar [Thu, 25 Jun 2020 20:23:48 +0000 (22:23 +0200)]
patch 8.2.1058: multiline conceal causes display errors

Problem:    Multiline conceal causes display errors.
Solution:   Do not allow conceal cross over EOL. (closes #6326, closes #4854,
            closes #6302)

4 years agopatch 8.2.1057: cannot build with dynamic Lua v8.2.1057
Bram Moolenaar [Thu, 25 Jun 2020 18:56:42 +0000 (20:56 +0200)]
patch 8.2.1057: cannot build with dynamic Lua

Problem:    Cannot build with dynamic Lua.
Solution:   Add dll variables.

4 years agopatch 8.2.1056: wrong display when mixing match conceal and syntax conceal v8.2.1056
Bram Moolenaar [Thu, 25 Jun 2020 18:07:04 +0000 (20:07 +0200)]
patch 8.2.1056: wrong display when mixing match conceal and syntax conceal

Problem:    Wrong display when mixing match conceal and syntax conceal.
Solution:   Adjust how conceal flags are used. (closes #6327, closes #6303)

4 years agopatch 8.2.1055: no filetype set for pacman config files v8.2.1055
Bram Moolenaar [Thu, 25 Jun 2020 17:53:24 +0000 (19:53 +0200)]
patch 8.2.1055: no filetype set for pacman config files

Problem:    No filetype set for pacman config files.
Solution:   Recognize pacman.conf and *.hook. (Guido Cella, closes #6335)

4 years agopatch 8.2.1054: not so easy to pass a lua function to Vim v8.2.1054
Bram Moolenaar [Thu, 25 Jun 2020 17:27:56 +0000 (19:27 +0200)]
patch 8.2.1054: not so easy to pass a lua function to Vim

Problem:    Not so easy to pass a lua function to Vim.
Solution:   Convert a Lua function and closure to a Vim funcref. (Prabir
            Shrestha, closes #6246)

4 years agopatch 8.2.1053: insufficient testing for 'statusline' and 'tabline' v8.2.1053
Bram Moolenaar [Thu, 25 Jun 2020 17:01:36 +0000 (19:01 +0200)]
patch 8.2.1053: insufficient testing for 'statusline' and 'tabline'

Problem:    Insufficient testing for 'statusline' and 'tabline'.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #6333)

4 years agopatch 8.2.1052: build failure with older compilers v8.2.1052
Bram Moolenaar [Wed, 24 Jun 2020 21:02:40 +0000 (23:02 +0200)]
patch 8.2.1052: build failure with older compilers

Problem:    Build failure with older compilers.
Solution:   Move declaration to start of block.

4 years agopatch 8.2.1051: crash when changing a list while using reduce() on it v8.2.1051
Bram Moolenaar [Wed, 24 Jun 2020 20:07:46 +0000 (22:07 +0200)]
patch 8.2.1051: crash when changing a list while using reduce() on it

Problem:    Crash when changing a list while using reduce() on it.
Solution:   Lock the list. (closes #6330)

4 years agopatch 8.2.1050: missing change in struct v8.2.1050
Bram Moolenaar [Wed, 24 Jun 2020 19:00:25 +0000 (21:00 +0200)]
patch 8.2.1050: missing change in struct

Problem:    Missing change in struct.
Solution:   Add missing change.

4 years agopatch 8.2.1049: Vim9: leaking memory when using continuation line v8.2.1049
Bram Moolenaar [Wed, 24 Jun 2020 18:34:03 +0000 (20:34 +0200)]
patch 8.2.1049: Vim9: leaking memory when using continuation line

Problem:    Vim9: leaking memory when using continuation line.
Solution:   Keep a pointer to the continuation line in evalarg_T.  Centralize
            checking for a next command.

4 years agopatch 8.2.1048: build failure without the eval feature v8.2.1048
Bram Moolenaar [Wed, 24 Jun 2020 17:05:29 +0000 (19:05 +0200)]
patch 8.2.1048: build failure without the eval feature

Problem:    Build failure without the eval feature.
Solution:   Add dummy typedef.

4 years agopatch 8.2.1047: Vim9: script cannot use line continuation like :def function v8.2.1047
Bram Moolenaar [Wed, 24 Jun 2020 16:37:35 +0000 (18:37 +0200)]
patch 8.2.1047: Vim9: script cannot use line continuation like :def function

Problem:    Vim9: script cannot use line continuation like in a :def function.
Solution:   Pass the getline function pointer to the eval() functions.  Use it
            for addition and multiplication operators.

4 years agopatch 8.2.1046: insufficient tests for src/buffer.c v8.2.1046
Bram Moolenaar [Wed, 24 Jun 2020 11:37:35 +0000 (13:37 +0200)]
patch 8.2.1046: insufficient tests for src/buffer.c

Problem:    Insufficient tests for src/buffer.c.
Solution:   Add more tests.  Move comments related tests to a separate file.
            (Yegappan Lakshmanan, closes #6325)

4 years agopatch 8.2.1045: Vim9: line break before operator does not work v8.2.1045
Bram Moolenaar [Tue, 23 Jun 2020 20:26:05 +0000 (22:26 +0200)]
patch 8.2.1045: Vim9: line break before operator does not work

Problem:    Vim9: line break before operator does not work.
Solution:   Peek the next line for an operator.

4 years agopatch 8.2.1044: not all systemd file types are recognized v8.2.1044
Bram Moolenaar [Tue, 23 Jun 2020 19:01:38 +0000 (21:01 +0200)]
patch 8.2.1044: not all systemd file types are recognized

Problem:    Not all systemd file types are recognized.
Solution:   Match several more files. (Guido Cella, closes #6319)

4 years agopatch 8.2.1043: %a item in 'statusline' not tested v8.2.1043
Bram Moolenaar [Tue, 23 Jun 2020 18:00:50 +0000 (20:00 +0200)]
patch 8.2.1043: %a item in 'statusline' not tested

Problem:    %a item in 'statusline' not tested.
Solution:   Add a test. (Dominique PellĂ©, closes #6318)