]> granicus.if.org Git - vim/log
vim
23 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)

23 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)

23 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)

23 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)

23 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)

23 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.

23 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.

23 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".

23 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)

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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.

23 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)

23 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().

23 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.

23 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.

23 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)

23 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)

23 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.

23 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.

23 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)

23 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)

23 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.

23 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.

23 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.

23 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".

23 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)

23 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.

23 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)

23 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)

23 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.

23 months agopatch 9.0.1127: no error if function argument shadows class member v9.0.1127
Bram Moolenaar [Sun, 1 Jan 2023 19:53:30 +0000 (19:53 +0000)]
patch 9.0.1127: no error if function argument shadows class member

Problem:    No error if function argument shadows class member.
Solution:   Give an error for shadowing a class member.

23 months agopatch 9.0.1126: bracketed paste can be enabled when it is not recognized v9.0.1126
Bram Moolenaar [Sun, 1 Jan 2023 18:04:33 +0000 (18:04 +0000)]
patch 9.0.1126: bracketed paste can be enabled when it is not recognized

Problem:    Bracketed paste can be enabled when pasted text is not recognized.
Solution:   Output t_BE only when t_PS and t_PE are set.

23 months agopatch 9.0.1125: memory leak when using class functions v9.0.1125
Bram Moolenaar [Sun, 1 Jan 2023 14:11:27 +0000 (14:11 +0000)]
patch 9.0.1125: memory leak when using class functions

Problem:    Memory leak when using class functions.
Solution:   Clear and free the array with class functions.

23 months agopatch 9.0.1124: virtual text at a column position is truncated v9.0.1124
Bram Moolenaar [Sun, 1 Jan 2023 14:04:51 +0000 (14:04 +0000)]
patch 9.0.1124: virtual text at a column position is truncated

Problem:    Virtual text at a column position is truncated at the window edge.
            (Yegappan Lakshmanan)
Solution:   Do not truncated virtual text that is placed at a column.

23 months agopatch 9.0.1123: class function not implemented yet v9.0.1123
Bram Moolenaar [Sun, 1 Jan 2023 12:58:33 +0000 (12:58 +0000)]
patch 9.0.1123: class function not implemented yet

Problem:    Class function not implemented yet.
Solution:   Implement defining and calling a class function.

23 months agopatch 9.0.1122: class member access is not fully tested yet v9.0.1122
Bram Moolenaar [Sat, 31 Dec 2022 19:01:02 +0000 (19:01 +0000)]
patch 9.0.1122: class member access is not fully tested yet

Problem:    Class member access is not fully tested yet.
Solution:   Add more tests.

23 months agoUpdate runtime files
Bram Moolenaar [Sat, 31 Dec 2022 15:30:45 +0000 (15:30 +0000)]
Update runtime files

23 months agopatch 9.0.1121: cursor positioning and display problems with 'smoothscroll' v9.0.1121
Bram Moolenaar [Sat, 31 Dec 2022 15:13:22 +0000 (15:13 +0000)]
patch 9.0.1121: cursor positioning and display problems with 'smoothscroll'

Problem:    Cursor positioning and display problems with 'smoothscroll' and
            using "zt", "zb" or "zz".
Solution:   Adjust computations and conditions. (Yee Cheng Chin,
            closes #11764)

23 months agopatch 9.0.1120: tex filetype detection not sufficiently tested v9.0.1120
smjonas [Sat, 31 Dec 2022 14:46:53 +0000 (14:46 +0000)]
patch 9.0.1120: tex filetype detection not sufficiently tested

Problem:    Tex filetype detection not sufficiently tested.
Solution:   Add more test cases for "tex" detection. (Jonas Strittmatter,
            closes #11765)

23 months agopatch 9.0.1119: type of arguments not checked when calling a partial v9.0.1119
Bram Moolenaar [Sat, 31 Dec 2022 14:01:24 +0000 (14:01 +0000)]
patch 9.0.1119: type of arguments not checked when calling a partial

Problem:    Type of arguments not checked when calling a partial.
Solution:   Give an error for a wrong argument type. (closes #11753)

23 months agopatch 9.0.1118: sporadic test failures when using a terminal window v9.0.1118
James McCoy [Sat, 31 Dec 2022 11:44:57 +0000 (11:44 +0000)]
patch 9.0.1118: sporadic test failures when using a terminal window

Problem:    Sporadic test failures when using a terminal window.
Solution:   Adjust waiting times. (James McCoy, closes #11763)

23 months agopatch 9.0.1117: terminfo entries for bracketed paste are not used v9.0.1117
Bram Moolenaar [Fri, 30 Dec 2022 21:10:25 +0000 (21:10 +0000)]
patch 9.0.1117: terminfo entries for bracketed paste are not used

Problem:    Terminfo entries for bracketed paste are not used.
Solution:   Use the newly added terminfo entries for bracketed paste.
            Correct mixup of output strings and key codes.

23 months agopatch 9.0.1116: compiler may complain about an unused function v9.0.1116
Bram Moolenaar [Fri, 30 Dec 2022 19:54:53 +0000 (19:54 +0000)]
patch 9.0.1116: compiler may complain about an unused function

Problem:    Compiler may complain about an unused function.
Solution:   Add #ifdef. (John Marriott)

23 months agopatch 9.0.1115: code is indented more than needed v9.0.1115
Yegappan Lakshmanan [Fri, 30 Dec 2022 18:07:46 +0000 (18:07 +0000)]
patch 9.0.1115: code is indented more than needed

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

23 months agopatch 9.0.1114: CI does not use the latest Python version v9.0.1114
Philip H [Fri, 30 Dec 2022 17:41:17 +0000 (17:41 +0000)]
patch 9.0.1114: CI does not use the latest Python version

Problem:    CI does not use the latest Python version.
Solution:   Switch from Python 3.10 to 3.11. (closes #11761)

23 months agopatch 9.0.1113: users cannot easily try out a PR v9.0.1113
Christian Brabandt [Fri, 30 Dec 2022 17:28:12 +0000 (17:28 +0000)]
patch 9.0.1113: users cannot easily try out a PR

Problem:    Users cannot easily try out a PR.
Solution:   Add an "artifacts" section to the AppVeyor CI config. (Christian
            Brabandt, closes #11762)

23 months agopatch 9.0.1112: test_mswin_event() can hang v9.0.1112
Christopher Plewright [Fri, 30 Dec 2022 16:54:58 +0000 (16:54 +0000)]
patch 9.0.1112: test_mswin_event() can hang

Problem:    test_mswin_event() can hang.
Solution:   Add the "execute" argument to process events right away.
            (Christopher Plewright, closes #11760)

23 months agopatch 9.0.1111: termcap entries for RGB colors are not set automatically v9.0.1111
Bram Moolenaar [Fri, 30 Dec 2022 11:16:00 +0000 (11:16 +0000)]
patch 9.0.1111: termcap entries for RGB colors are not set automatically

Problem:    Termcap entries for RGB colors are not set automatically.
Solution:   Always set the termcap entries when +termguicolors is enabled.

23 months agopatch 9.0.1110: build fails on Mac OS X 10.4/10.5 v9.0.1110
Evan Miller [Fri, 30 Dec 2022 10:42:23 +0000 (10:42 +0000)]
patch 9.0.1110: build fails on Mac OS X 10.4/10.5

Problem:    Build fails on Mac OS X 10.4/10.5 .
Solution:   Check if the dispatch/dispatch.h header exists. (Evan Miller,
            closes #11746)

23 months agopatch 9.0.1109: leaking allocated type v9.0.1109
Bram Moolenaar [Fri, 30 Dec 2022 10:36:34 +0000 (10:36 +0000)]
patch 9.0.1109: leaking allocated type

Problem:    Leaking allocated type.
Solution:   Reset the "static" flag in the allocated type copy.

23 months agopatch 9.0.1108: type error when using "any" type and adding to float v9.0.1108
Bram Moolenaar [Thu, 29 Dec 2022 20:56:24 +0000 (20:56 +0000)]
patch 9.0.1108: type error when using "any" type and adding to float

Problem:    Type error when using "any" type and adding a number to a float.
Solution:   Accept both a number and a float. (closes #11753)

23 months agopatch 9.0.1107: float constant not recognized as float v9.0.1107
Bram Moolenaar [Tue, 27 Dec 2022 20:54:41 +0000 (20:54 +0000)]
patch 9.0.1107: float constant not recognized as float

Problem:    Float constant not recognized as float.
Solution:   Check the vartype instead of comparing with t_float.
            (closes #11754)

23 months agopatch 9.0.1106: not all postfix files are recognized v9.0.1106
KodeToad [Tue, 27 Dec 2022 20:17:19 +0000 (20:17 +0000)]
patch 9.0.1106: not all postfix files are recognized

Problem:    Not all postfix files are recognized.
Solution:   Recognize main.cf.proto files. (closes #11732)

23 months agopatch 9.0.1105: code is indented too much v9.0.1105
Yegappan Lakshmanan [Tue, 27 Dec 2022 19:54:52 +0000 (19:54 +0000)]
patch 9.0.1105: code is indented too much

Problem:    Code is indented too much.
Solution:   Use an early return. (Yegappan Lakshmanan, closes #11756)

23 months agopatch 9.0.1104: invalid memory access when checking function argument types v9.0.1104
Bram Moolenaar [Tue, 27 Dec 2022 17:25:05 +0000 (17:25 +0000)]
patch 9.0.1104: invalid memory access when checking function argument types

Problem:    Invalid memory access when checking function argument types.
Solution:   Do not check beyond the number of arguments. (closes #11755)

23 months agopatch 9.0.1103: jq files are not recognized v9.0.1103
David McDonald [Mon, 26 Dec 2022 15:35:18 +0000 (15:35 +0000)]
patch 9.0.1103: jq files are not recognized

Problem:    jq files are not recognized.
Solution:   Add detection of Jq files. (David McDonald, closes #11743)

23 months agopatch 9.0.1102: complicated use of #ifdef v9.0.1102
K.Takata [Mon, 26 Dec 2022 14:46:51 +0000 (14:46 +0000)]
patch 9.0.1102: complicated use of #ifdef

Problem:    Complicated use of #ifdef.
Solution:   Simplify #ifdef use. (Ken Takata, closes #11745)

23 months agopatch 9.0.1101: unused global variable v9.0.1101
Bram Moolenaar [Mon, 26 Dec 2022 14:37:44 +0000 (14:37 +0000)]
patch 9.0.1101: unused global variable

Problem:    Unused global variable.
Solution:   Remove the variable. (closes #11752)

23 months agopatch 9.0.1100: a hashtab with many removed items is not cleaned up v9.0.1100
Bram Moolenaar [Mon, 26 Dec 2022 13:51:26 +0000 (13:51 +0000)]
patch 9.0.1100: a hashtab with many removed items is not cleaned up

Problem:    A hashtab with many removed items is not cleaned up.
Solution:   Re-hash a hashtab even when the size didn't change if too many
            items were removed.

23 months agopatch 9.0.1099: trying to resize a hashtab may cause a problem v9.0.1099
Bram Moolenaar [Mon, 26 Dec 2022 13:08:06 +0000 (13:08 +0000)]
patch 9.0.1099: trying to resize a hashtab may cause a problem

Problem:    Trying to resize a hashtab may cause a problem.
Solution:   Do not try to resize a hashtab before adding an item.

23 months agopatch 9.0.1098: code uses too much indent v9.0.1098
Yegappan Lakshmanan [Mon, 26 Dec 2022 12:50:04 +0000 (12:50 +0000)]
patch 9.0.1098: code uses too much indent

Problem:    Code uses too much indent.
Solution:   Use an early return. (Yegappan Lakshmanan, closes #11747)

23 months agopatch 9.0.1097: tests are failing v9.0.1097
Bram Moolenaar [Sun, 25 Dec 2022 21:32:09 +0000 (21:32 +0000)]
patch 9.0.1097: tests are failing

Problem:    Tests are failing.
Solution:   Do clean up a hashtab when at the initial size.

23 months agopatch 9.0.1096: reallocating hashtab when the size didn't change v9.0.1096
Bram Moolenaar [Sun, 25 Dec 2022 20:46:13 +0000 (20:46 +0000)]
patch 9.0.1096: reallocating hashtab when the size didn't change

Problem:    Reallocating hashtab when the size didn't change.
Solution:   Bail out when the hashtab is already the desired size.

23 months agopatch 9.0.1095: using freed memory when declaration fails v9.0.1095
Bram Moolenaar [Sun, 25 Dec 2022 19:31:36 +0000 (19:31 +0000)]
patch 9.0.1095: using freed memory when declaration fails

Problem:    Using freed memory when declaration fails. (Yegappan Lakshmanan)
Solution:   After unreferencing an object set the reference to NULL.

23 months agopatch 9.0.1094: compiler warning when HAS_MESSAGE_WINDOW is not defined v9.0.1094
Bram Moolenaar [Sun, 25 Dec 2022 15:59:25 +0000 (15:59 +0000)]
patch 9.0.1094: compiler warning when HAS_MESSAGE_WINDOW is not defined

Problem:    Compiler warning when HAS_MESSAGE_WINDOW is not defined.
Solution:   Add UNUSED.

2 years agopatch 9.0.1093: using freed memory of object member v9.0.1093
Bram Moolenaar [Sat, 24 Dec 2022 21:24:06 +0000 (21:24 +0000)]
patch 9.0.1093: using freed memory of object member

Problem:    Using freed memory of object member. (Yegappan Lakshmanan)
Solution:   Make a copy of the object member when getting it.

2 years agopatch 9.0.1092: search error message doesn't show used pattern v9.0.1092
Rob Pilling [Fri, 23 Dec 2022 19:06:04 +0000 (19:06 +0000)]
patch 9.0.1092: search error message doesn't show used pattern

Problem:    Search error message doesn't show used pattern.
Solution:   Pass the actually used pattern to where the error message is
            given. (Rob Pilling, closes #11742)

2 years agopatch 9.0.1091: assignment to non-existing member causes a crash v9.0.1091
Bram Moolenaar [Fri, 23 Dec 2022 17:56:27 +0000 (17:56 +0000)]
patch 9.0.1091: assignment to non-existing member causes a crash

Problem:    Assignment to non-existing member causes a crash. (Yegappan
            Lakshmanan)
Solution:   Give an error message and bail out when a member cannot be found.

2 years agopatch 9.0.1090: FHIR Shorthand files are not recognized v9.0.1090
mgramigna [Fri, 23 Dec 2022 13:18:44 +0000 (13:18 +0000)]
patch 9.0.1090: FHIR Shorthand files are not recognized

Problem:    FHIR Shorthand files are not recognized.
Solution:   Add a pattern to detect FSH files. (Matthew Gramigna,
            closes #11738)

2 years agopatch 9.0.1089: unnessary assignment v9.0.1089
Luuk van Baal [Fri, 23 Dec 2022 12:17:33 +0000 (12:17 +0000)]
patch 9.0.1089: unnessary assignment

Problem:    unnessary assignment
Solution:   Remove the assignment. (Luuk van Baal, closes #1136)

2 years agopatch 9.0.1088: clang warns for unused variable v9.0.1088
Bram Moolenaar [Thu, 22 Dec 2022 21:06:41 +0000 (21:06 +0000)]
patch 9.0.1088: clang warns for unused variable

Problem:    Clang warns for unused variable.
Solution:   Adjust #ifdef. (John Marriott)

2 years agopatch 9.0.1087: autocommand test sometimes fails v9.0.1087
James McCoy [Thu, 22 Dec 2022 18:30:24 +0000 (18:30 +0000)]
patch 9.0.1087: autocommand test sometimes fails

Problem:    Autocommand test sometimes fails.
Solution:   Add a short delay. (James McCoy, closes #11737)

2 years agopatch 9.0.1086: display wrong in Windows terminal after exiting Vim v9.0.1086
Christopher Plewright [Thu, 22 Dec 2022 13:45:23 +0000 (13:45 +0000)]
patch 9.0.1086: display wrong in Windows terminal after exiting Vim

Problem:    Display wrong in Windows terminal after exiting Vim.
Solution:   Apply screen restore fix for Windows 11 also to Windows 10 builds.
            (Christopher Plewright, closes #11713, closes #11706)

2 years agopatch 9.0.1085: compiler warns for uninitialized variable v9.0.1085
Bram Moolenaar [Tue, 20 Dec 2022 20:47:28 +0000 (20:47 +0000)]
patch 9.0.1085: compiler warns for uninitialized variable

Problem:    Compiler warns for uninitialized variable.
Solution:   Initialize the variable.  Remove unused function. (John Marriott)

2 years agopatch 9.0.1084: code handling low level MS-Windows events cannot be tested v9.0.1084
Christopher Plewright [Tue, 20 Dec 2022 20:01:58 +0000 (20:01 +0000)]
patch 9.0.1084: code handling low level MS-Windows events cannot be tested

Problem:    Code handling low level MS-Windows events cannot be tested.
Solution:   Add test_mswin_event() and tests using it. (Christopher Plewright,
            closes #11622)

2 years agopatch 9.0.1083: empty and comment lines in a class cause an error v9.0.1083
Bram Moolenaar [Tue, 20 Dec 2022 13:38:22 +0000 (13:38 +0000)]
patch 9.0.1083: empty and comment lines in a class cause an error

Problem:    Empty and comment lines in a class cause an error.
Solution:   Skip empty and comment lines. (closes #11734)

2 years agopatch 9.0.1082: some jsonc files are not recognized v9.0.1082
kylo252 [Mon, 19 Dec 2022 20:42:49 +0000 (20:42 +0000)]
patch 9.0.1082: some jsonc files are not recognized

Problem:    Some jsonc files are not recognized.
Solution:   Add patterns for jsonc and move some from json to jsonc.
            (closes #11711)

2 years agopatch 9.0.1081: using "->" with split lines does not always work v9.0.1081
Bram Moolenaar [Mon, 19 Dec 2022 20:28:38 +0000 (20:28 +0000)]
patch 9.0.1081: using "->" with split lines does not always work

Problem:    Using "->" with split lines does not always work.
Solution:   Avoid trying to get another line. (closes #11723)

2 years agopatch 9.0.1080: the "kitty" terminfo entry is not widespread v9.0.1080
Bram Moolenaar [Mon, 19 Dec 2022 18:56:48 +0000 (18:56 +0000)]
patch 9.0.1080: the "kitty" terminfo entry is not widespread

Problem:    The "kitty" terminfo entry is not widespread, resulting in the
            kitty terminal not working properly.
Solution:   Go back to using "xterm-kitty" and avoid the problems it causes in
            another way.

2 years agopatch 9.0.1079: leaking memory when defining a user command fails v9.0.1079
zeertzjq [Mon, 19 Dec 2022 16:49:27 +0000 (16:49 +0000)]
patch 9.0.1079: leaking memory when defining a user command fails

Problem:    Leaking memory when defining a user command fails.
Solution:   Free "compl_arg" when needed. (closes #11726)

2 years agopatch 9.0.1078: with the +vartabs feature indent folding may use wrong 'ts' v9.0.1078
zeertzjq [Mon, 19 Dec 2022 15:51:44 +0000 (15:51 +0000)]
patch 9.0.1078: with the +vartabs feature indent folding may use wrong 'ts'

Problem:    With the +vartabs feature indent folding may use wrong 'tabstop'.
Solution:   Use the "buf" argument instead of "curbuf".

2 years agopatch 9.0.1077: can add text property with negative ID before virtual text v9.0.1077
Bram Moolenaar [Mon, 19 Dec 2022 13:31:06 +0000 (13:31 +0000)]
patch 9.0.1077: can add text property with negative ID before virtual text

Problem:    Can add text property with negative ID before virtual text
            property.
Solution:   Remember that a text property with a negative ID was used and give
            an appropriate error message. (closes #11725)
            Fix index computation.

2 years agopatch 9.0.1076: ASAN complains about NULL argument v9.0.1076
Bram Moolenaar [Mon, 19 Dec 2022 12:18:09 +0000 (12:18 +0000)]
patch 9.0.1076: ASAN complains about NULL argument

Problem:    ASAN complains about NULL argument.
Solution:   Skip memmove() when there is nothing to move.

2 years agopatch 9.0.1075: build fails if compiler doesn't allow declaration after case v9.0.1075
Bram Moolenaar [Sun, 18 Dec 2022 22:01:42 +0000 (22:01 +0000)]
patch 9.0.1075: build fails if compiler doesn't allow declaration after case

Problem:    build fails if the compiler doesn't allow for a declaration right
            after "case".
Solution:   Add a block.

2 years agopatch 9.0.1074: class members are not supported yet v9.0.1074
Bram Moolenaar [Sun, 18 Dec 2022 21:42:55 +0000 (21:42 +0000)]
patch 9.0.1074: class members are not supported yet

Problem:    Class members are not supported yet.
Solution:   Add initial support for class members.

2 years agopatch 9.0.1073: using "xterm-kitty" for 'term' causes problems v9.0.1073
Bram Moolenaar [Sun, 18 Dec 2022 17:47:18 +0000 (17:47 +0000)]
patch 9.0.1073: using "xterm-kitty" for 'term' causes problems

Problem:    Using "xterm-kitty" for 'term' causes problems.
Solution:   Remove the "xterm-" part when 'term' is set from $TERM.  Detect a
            few kitty-specific properties based on the version response
            instead of the terminal name.

2 years agopatch 9.0.1072: screenpos() column result in fold may be too small v9.0.1072
zeertzjq [Sun, 18 Dec 2022 12:28:59 +0000 (12:28 +0000)]
patch 9.0.1072: screenpos() column result in fold may be too small

Problem:    screenpos() column result in fold may be too small.
Solution:   Add space of 'number', sign column, etc. (closes #11715)

2 years agopatch 9.0.1071: Codecov action version is too specific v9.0.1071
dundargoc [Sat, 17 Dec 2022 15:47:45 +0000 (15:47 +0000)]
patch 9.0.1071: Codecov action version is too specific

Problem:    Codecov action version is too specific.
Solution:   Only use "v3" to automatically use the latest stable version.
            (closes #11720)

2 years agopatch 9.0.1070: reading beyond array size v9.0.1070
Bram Moolenaar [Sat, 17 Dec 2022 15:35:43 +0000 (15:35 +0000)]
patch 9.0.1070: reading beyond array size

Problem:    Reading beyond array size.
Solution:   Only use name[0] and name[1], do not use "name" as a string.

2 years agopatch 9.0.1069: diff mode highlight fails for special characters v9.0.1069
Bram Moolenaar [Sat, 17 Dec 2022 15:03:02 +0000 (15:03 +0000)]
patch 9.0.1069: diff mode highlight fails for special characters

Problem:    Diff mode highlight fails for special characters.
Solution:   Adjust condition for setting "diff_hlf".

2 years agopatch 9.0.1068: no information about whether request term codes has an effect v9.0.1068
Bram Moolenaar [Sat, 17 Dec 2022 13:49:16 +0000 (13:49 +0000)]
patch 9.0.1068: no information about whether request term codes has an effect

Problem:    No information about whether requesting term codes has an effect.
Solution:   Add ch_log() calls to report the effect of term code responses.
            Avoid deleting an entry and then adding back the same one.