]> granicus.if.org Git - vim/log
vim
16 months agopatch 9.0.1226: spurious empty line when using text properties v9.0.1226
Bram Moolenaar [Sat, 21 Jan 2023 15:54:59 +0000 (15:54 +0000)]
patch 9.0.1226: spurious empty line when using text properties

Problem:    Spurious empty line when using text propertie and virtual text.
Solution:   Do not set "text_prop_follows" when the other text property is not
            virtual text. (closes #11846)

16 months agopatch 9.0.1225: reading past the end of a line when formatting text v9.0.1225
Bram Moolenaar [Sat, 21 Jan 2023 13:09:19 +0000 (13:09 +0000)]
patch 9.0.1225: reading past the end of a line when formatting text

Problem:    Reading past the end of a line when formatting text.
Solution:   Check for not going over the end of the line.

16 months agopatch 9.0.1224: cannot call a :def function with a number for float argument v9.0.1224
Bram Moolenaar [Fri, 20 Jan 2023 18:49:46 +0000 (18:49 +0000)]
patch 9.0.1224: cannot call a :def function with a number for float argument

Problem:    Cannot call a :def function with a number for a float argument.
Solution:   Accept a number as well, convert it to a float.

16 months agopatch 9.0.1223: cannot use setcellwidths() below 0x100 v9.0.1223
K.Takata [Fri, 20 Jan 2023 16:00:55 +0000 (16:00 +0000)]
patch 9.0.1223: cannot use setcellwidths() below 0x100

Problem:    Cannot use setcellwidths() below 0x100.
Solution:   Also accept characters between 0x80 and 0x100. (Ken Takata,
            closes #11834)

16 months agopatch 9.0.1222: terminal tests are flaky on MacOS v9.0.1222
Yegappan Lakshmanan [Thu, 19 Jan 2023 17:49:58 +0000 (17:49 +0000)]
patch 9.0.1222: terminal tests are flaky on MacOS

Problem:    Terminal tests are flaky on MacOS.
Solution:   Add TermWait() calls. (Yegappan Lakshmanan, closes #11852)

16 months agopatch 9.0.1221: code is indented more than necessary v9.0.1221
Yegappan Lakshmanan [Wed, 18 Jan 2023 18:17:48 +0000 (18:17 +0000)]
patch 9.0.1221: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11833)

16 months agopatch 9.0.1220: termcap/terminfo entries do not indicate possible modifiers v9.0.1220
Bram Moolenaar [Wed, 18 Jan 2023 17:20:25 +0000 (17:20 +0000)]
patch 9.0.1220: termcap/terminfo entries do not indicate possible modifiers

Problem:    Termcap/terminfo entries do not indicate where modifiers might
            appear.
Solution:   Add ";*" for function keys where modifiers are likely to be used.

16 months agopatch 9.0.1219: handling of FORTIFY_SOURCE flags doesn't match Fedora usage v9.0.1219
Zdenek Dohnal [Wed, 18 Jan 2023 16:09:51 +0000 (16:09 +0000)]
patch 9.0.1219: handling of FORTIFY_SOURCE flags doesn't match Fedora usage

Problem:    Handling of FORTIFY_SOURCE flags doesn't match Fedora usage.
Solution:   Adjust the "sed" patterns. (Zdenek Dohnal, closes #11847)

16 months agopatch 9.0.1218: completion includes functions that don't work v9.0.1218
Kota Kato [Wed, 18 Jan 2023 15:27:38 +0000 (15:27 +0000)]
patch 9.0.1218: completion includes functions that don't work

Problem:    Completion includes functions that don't work.
Solution:   Skip functions that are not implemented. (Kota Kato,
            closes #11845)

16 months agopatch 9.0.1217: using an object member in a closure doesn't work v9.0.1217
Bram Moolenaar [Wed, 18 Jan 2023 14:51:07 +0000 (14:51 +0000)]
patch 9.0.1217: using an object member in a closure doesn't work

Problem:    Using an object member in a closure doesn't work.
Solution:   Initialize lv_loop_depth. (closes #11840)

16 months agopatch 9.0.1216: Coverity warns for ignoring return value v9.0.1216
Bram Moolenaar [Wed, 18 Jan 2023 12:45:30 +0000 (12:45 +0000)]
patch 9.0.1216: Coverity warns for ignoring return value

Problem:    Coverity warns for ignoring return value.
Solution:   Break out of loop if function fails.

16 months agopatch 9.0.1215: using isalpha() adds dependency on current locale v9.0.1215
zeertzjq [Tue, 17 Jan 2023 21:38:25 +0000 (21:38 +0000)]
patch 9.0.1215: using isalpha() adds dependency on current locale

Problem:    Using isalpha() adds dependency on current locale.
Solution:   Do not use isalpha() for recognizing a URL or the end of an Ex
            command. (closes #11835)

16 months agopatch 9.0.1214: file left behind after running tests v9.0.1214
Dominique Pelle [Tue, 17 Jan 2023 21:20:44 +0000 (21:20 +0000)]
patch 9.0.1214: file left behind after running tests

Problem:    File left behind after running tests.
Solution:   Delete the file. (Dominique PellĂ©, closes #11839)

16 months agopatch 9.0.1213: adding a line below the last one does not expand fold v9.0.1213
Brandon Simmons [Tue, 17 Jan 2023 19:48:07 +0000 (19:48 +0000)]
patch 9.0.1213: adding a line below the last one does not expand fold

Problem:    Adding a line below the last one does not expand fold.
Solution:   Do not skip mark_adjust() when adding lines below the last one.
            (Brandon Simmons, closes #11832, closes #10698)

16 months agopatch 9.0.1212: cannot read back what setcellwidths() has done v9.0.1212
Kota Kato [Tue, 17 Jan 2023 18:31:56 +0000 (18:31 +0000)]
patch 9.0.1212: cannot read back what setcellwidths() has done

Problem:    Cannot read back what setcellwidths() has done.
Solution:   Add getcellwidths(). (Kota Kato, closes #11837)

16 months agopatch 9.0.1211: storing value in interface member does not always work v9.0.1211
Bram Moolenaar [Mon, 16 Jan 2023 20:47:57 +0000 (20:47 +0000)]
patch 9.0.1211: storing value in interface member does not always work

Problem:    Storing value in interface member does not always work.
Solution:   Convert the index on the interface to the index on the object.

16 months agopatch 9.0.1210: compiler complains about declaration after label v9.0.1210
Bram Moolenaar [Mon, 16 Jan 2023 19:51:03 +0000 (19:51 +0000)]
patch 9.0.1210: compiler complains about declaration after label

Problem:    Compiler complains about declaration after label.
Solution:   Move declaration to beginning of block (John Marriott)

16 months agopatch 9.0.1209: getting interface member does not always work v9.0.1209
Bram Moolenaar [Mon, 16 Jan 2023 19:43:47 +0000 (19:43 +0000)]
patch 9.0.1209: getting interface member does not always work

Problem:    Getting interface member does not always work.
Solution:   Convert the index on the interface to the index on the object.
            (closes #11825)

16 months agopatch 9.0.1208: code is indented more than necessary v9.0.1208
Yegappan Lakshmanan [Mon, 16 Jan 2023 18:19:05 +0000 (18:19 +0000)]
patch 9.0.1208: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11819)

16 months agopatch 9.0.1207: error when object type is expected but getting "any" v9.0.1207
Bram Moolenaar [Mon, 16 Jan 2023 16:39:37 +0000 (16:39 +0000)]
patch 9.0.1207: error when object type is expected but getting "any"

Problem:    Error when object type is expected but getting "any".
Solution:   When actual type is "any" use a runtime type check.
            (closes #11826)

16 months agopatch 9.0.1206: testing with Python on AppVeyor does not work properly v9.0.1206
Christopher Plewright [Mon, 16 Jan 2023 13:01:28 +0000 (13:01 +0000)]
patch 9.0.1206: testing with Python on AppVeyor does not work properly

Problem:    Testing with Python on AppVeyor does not work properly.
Solution:   Fix typo.  Move most lines to the .bat file. (Christopher
            Plewright, closes #11828)

16 months agopatch 9.0.1205: crash when handling class that extends another class v9.0.1205
Bram Moolenaar [Sun, 15 Jan 2023 20:49:00 +0000 (20:49 +0000)]
patch 9.0.1205: crash when handling class that extends another class

Problem:    Crash when handling class that extends another class with more
            than one object members.
Solution:   Correct pointer computations. (closes #11824)

16 months agopatch 9.0.1204: expression compiled the wrong way after using an object v9.0.1204
Bram Moolenaar [Sun, 15 Jan 2023 20:18:55 +0000 (20:18 +0000)]
patch 9.0.1204: expression compiled the wrong way after using an object

Problem:    Expression compiled the wrong way after using an object.
Solution:   Generate constants before getting the type.

16 months agopatch 9.0.1203: return type of values() is always list<any> v9.0.1203
Bram Moolenaar [Sun, 15 Jan 2023 18:17:12 +0000 (18:17 +0000)]
patch 9.0.1203: return type of values() is always list<any>

Problem:    Return type of values() is always list<any>.
Solution:   Use the member type if possible. (issue #11822)

16 months agopatch 9.0.1202: crash when iterating over list of objects v9.0.1202
Bram Moolenaar [Sun, 15 Jan 2023 16:54:57 +0000 (16:54 +0000)]
patch 9.0.1202: crash when iterating over list of objects

Problem:    Crash when iterating over list of objects.
Solution:   Do not make a copy of tt_member for object or class.
            (closes #11823)

16 months agopatch 9.0.1201: assignment with operator doesn't work in object method v9.0.1201
Bram Moolenaar [Sun, 15 Jan 2023 15:51:48 +0000 (15:51 +0000)]
patch 9.0.1201: assignment with operator doesn't work in object method

Problem:    Assignment with operator doesn't work in object method.
Solution:   Handle loading the object member. (closes #11820)  Add a few more
            tests.

16 months agopatch 9.0.1200: AppVeyor builds with an old Python version v9.0.1200
Christopher Plewright [Sun, 15 Jan 2023 13:23:20 +0000 (13:23 +0000)]
patch 9.0.1200: AppVeyor builds with an old Python version

Problem:    AppVeyor builds with an old Python version.
Solution:   Switch from Python 3.8 to 3.11. (Christopher Plewright,
            closes #11814)

16 months agopatch 9.0.1199: crash when using kitty and using a mapping with <Esc> v9.0.1199
Bram Moolenaar [Sat, 14 Jan 2023 21:07:07 +0000 (21:07 +0000)]
patch 9.0.1199: crash when using kitty and using a mapping with <Esc>

Problem:    Crash when using kitty and using a mapping with <Esc>.
Solution:   Do not try setting did_simplify when it is NULL. (closes #11817)

16 months agopatch 9.0.1198: abstract class not supported yet v9.0.1198
Bram Moolenaar [Sat, 14 Jan 2023 13:12:06 +0000 (13:12 +0000)]
patch 9.0.1198: abstract class not supported yet

Problem:    Abstract class not supported yet.
Solution:   Implement abstract class and add tests.

16 months agopatch 9.0.1197: dump file missing from patch v9.0.1197
zeertzjq [Sat, 14 Jan 2023 12:41:17 +0000 (12:41 +0000)]
patch 9.0.1197: dump file missing from patch

Problem:    Dump file missing from patch.
Solution:   Add missing dump file.

16 months agopatch 9.0.1196: code is indented more than necessary v9.0.1196
Yegappan Lakshmanan [Sat, 14 Jan 2023 12:32:28 +0000 (12:32 +0000)]
patch 9.0.1196: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11813)

16 months agopatch 9.0.1195: restoring KeyTyped when building statusline not tested v9.0.1195
zeertzjq [Sat, 14 Jan 2023 11:46:49 +0000 (11:46 +0000)]
patch 9.0.1195: restoring KeyTyped when building statusline not tested

Problem:    Restoring KeyTyped when building statusline not tested.
Solution:   Add a test.  Clean up and fix other tests. (closes #11815)

16 months agopatch 9.0.1194: compiler warning for comparing pointer with int v9.0.1194
Bram Moolenaar [Fri, 13 Jan 2023 19:18:38 +0000 (19:18 +0000)]
patch 9.0.1194: compiler warning for comparing pointer with int

Problem:    Compiler warning for comparing pointer with int.
Solution:   Change NULL to zero.

16 months agopatch 9.0.1193: cannot map <Esc> when using the Kitty key protocol v9.0.1193
Bram Moolenaar [Fri, 13 Jan 2023 18:46:57 +0000 (18:46 +0000)]
patch 9.0.1193: cannot map <Esc> when using the Kitty key protocol

Problem:    Cannot map <Esc> when using the Kitty key protocol.
Solution:   Add a non-simplified mapping for K_ESC. (closes #11811)

16 months agopatch 9.0.1192: no error when class function argument shadows a member v9.0.1192
Bram Moolenaar [Fri, 13 Jan 2023 17:36:49 +0000 (17:36 +0000)]
patch 9.0.1192: no error when class function argument shadows a member

Problem:    No error when class function argument shadows a member.
Solution:   Check for shadowing.

16 months agopatch 9.0.1191: some Bazel files are not recognized v9.0.1191
Keith Smiley [Fri, 13 Jan 2023 15:35:17 +0000 (15:35 +0000)]
patch 9.0.1191: some Bazel files are not recognized

Problem:    Some Bazel files are not recognized.
Solution:   Add an extra Bazel pattern. (Keith Smily, closes #11807)

16 months agopatch 9.0.1190: AppVeyor runs much slower with MSVC 2022 v9.0.1190
Christopher Plewright [Fri, 13 Jan 2023 15:28:14 +0000 (15:28 +0000)]
patch 9.0.1190: AppVeyor runs much slower with MSVC 2022

Problem:    AppVeyor runs much slower with MSVC 2022.
Solution:   Go back to MSVC 2015. (Christopher Plewright, closes #11810)

16 months agopatch 9.0.1189: invalid memory access with folding and using "L" v9.0.1189
Bram Moolenaar [Fri, 13 Jan 2023 14:17:58 +0000 (14:17 +0000)]
patch 9.0.1189: invalid memory access with folding and using "L"

Problem:    Invalid memory access with folding and using "L".
Solution:   Prevent the cursor from moving to line zero.

16 months agopatch 9.0.1188: return value of type() for class and object unclear v9.0.1188
Bram Moolenaar [Thu, 12 Jan 2023 21:08:53 +0000 (21:08 +0000)]
patch 9.0.1188: return value of type() for class and object unclear

Problem:    Return value of type() for class and object unclear.
Solution:   Add v:t_object and v:t_class.

16 months agopatch 9.0.1187: test for using imported class fails v9.0.1187
Bram Moolenaar [Thu, 12 Jan 2023 20:39:09 +0000 (20:39 +0000)]
patch 9.0.1187: test for using imported class fails

Problem:    Test for using imported class fails.
Solution:   Skip over rest of type.

16 months agopatch 9.0.1186: imported class does not work when used twice in a line v9.0.1186
Bram Moolenaar [Thu, 12 Jan 2023 20:04:51 +0000 (20:04 +0000)]
patch 9.0.1186: imported class does not work when used twice in a line

Problem:    Imported class does not work when used twice in a line.
Solution:   Fix the type parsing.

16 months agopatch 9.0.1185: using class from imported script not tested v9.0.1185
Bram Moolenaar [Thu, 12 Jan 2023 17:06:27 +0000 (17:06 +0000)]
patch 9.0.1185: using class from imported script not tested

Problem:    Using class from imported script not tested.
Solution:   Add tests.  Implement what is missing.

16 months agopatch 9.0.1184: interface of an object is not recognized when checking type v9.0.1184
Bram Moolenaar [Thu, 12 Jan 2023 15:01:32 +0000 (15:01 +0000)]
patch 9.0.1184: interface of an object is not recognized when checking type

Problem:    Interface of an object is not recognized when checking type.
Solution:   Use the interface implemented by an object.

16 months agopatch 9.0.1183: code is indented more than necessary v9.0.1183
Yegappan Lakshmanan [Thu, 12 Jan 2023 12:33:30 +0000 (12:33 +0000)]
patch 9.0.1183: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11805)

16 months agopatch 9.0.1182: go checksum files are not recognized v9.0.1182
Amaan Q [Wed, 11 Jan 2023 21:24:26 +0000 (21:24 +0000)]
patch 9.0.1182: go checksum files are not recognized

Problem:    go checksum files are not recognized.
Solution:   Add the name of go checksum files. (Amaan Qureshi, closes #11803)

16 months agopatch 9.0.1181: class inheritance and typing insufficiently tested v9.0.1181
Bram Moolenaar [Wed, 11 Jan 2023 21:14:17 +0000 (21:14 +0000)]
patch 9.0.1181: class inheritance and typing insufficiently tested

Problem:    Class inheritance and typing insufficiently tested.
Solution:   Add more tests.  Implement missing behavior.

16 months agopatch 9.0.1180: compiler warnings without the +job feature v9.0.1180
Bram Moolenaar [Wed, 11 Jan 2023 19:11:15 +0000 (19:11 +0000)]
patch 9.0.1180: compiler warnings without the +job feature

Problem:    Compiler warnings without the +job feature.
Solution:   Adjust #ifdefs. (John Marriott)

16 months agopatch 9.0.1179: not all errors around inheritance are tested v9.0.1179
Bram Moolenaar [Wed, 11 Jan 2023 17:59:38 +0000 (17:59 +0000)]
patch 9.0.1179: not all errors around inheritance are tested

Problem:    Not all errors around inheritance are tested.
Solution:   Add more tests.  Fix uncovered problems.

16 months agopatch 9.0.1178: a child class cannot override functions from a base class v9.0.1178
Bram Moolenaar [Wed, 11 Jan 2023 15:59:05 +0000 (15:59 +0000)]
patch 9.0.1178: a child class cannot override functions from a base class

Problem:    A child class cannot override functions from a base class.
Solution:   Allow overriding and implement "super".

16 months agopatch 9.0.1177: AppVeyor uses some older tools v9.0.1177
Christopher Plewright [Wed, 11 Jan 2023 12:49:22 +0000 (12:49 +0000)]
patch 9.0.1177: AppVeyor uses some older tools

Problem:    AppVeyor uses some older tools.
Solution:   Switch to Visual Studio 2022 and Python 3.11. (Christopher
            Plewright, closes #11793)

16 months agopatch 9.0.1176: smithy files are not recognized v9.0.1176
Chris Kipp [Wed, 11 Jan 2023 12:20:10 +0000 (12:20 +0000)]
patch 9.0.1176: smithy files are not recognized

Problem:    smithy files are not recognized.
Solution:   Add a pattern for Smithy files. (Chris Kipp, closes #11804)

16 months agopatch 9.0.1175: the set_ref_in_item() function is too long v9.0.1175
Yegappan Lakshmanan [Wed, 11 Jan 2023 11:46:17 +0000 (11:46 +0000)]
patch 9.0.1175: the set_ref_in_item() function is too long

Problem:    The set_ref_in_item() function is too long.
Solution:   Use a separate function for more complicated types. (Yegappan
            Lakshmanan, closes #11802)

17 months agopatch 9.0.1174: smali files are not recognized v9.0.1174
Amaan Q [Tue, 10 Jan 2023 19:58:35 +0000 (19:58 +0000)]
patch 9.0.1174: smali files are not recognized

Problem:    Smali files are not recognized.
Solution:   Add a pattern for Smali files. (Amaan Qureshi, closes #11801)

17 months agopatch 9.0.1173: compiler warning for unused variable on non-Unix systems v9.0.1173
Bram Moolenaar [Tue, 10 Jan 2023 19:17:11 +0000 (19:17 +0000)]
patch 9.0.1173: compiler warning for unused variable on non-Unix systems

Problem:    Compiler warning for unused variable on non-Unix systems.
Solution:   Move #ifdef. (John Marriott)

17 months agopatch 9.0.1172: when 'selection' is "exclusive" then "1v" is one char short v9.0.1172
Bram Moolenaar [Tue, 10 Jan 2023 17:29:29 +0000 (17:29 +0000)]
patch 9.0.1172: when 'selection' is "exclusive" then "1v" is one char short

Problem:    When 'selection' is "exclusive" then "1v" is one char short.
Solution:   Add one character when 'selection' is "exclusive. (closes #11791)

17 months agopatch 9.0.1171: screen is not redrawn after using setcellwidths() v9.0.1171
Yasuhiro Matsumoto [Tue, 10 Jan 2023 16:03:08 +0000 (16:03 +0000)]
patch 9.0.1171: screen is not redrawn after using setcellwidths()

Problem:    Screen is not redrawn after using setcellwidths().
Solution:   Redraw the screen when the cell widths have changed. (Yasuhiro
            Matsumoto, closes #11800)

17 months agopatch 9.0.1170: LGTM badge no longer works v9.0.1170
mert [Tue, 10 Jan 2023 14:06:06 +0000 (14:06 +0000)]
patch 9.0.1170: LGTM badge no longer works

Problem:    LGTM badge no longer works.
Solution:   Remove the LGTM badge. (closes #11799)

17 months agopatch 9.0.1169: some key+modifier tests fail on some AppVeyor images v9.0.1169
Christopher Plewright [Tue, 10 Jan 2023 13:43:04 +0000 (13:43 +0000)]
patch 9.0.1169: some key+modifier tests fail on some AppVeyor images

Problem:    Some key+modifier tests fail on some AppVeyor images.
Solution:   Adjust the tests for key movements and fix the revealed bugs.
            (Christopher Plewright, closes #11798)

17 months agopatch 9.0.1168: code to enable/disable mouse is not from terminfo/termcap v9.0.1168
Bram Moolenaar [Tue, 10 Jan 2023 12:37:38 +0000 (12:37 +0000)]
patch 9.0.1168: code to enable/disable mouse is not from terminfo/termcap

Problem:    Code to enable/disable mouse is not from terminfo/termcap.
Solution:   Request the "XM" entry and use it to set 'ttymouse' if possible.

17 months agoUpdate runtime files
Bram Moolenaar [Mon, 9 Jan 2023 20:12:45 +0000 (20:12 +0000)]
Update runtime files

17 months agopatch 9.0.1167: EditorConfig files do not have their own filetype v9.0.1167
Gregory Anders [Mon, 9 Jan 2023 20:08:00 +0000 (20:08 +0000)]
patch 9.0.1167: EditorConfig files do not have their own filetype

Problem:    EditorConfig files do not have their own filetype.
Solution:   Add the "editorconfig" filetype. (Gregory Anders, closes #11779)

17 months agopatch 9.0.1166: code is indented more than necessary v9.0.1166
Yegappan Lakshmanan [Mon, 9 Jan 2023 19:04:23 +0000 (19:04 +0000)]
patch 9.0.1166: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11792)

17 months agopatch 9.0.1165: tests using IPv6 sometimes fail v9.0.1165
James McCoy [Mon, 9 Jan 2023 16:25:59 +0000 (16:25 +0000)]
patch 9.0.1165: tests using IPv6 sometimes fail

Problem:    Tests using IPv6 sometimes fail.
Solution:   Use getaddrinfo() and use try/catch. (James McCoy,
            closes #11783)

17 months agopatch 9.0.1164: evaluating string expression advances function line v9.0.1164
h-east [Mon, 9 Jan 2023 15:10:40 +0000 (15:10 +0000)]
patch 9.0.1164: evaluating string expression advances function line

Problem:    Evaluating string expression advances function line.
Solution:   Disable function lines while parsing a string expression.
            (Hirohito Higashi, closes #11796)

17 months agopatch 9.0.1163: compiler warning for implicit size_t/int conversion v9.0.1163
Mike Williams [Mon, 9 Jan 2023 14:18:13 +0000 (14:18 +0000)]
patch 9.0.1163: compiler warning for implicit size_t/int conversion

Problem:    Compiler warning for implicit size_t/int conversion.
Solution:   Add a type cast. (Mike Williams, closes #11795)

17 months agopatch 9.0.1162: configure does not handle all FORTIFY_SOURCE variants v9.0.1162
Zdenek Dohnal [Mon, 9 Jan 2023 13:18:08 +0000 (13:18 +0000)]
patch 9.0.1162: configure does not handle all FORTIFY_SOURCE variants

Problem:    Configure does not handle all FORTIFY_SOURCE variants.
Solution:   Also handle Fedora's default FORTIFY_SOURCE flags. (Zdenek Dohnal,
            closes #11794)

17 months agopatch 9.0.1161: Coverity warns for using strcpy() v9.0.1161
Bram Moolenaar [Mon, 9 Jan 2023 11:35:47 +0000 (11:35 +0000)]
patch 9.0.1161: Coverity warns for using strcpy()

Problem:    Coverity warns for using strcpy().
Solution:   Call a function to set the function name.

17 months agopatch 9.0.1160: ASAN error for ufunc_T allocated with wrong size v9.0.1160
Bram Moolenaar [Sun, 8 Jan 2023 20:31:18 +0000 (20:31 +0000)]
patch 9.0.1160: ASAN error for ufunc_T allocated with wrong size

Problem:    ASAN error for ufunc_T allocated with wrong size.
Solution:   Make sure the size can always fit the struct.

17 months agopatch 9.0.1159: extends argument for class not implemented yet v9.0.1159
Bram Moolenaar [Sun, 8 Jan 2023 19:54:10 +0000 (19:54 +0000)]
patch 9.0.1159: extends argument for class not implemented yet

Problem:    Extends argument for class not implemented yet.
Solution:   Basic implementation of "extends".

17 months agopatch 9.0.1158: code is indented more than necessary v9.0.1158
Yegappan Lakshmanan [Sun, 8 Jan 2023 13:44:24 +0000 (13:44 +0000)]
patch 9.0.1158: code is indented more than necessary

Problem:    Code is indented more than necessary.
Solution:   Use an early return where it makes sense. (Yegappan Lakshmanan,
            closes #11787)

17 months agopatch 9.0.1157: "implements" only handles one interface name v9.0.1157
Bram Moolenaar [Sat, 7 Jan 2023 14:51:03 +0000 (14:51 +0000)]
patch 9.0.1157: "implements" only handles one interface name

Problem:    "implements" only handles one interface name.
Solution:   Handle a comma separated list of names.  Check for duplicate
            names.

17 months agopatch 9.0.1156: tests fail because of a different error message v9.0.1156
Bram Moolenaar [Sat, 7 Jan 2023 13:07:11 +0000 (13:07 +0000)]
patch 9.0.1156: tests fail because of a different error message

Problem:    Tests fail because of a different error message.
Solution:   Don't give an error if a type name can't be found.

17 months agopatch 9.0.1155: cannot use a class as a type v9.0.1155
Bram Moolenaar [Sat, 7 Jan 2023 12:08:41 +0000 (12:08 +0000)]
patch 9.0.1155: cannot use a class as a type

Problem:    Cannot use a class as a type.
Solution:   Accept a class and interface name as a type.

17 months agopatch 9.0.1154: Coverity warns for dead code v9.0.1154
Bram Moolenaar [Sat, 7 Jan 2023 10:51:30 +0000 (10:51 +0000)]
patch 9.0.1154: Coverity warns for dead code

Problem:    Coverity warns for dead code.
Solution:   Remove condition that is always true.

17 months agopatch 9.0.1153: build error with some compilers v9.0.1153
Bram Moolenaar [Fri, 6 Jan 2023 18:59:08 +0000 (18:59 +0000)]
patch 9.0.1153: build error with some compilers

Problem:    Build error with some compilers.
Solution:   Clear pointer the right way.

17 months agopatch 9.0.1152: class "implements" argument not implemented v9.0.1152
Bram Moolenaar [Fri, 6 Jan 2023 18:42:20 +0000 (18:42 +0000)]
patch 9.0.1152: class "implements" argument not implemented

Problem:    Class "implements" argument not implemented.
Solution:   Implement "implements" argument.  Add basic checks for when a
            class implements an interface.

17 months agopatch 9.0.1151: build failure v9.0.1151
Bram Moolenaar [Thu, 5 Jan 2023 20:14:43 +0000 (20:14 +0000)]
patch 9.0.1151: build failure

Problem:    Build failure.
Solution:   Add missing part of :interface change.

17 months agopatch 9.0.1150: :interface is not implemented yet v9.0.1150
Bram Moolenaar [Thu, 5 Jan 2023 19:59:18 +0000 (19:59 +0000)]
patch 9.0.1150: :interface is not implemented yet

Problem:    :interface is not implemented yet.
Solution:   Implement the basics of :interface.

17 months agopatch 9.0.1149: class members may be garbage collected v9.0.1149
Bram Moolenaar [Thu, 5 Jan 2023 13:16:04 +0000 (13:16 +0000)]
patch 9.0.1149: class members may be garbage collected

Problem:    Class members may be garbage collected.
Solution:   Mark class members as being in use.

17 months agopatch 9.0.1148: cmdline test fails in the GUI v9.0.1148
Bram Moolenaar [Wed, 4 Jan 2023 18:59:57 +0000 (18:59 +0000)]
patch 9.0.1148: cmdline test fails in the GUI

Problem:    Cmdline test fails in the GUI.
Solution:   Skip the test when running in the GUI.

17 months agopatch 9.0.1147: cannot access a class member in a compiled function v9.0.1147
Bram Moolenaar [Wed, 4 Jan 2023 18:54:09 +0000 (18:54 +0000)]
patch 9.0.1147: cannot access a class member in a compiled function

Problem:    Cannot access a class member in a compiled function.
Solution:   Implement looking up a class member.

17 months agopatch 9.0.1146: MS-Windows: various special keys/modifiers are not mappable v9.0.1146
Christopher Plewright [Wed, 4 Jan 2023 18:06:00 +0000 (18:06 +0000)]
patch 9.0.1146: MS-Windows: various special keys/modifiers are not mappable

Problem:    MS-Windows: various special keys and modifiers are not mappable.
Solution:   Adjust the handling of keys with modifiers. (Christian Plewright,
            closes #11768)

17 months agopatch 9.0.1145: invalid memory access with recursive substitute expression v9.0.1145
Bram Moolenaar [Wed, 4 Jan 2023 17:17:54 +0000 (17:17 +0000)]
patch 9.0.1145: invalid memory access with recursive substitute expression

Problem:    Invalid memory access with recursive substitute expression.
Solution:   Check the return value of vim_regsub().

17 months agopatch 9.0.1144: reading beyond text v9.0.1144
Bram Moolenaar [Wed, 4 Jan 2023 15:56:51 +0000 (15:56 +0000)]
patch 9.0.1144: reading beyond text

Problem:    Reading beyond text.
Solution:   Add strlen_maxlen() and use it.

17 months agopatch 9.0.1143: invalid memory access with bad 'statusline' value v9.0.1143
Bram Moolenaar [Wed, 4 Jan 2023 14:31:49 +0000 (14:31 +0000)]
patch 9.0.1143: invalid memory access with bad 'statusline' value

Problem:    Invalid memory access with bad 'statusline' value.
Solution:   Avoid going over the NUL at the end.

17 months agopatch 9.0.1142: crash and/or memory leak when redefining function v9.0.1142
Bram Moolenaar [Wed, 4 Jan 2023 13:16:20 +0000 (13:16 +0000)]
patch 9.0.1142: crash and/or memory leak when redefining function

Problem:    Crash and/or memory leak when redefining function after error.
Solution:   Clear pointer after making a copy.  Clear arrays on failure.
            (closes #11774)

17 months agopatch 9.0.1141: 'cursorcolumn' and 'colorcolumn' wrong after concealing v9.0.1141
Alexey Radkov [Wed, 4 Jan 2023 11:15:30 +0000 (11:15 +0000)]
patch 9.0.1141: 'cursorcolumn' and 'colorcolumn' wrong after concealing

Problem:    'cursorcolumn' and 'colorcolumn' wrong after concealing and
            wrapping line.
Solution:   Reset "wlv.vcol_off" after each screen line. (Alexey Radkov,
            closes #11777)

17 months agopatch 9.0.1140: cannot call an object method in a compiled function v9.0.1140
Bram Moolenaar [Tue, 3 Jan 2023 19:08:50 +0000 (19:08 +0000)]
patch 9.0.1140: cannot call an object method in a compiled function

Problem:    Cannot call an object method in a compiled function.
Solution:   Compile the instructins to invoke an object method.

17 months agopatch 9.0.1139: cannot create a new object in a compiled function v9.0.1139
Bram Moolenaar [Tue, 3 Jan 2023 14:01:21 +0000 (14:01 +0000)]
patch 9.0.1139: cannot create a new object in a compiled function

Problem:    Cannot create a new object in a compiled function.
Solution:   Compile the instructins to create a new object.

17 months agopatch 9.0.1138: crash when expecting varargs but it is something else v9.0.1138
Bram Moolenaar [Tue, 3 Jan 2023 12:33:26 +0000 (12:33 +0000)]
patch 9.0.1138: crash when expecting varargs but it is something else

Problem:    Crash when expecting varargs but it is something else.
Solution:   Only use the member when the type is a list. (closes #11774)

17 months agopatch 9.0.1137: some conditions are always false v9.0.1137
zeertzjq [Tue, 3 Jan 2023 10:54:09 +0000 (10:54 +0000)]
patch 9.0.1137: some conditions are always false

Problem:    Some conditions are always false.
Solution:   Remove the useless conditions. (closes #11776)

17 months agopatch 9.0.1136: memory leak when getting class member type from expr v9.0.1136
Bram Moolenaar [Mon, 2 Jan 2023 21:04:04 +0000 (21:04 +0000)]
patch 9.0.1136: memory leak when getting class member type from expr

Problem:    Memory leak when getting class member type from expr.
Solution:   Clear the expression result.

17 months agopatch 9.0.1135: missing function argument v9.0.1135
Bram Moolenaar [Mon, 2 Jan 2023 20:38:01 +0000 (20:38 +0000)]
patch 9.0.1135: missing function argument

Problem:    Missing function argument.
Solution:   Add ignore case flag.

17 months agopatch 9.0.1134: comparing objects uses identity instead of equality v9.0.1134
Bram Moolenaar [Mon, 2 Jan 2023 20:32:24 +0000 (20:32 +0000)]
patch 9.0.1134: comparing objects uses identity instead of equality

Problem:    Comparing objects uses identity instead of equality.
Solution:   Compare the object values.

17 months agopatch 9.0.1133: error message names do not match the items v9.0.1133
Bram Moolenaar [Mon, 2 Jan 2023 18:10:04 +0000 (18:10 +0000)]
patch 9.0.1133: error message names do not match the items

Problem:    Error message names do not match the items.
Solution:   Add "_str" when the text contains "%s".

17 months agopatch 9.0.1132: code is indented more than needed v9.0.1132
Yegappan Lakshmanan [Mon, 2 Jan 2023 16:54:53 +0000 (16:54 +0000)]
patch 9.0.1132: code is indented more than needed

Problem:    Code is indented more than needed.
Solution:   Use an early return to reduce indentation. (Yegappan Lakshmanan,
            closes #11769)

17 months agopatch 9.0.1131: build failure without the +eval feature v9.0.1131
Bram Moolenaar [Mon, 2 Jan 2023 13:41:49 +0000 (13:41 +0000)]
patch 9.0.1131: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Move code inside #ifdef.

17 months agopatch 9.0.1130: unexpected output when autoloading a script v9.0.1130
Bram Moolenaar [Mon, 2 Jan 2023 13:08:01 +0000 (13:08 +0000)]
patch 9.0.1130: unexpected output when autoloading a script

Problem:    Unexpected output when autoloading a script for an interactive
            operation.
Solution:   Reset "KeyTyped" while loading a script and when handling a nested
            function. (closes #11773)

17 months agopatch 9.0.1129: sporadic Test_range() failure v9.0.1129
Bram Moolenaar [Mon, 2 Jan 2023 11:59:26 +0000 (11:59 +0000)]
patch 9.0.1129: sporadic Test_range() failure

Problem:    Sporadic Test_range() failure.
Solution:   Clear typeahead.  Move to a separate function. (issue #22771)

17 months agopatch 9.0.1128: build failure v9.0.1128
Bram Moolenaar [Sun, 1 Jan 2023 20:31:30 +0000 (20:31 +0000)]
patch 9.0.1128: build failure

Problem:    Build failure.
Solution:   Add type cast.  Add missing error messages.