]> granicus.if.org Git - vim/log
vim
13 months agopatch 9.0.1403: unused variables and functions master v9.0.1403
Dominique Pelle [Sun, 12 Mar 2023 21:20:59 +0000 (21:20 +0000)]
patch 9.0.1403: unused variables and functions

Problem:    Unused variables and functions.
Solution:   Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)

13 months agopatch 9.0.1402: crash when using null_class v9.0.1402
Bram Moolenaar [Sat, 11 Mar 2023 20:56:35 +0000 (20:56 +0000)]
patch 9.0.1402: crash when using null_class

Problem:    Crash when using null_class.
Solution:   Give an error when trying to use a null class.

13 months agopatch 9.0.1401: condition is always true v9.0.1401
zeertzjq [Sat, 11 Mar 2023 16:18:51 +0000 (16:18 +0000)]
patch 9.0.1401: condition is always true

Problem:    Condition is always true.
Solution:   Remove the condition. (closes #12139)

13 months agopatch 9.0.1400: find_file_in_path() is not reentrant v9.0.1400
Bram Moolenaar [Sat, 11 Mar 2023 13:55:53 +0000 (13:55 +0000)]
patch 9.0.1400: find_file_in_path() is not reentrant

Problem:    find_file_in_path() is not reentrant.
Solution:   Instead of global variables pass pointers to the functions.
            (closes #12093)

13 months agopatch 9.0.1399: highlight test script has a few problems v9.0.1399
lagygoill [Fri, 10 Mar 2023 18:37:11 +0000 (18:37 +0000)]
patch 9.0.1399: highlight test script has a few problems

Problem:    Highlight test script has a few problems.
Solution:   Rewrite the script in Vim9 syntax. (closes #10379)

13 months agopatch 9.0.1398: profile test repeats the headers many times v9.0.1398
Bram Moolenaar [Fri, 10 Mar 2023 18:28:12 +0000 (18:28 +0000)]
patch 9.0.1398: profile test repeats the headers many times

Problem:    Profile test repeats the headers many times.
Solution:   Put the headers in script variables.

13 months agopatch 9.0.1397: highlight for popupmenu kind and extra cannot be set v9.0.1397
Gianmaria Bajo [Fri, 10 Mar 2023 16:35:53 +0000 (16:35 +0000)]
patch 9.0.1397: highlight for popupmenu kind and extra cannot be set

Problem:    Highlight for popupmenu kind and extra cannot be set.
Solution:   Add PmenuKind, PmenuKindSel, PmenuExtra and PmenuExtraSel
            highlight groups and use them. (Gianmaria Bajo, closes #12114)

13 months agopatch 9.0.1396: sort(list, 'N') does not work in Vim9 script context v9.0.1396
Bram Moolenaar [Thu, 9 Mar 2023 22:06:49 +0000 (22:06 +0000)]
patch 9.0.1396: sort(list, 'N') does not work in Vim9 script context

Problem:    sort(list, 'N') does not work in Vim9 script context.
Solution:   Convert string to number without giving an error. (closes #12061)

14 months agopatch 9.0.1395: Odin files are not recognized v9.0.1395
Amaan Qureshi [Wed, 8 Mar 2023 20:35:17 +0000 (20:35 +0000)]
patch 9.0.1395: Odin files are not recognized

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

14 months agopatch 9.0.1394: Unx Tal files are not recognized v9.0.1394
Amaan Qureshi [Wed, 8 Mar 2023 19:55:50 +0000 (19:55 +0000)]
patch 9.0.1394: Unx Tal files are not recognized

Problem:    Unx Tal files are not recognized.
Solution:   Add a pattern for Unx Tal files. (Amaan Qureshi, closes #12117)

14 months agopatch 9.0.1393: Cairo files are not recognized v9.0.1393
Amaan Qureshi [Wed, 8 Mar 2023 16:39:21 +0000 (16:39 +0000)]
patch 9.0.1393: Cairo files are not recognized

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

14 months agopatch 9.0.1392: using NULL pointer with nested :open command v9.0.1392
Bram Moolenaar [Tue, 7 Mar 2023 21:05:04 +0000 (21:05 +0000)]
patch 9.0.1392: using NULL pointer with nested :open command

Problem:    Using NULL pointer with nested :open command.
Solution:   Check that ccline.cmdbuff is not NULL.

14 months agopatch 9.0.1391: "clear" macros are not always used v9.0.1391
Yegappan Lakshmanan [Tue, 7 Mar 2023 17:45:11 +0000 (17:45 +0000)]
patch 9.0.1391: "clear" macros are not always used

Problem:    "clear" macros are not always used.
Solution:   Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more
            places. (Yegappan Lakshmanan, closes #12104)

14 months agopatch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file v9.0.1390
Yegappan Lakshmanan [Tue, 7 Mar 2023 17:13:51 +0000 (17:13 +0000)]
patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file

Problem:    FOR_ALL_ macros are defined in an unexpected file.
Solution:   Move FOR_ALL_ macros to macros.h.  Add FOR_ALL_HASHTAB_ITEMS.
            (Yegappan Lakshmanan, closes #12109)

14 months agopatch 9.0.1389: Amiga: a couple of include files are included twice v9.0.1389
=?UTF-8?q?Ola=20S=C3=B6der?= [Tue, 7 Mar 2023 15:30:50 +0000 (15:30 +0000)]
patch 9.0.1389: Amiga: a couple of include files are included twice

Problem:    Amiga: a couple of include files are included twice.
Solution:   Remove duplicate includes. (Ola Söder, closes #12106)

14 months agopatch 9.0.1388: Amiga: not all builds use gethostname() v9.0.1388
=?UTF-8?q?Ola=20S=C3=B6der?= [Mon, 6 Mar 2023 20:36:55 +0000 (20:36 +0000)]
patch 9.0.1388: Amiga: not all builds use gethostname()

Problem:    Amiga: not all builds use gethostname().
Solution:   Use gethostname() for all builds except AROS. (Ola Söder,
            closes #12107)

14 months agopatch 9.0.1387: scrollbar test sporadically fails v9.0.1387
Christian Brabandt [Mon, 6 Mar 2023 15:29:29 +0000 (15:29 +0000)]
patch 9.0.1387: scrollbar test sporadically fails

Problem:    Scrollbar test sporadically fails.
Solution:   Mark the scrollbar test as flaky. (Christian Brabandt,
            closes #12113)

14 months agopatch 9.0.1386: options test fails with some window width v9.0.1386
zeertzjq [Mon, 6 Mar 2023 08:10:04 +0000 (08:10 +0000)]
patch 9.0.1386: options test fails with some window width

Problem:    Options test fails with some window width.
Solution:   Adjust what text the test checks with. (closes #12111)

14 months agopatch 9.0.1385: g'Esc is considered an error v9.0.1385
zeertzjq [Sun, 5 Mar 2023 21:15:06 +0000 (21:15 +0000)]
patch 9.0.1385: g'Esc is considered an error

Problem:    g'Esc is considered an error.
Solution:   Make g'Esc silently abandon the command. (closes #12110)

14 months agopatch 9.0.1384: setting HOMEBREW_NO_AUTO_UPDATE is not needed with version 4 v9.0.1384
Philip H [Sun, 5 Mar 2023 20:56:34 +0000 (20:56 +0000)]
patch 9.0.1384: setting HOMEBREW_NO_AUTO_UPDATE is not needed with version 4

Problem:    Setting HOMEBREW_NO_AUTO_UPDATE is not needed with Homebew version
            4.
Solution:   Remove setting HOMEBREW_NO_AUTO_UPDATE. (closes #12008)

14 months agopatch 9.0.1383: xxd: combination of little endian and cols fails v9.0.1383
Bram Moolenaar [Sun, 5 Mar 2023 20:17:39 +0000 (20:17 +0000)]
patch 9.0.1383: xxd: combination of little endian and cols fails

Problem:    xxd: combination of little endian and cols fails. (Aapo
            Rantalainen)
Solution:   Round up the space taken by the hex output. (closes #12097)

14 months agopatch 9.0.1382: failing test for strptime() doesn't show returned value v9.0.1382
Bram Moolenaar [Sun, 5 Mar 2023 19:27:49 +0000 (19:27 +0000)]
patch 9.0.1382: failing test for strptime() doesn't show returned value

Problem:    Failing test for strptime() doesn't show returned value.
Solution:   Use assert_equal() instead of assert_true().

14 months agopatch 9.0.1381: ACCESS_ names have a conflict with on some systems v9.0.1381
=?UTF-8?q?Ola=20S=C3=B6der?= [Sun, 5 Mar 2023 13:12:32 +0000 (13:12 +0000)]
patch 9.0.1381: ACCESS_ names have a conflict with on some systems

Problem:    ACCESS_ names have a conflict with on some systems.
Solution:   Rename by prepending VIM_. (Ola Söder, closes #12105)

14 months agopatch 9.0.1380: CTRL-X on 2**64 subtracts two v9.0.1380
Bram Moolenaar [Sat, 4 Mar 2023 20:47:39 +0000 (20:47 +0000)]
patch 9.0.1380: CTRL-X on 2**64 subtracts two

Problem:    CTRL-X on 2**64 subtracts two. (James McCoy)
Solution:   Correct computation for large number. (closes #12103)

14 months agopatch 9.0.1379: functions for handling options are not ordered v9.0.1379
Yegappan Lakshmanan [Sat, 4 Mar 2023 19:57:32 +0000 (19:57 +0000)]
patch 9.0.1379: functions for handling options are not ordered

Problem:    Functions for handling options are not ordered.
Solution:   Put functions in alphabetical order. (Yegappan Lakshmanan,
            closes #12101)

14 months agopatch 9.0.1378: illegal memory access when using virtual editing v9.0.1378
Bram Moolenaar [Sat, 4 Mar 2023 14:13:10 +0000 (14:13 +0000)]
patch 9.0.1378: illegal memory access when using virtual editing

Problem:    Illegal memory access when using virtual editing.
Solution:   Make sure "startspaces" is not negative.

14 months agopatch 9.0.1377: job_status() may return "dead" if the process parent changed v9.0.1377
Bram Moolenaar [Sat, 4 Mar 2023 13:23:26 +0000 (13:23 +0000)]
patch 9.0.1377: job_status() may return "dead" if the process parent changed

Problem:    job_status() may return "dead" if the process parent changed.
Solution:   Call mch_process_running() to check if the job is still alive.

14 months agopatch 9.0.1376: accessing invalid memory with put in Visual block mode v9.0.1376
Bram Moolenaar [Fri, 3 Mar 2023 21:11:52 +0000 (21:11 +0000)]
patch 9.0.1376: accessing invalid memory with put in Visual block mode

Problem:    Accessing invalid memory with put in Visual block mode.
Solution:   Adjust the cursor column if needed.

14 months agopatch 9.0.1375: crash when getting member of obj of unknown class v9.0.1375
Ernie Rael [Fri, 3 Mar 2023 15:05:30 +0000 (15:05 +0000)]
patch 9.0.1375: crash when getting member of obj of unknown class

Problem:    Crash when getting member of obj of unknown class.
Solution:   Check for NULL class and give an error message. (Ernie Rael,
            closes #12096)

14 months agopatch 9.0.1374: function for setting options not used consistently v9.0.1374
Yegappan Lakshmanan [Fri, 3 Mar 2023 12:26:15 +0000 (12:26 +0000)]
patch 9.0.1374: function for setting options not used consistently

Problem:    Function for setting options not used consistently.
Solution:   Use a function for 'encoding' and terminal options. (Yegappan
            Lakshmanan, closes #12099)

14 months agopatch 9.0.1373: wrong text displayed when using both 'linebreak' and 'list' v9.0.1373
h-east [Thu, 2 Mar 2023 18:49:09 +0000 (18:49 +0000)]
patch 9.0.1373: wrong text displayed when using both 'linebreak' and 'list'

Problem:    Wrong text displayed when using both 'linebreak' and 'list'.
Solution:   Only set "c_extra" to NUL when "p_extra" is not empty. (Hirohito
            Higashi, closes #12065)

14 months agopatch 9.0.1372: test for 'toolbariconsize' may fail v9.0.1372
James McCoy [Thu, 2 Mar 2023 18:36:33 +0000 (18:36 +0000)]
patch 9.0.1372: test for 'toolbariconsize' may fail

Problem:    Test for 'toolbariconsize' may fail.
Solution:   Only test 'toolbariconsize' when it is supported. (James McCoy,
            closes #12095)

14 months agopatch 9.0.1371: ballooneval interferes with Insert completion v9.0.1371
zeertzjq [Thu, 2 Mar 2023 17:51:32 +0000 (17:51 +0000)]
patch 9.0.1371: ballooneval interferes with Insert completion

Problem:    Ballooneval interferes with Insert completion.
Solution:   Ignore mouse-move events when completing. (closes #12094,
            closes #12092)

14 months agopatch 9.0.1370: crash when using a NULL object v9.0.1370
Bram Moolenaar [Thu, 2 Mar 2023 17:38:33 +0000 (17:38 +0000)]
patch 9.0.1370: crash when using a NULL object

Problem:    Crash when using a NULL object. (Ernie Rael)
Solution:   Check for NULL and give an error message. (closes #12083)

14 months agopatch 9.0.1369: still some "else if" constructs for setting options v9.0.1369
Yegappan Lakshmanan [Thu, 2 Mar 2023 14:46:48 +0000 (14:46 +0000)]
patch 9.0.1369: still some "else if" constructs for setting options

Problem:    Still some "else if" constructs for setting options.
Solution:   Add a few more functions for handling options. (Yegappan
            Lakshmanan, closes #12090)

14 months agopatch 9.0.1368: Bass files are not recognized v9.0.1368
Amaan Qureshi [Thu, 2 Mar 2023 12:51:18 +0000 (12:51 +0000)]
patch 9.0.1368: Bass files are not recognized

Problem:    Bass files are not recognized.
Solution:   Add patterns for Bass files. (Amaan Qureshi, closes #12088)

14 months agopatch 9.0.1367: divide by zero in zero-width window v9.0.1367
Bram Moolenaar [Wed, 1 Mar 2023 17:55:31 +0000 (17:55 +0000)]
patch 9.0.1367: divide by zero in zero-width window

Problem:    Divide by zero in zero-width window.
Solution:   Check the width is positive.

14 months agopatch 9.0.1366: functions for setting options are in random order v9.0.1366
Yegappan Lakshmanan [Wed, 1 Mar 2023 12:44:06 +0000 (12:44 +0000)]
patch 9.0.1366: functions for setting options are in random order

Problem:    Functions for setting options are in random order.
Solution:   Sort functions alphabetically. (Yegappan Lakshmanan,
            closes #12082)

14 months agopatch 9.0.1365: dead test code v9.0.1365
zeertzjq [Tue, 28 Feb 2023 16:02:35 +0000 (16:02 +0000)]
patch 9.0.1365: dead test code

Problem:    Dead test code.
Solution:   Remove code that depends on Farsi, which has been removed.
            (closes #12084)

14 months agopatch 9.0.1364: build error with older Mac OS v9.0.1364
Yee Cheng Chin [Tue, 28 Feb 2023 15:51:23 +0000 (15:51 +0000)]
patch 9.0.1364: build error with older Mac OS

Problem:    Build error with older Mac OS.
Solution:   Adjust #ifdef. (Yee Cheng Chin, closes #12074)

14 months agopatch 9.0.1363: crash when :def function has :break in skipped block v9.0.1363
Bram Moolenaar [Mon, 27 Feb 2023 22:06:51 +0000 (22:06 +0000)]
patch 9.0.1363: crash when :def function has :break in skipped block

Problem:    Crash when :def function has :break in skipped block. (Ernie Rael)
Solution:   Don't generate a jump for a skipped :break. (closes #12077)

14 months agopatch 9.0.1362: ml_get error when going to another tab v9.0.1362
Bram Moolenaar [Mon, 27 Feb 2023 17:18:01 +0000 (17:18 +0000)]
patch 9.0.1362: ml_get error when going to another tab

Problem:    ml_get error when going to another tab. (Daniel J. Perry)
Solution:   Do not call update_topline() if "curwin" is invalid.
            (closes #11907)

14 months agoUpdate runtime files
Bram Moolenaar [Mon, 27 Feb 2023 15:49:53 +0000 (15:49 +0000)]
Update runtime files

14 months agopatch 9.0.1361: extendnew() not sufficiently tested v9.0.1361
zeertzjq [Mon, 27 Feb 2023 14:59:57 +0000 (14:59 +0000)]
patch 9.0.1361: extendnew() not sufficiently tested

Problem:    extendnew() not sufficiently tested.
Solution:   Add a few more test cases for extendnew(). (closes #12075)

14 months agopatch 9.0.1360: Cue files are not recognized v9.0.1360
Amaan Qureshi [Mon, 27 Feb 2023 14:32:08 +0000 (14:32 +0000)]
patch 9.0.1360: Cue files are not recognized

Problem:    Cue files are not recognized.
Solution:   Add patterns for Cue files. (Amaan Qureshi, closes #12067)

14 months agopatch 9.0.1359: too many "else if" statements in handling options v9.0.1359
Yegappan Lakshmanan [Mon, 27 Feb 2023 12:47:47 +0000 (12:47 +0000)]
patch 9.0.1359: too many "else if" statements in handling options

Problem:    Too many "else if" statements in handling options.
Solution:   Add more functions for handling option changes. (Yegappan
            Lakshmanan, closes #12060)

14 months agopatch 9.0.1358: compilation error with some compilers v9.0.1358
Bram Moolenaar [Mon, 27 Feb 2023 08:07:14 +0000 (08:07 +0000)]
patch 9.0.1358: compilation error with some compilers

Problem:    Compilation error with some compilers.
Solution:   Avoid using "class" as member name.

14 months agopatch 9.0.1357: using null_object results in an internal error v9.0.1357
Bram Moolenaar [Sun, 26 Feb 2023 18:58:23 +0000 (18:58 +0000)]
patch 9.0.1357: using null_object results in an internal error

Problem:    Using null_object results in an internal error. (Ernie Rael)
Solution:   Add instructions for pushing an object and class. (closes #12044)

14 months agopatch 9.0.1356: cannot cancel "gr" with Esc v9.0.1356
zeertzjq [Sun, 26 Feb 2023 14:47:24 +0000 (14:47 +0000)]
patch 9.0.1356: cannot cancel "gr" with Esc

Problem:    Cannot cancel "gr" with Esc.
Solution:   Make "gr<Esc>" do nothing. (closes #12064)

14 months agopatch 9.0.1355: no error when declaring a class twice v9.0.1355
Bram Moolenaar [Sat, 25 Feb 2023 19:59:31 +0000 (19:59 +0000)]
patch 9.0.1355: no error when declaring a class twice

Problem:    No error when declaring a class twice. (Ernie Rael)
Solution:   Pass different flags when declaring the class. (closes #12057)

14 months agopatch 9.0.1354: "gr CTRL-G" stays in virtual replace mode v9.0.1354
Bram Moolenaar [Sat, 25 Feb 2023 14:24:44 +0000 (14:24 +0000)]
patch 9.0.1354: "gr CTRL-G" stays in virtual replace mode

Problem:    "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty)
Solution:   Prepend CTRL-V before control characters. (closes #12045)

14 months agopatch 9.0.1353: too many "else if" statements to handle option values v9.0.1353
Yegappan Lakshmanan [Sat, 25 Feb 2023 11:59:33 +0000 (11:59 +0000)]
patch 9.0.1353: too many "else if" statements to handle option values

Problem:    Too many "else if" statements to handle option values.
Solution:   Add more functions to handle option value changes. (Yegappan
            Lakshmanan, closes #12058)

14 months agopatch 9.0.1352: "ignore" files are outdated v9.0.1352
K.Takata [Fri, 24 Feb 2023 17:16:41 +0000 (17:16 +0000)]
patch 9.0.1352: "ignore" files are outdated

Problem:    "ignore" files are outdated.
Solution:   Update "ignore" files. (Ken Takata, closes #12056)

14 months agopatch 9.0.1351: Dhall files are not recognized v9.0.1351
Amaan Qureshi [Fri, 24 Feb 2023 16:01:54 +0000 (16:01 +0000)]
patch 9.0.1351: Dhall files are not recognized

Problem:    Dhall files are not recognized.
Solution:   Add patterns for Dhall files. (Amaan Qureshi, closes #12052)

14 months agopatch 9.0.1350: CPON files are not recognized v9.0.1350
Amaan Qureshi [Fri, 24 Feb 2023 12:08:45 +0000 (12:08 +0000)]
patch 9.0.1350: CPON files are not recognized

Problem:    CPON files are not recognized.
Solution:   Add patterns for CPON files. (Amaan Qureshi, closes #12053)

14 months agopatch 9.0.1349: "gr" with a count fails v9.0.1349
Bram Moolenaar [Thu, 23 Feb 2023 22:14:37 +0000 (22:14 +0000)]
patch 9.0.1349: "gr" with a count fails

Problem:    "gr" with a count fails.
Solution:   Break out of the loop only after using the count.

14 months agopatch 9.0.1348: Un-grammar files are not recognized v9.0.1348
Amaan Qureshi [Thu, 23 Feb 2023 20:31:08 +0000 (20:31 +0000)]
patch 9.0.1348: Un-grammar files are not recognized

Problem:    Un-grammar files are not recognized.
Solution:   Add patterns for Un-grammar files. (Amaan Qureshi, closes #12034)

14 months agopatch 9.0.1347: "gr CTRL-O" stays in Insert mode v9.0.1347
Bram Moolenaar [Thu, 23 Feb 2023 20:13:04 +0000 (20:13 +0000)]
patch 9.0.1347: "gr CTRL-O" stays in Insert mode

Problem:    "gr CTRL-O" stays in Insert mode. (Pierre Ganty)
Solution:   Do not set restart_edit when "cmdchar" is 'v'. (closes #12045)

14 months agopatch 9.0.1346: Starlark files are not recognized v9.0.1346
Amaan Qureshi [Thu, 23 Feb 2023 15:38:49 +0000 (15:38 +0000)]
patch 9.0.1346: Starlark files are not recognized

Problem:    Starlark files are not recognized.
Solution:   Add patterns for Starlark files. (Amaan Qureshi, closes #12049)

14 months agopatch 9.0.1345: too many "else if" statements for handling options v9.0.1345
Yegappan Lakshmanan [Thu, 23 Feb 2023 15:05:22 +0000 (15:05 +0000)]
patch 9.0.1345: too many "else if" statements for handling options

Problem:    Too many "else if" statements for handling options.
Solution:   Add more functions to handle options. (Yegappan Lakshmanan,
            closes #12051)

14 months agopatch 9.0.1344: check for OSC escape sequence doesn't work v9.0.1344
Bram Moolenaar [Thu, 23 Feb 2023 13:54:01 +0000 (13:54 +0000)]
patch 9.0.1344: check for OSC escape sequence doesn't work

Problem:    Check for OSC escape sequence doesn't work.
Solution:   Fix typo in index.

14 months agopatch 9.0.1343: check for OSC escape sequence doesn't work v9.0.1343
Johan Mattsson [Thu, 23 Feb 2023 12:46:04 +0000 (12:46 +0000)]
patch 9.0.1343: check for OSC escape sequence doesn't work

Problem:    Check for OSC escape sequence doesn't work.
Solution:   Move square bracket to the right place. (Johan Mattsson,
            closes #12048)

14 months agopatch 9.0.1342: MS-Windows: linking may fail with space in directory name v9.0.1342
zhihaoy [Thu, 23 Feb 2023 12:36:22 +0000 (12:36 +0000)]
patch 9.0.1342: MS-Windows: linking may fail with space in directory name

Problem:    MS-Windows: linking may fail with space in directory name.
Solution:   Add quotes. (closes #12050)

14 months agopatch 9.0.1341: build error with mzscheme but without GUI v9.0.1341
K.Takata [Wed, 22 Feb 2023 13:14:36 +0000 (13:14 +0000)]
patch 9.0.1341: build error with mzscheme but without GUI

Problem:    Build error with mzscheme but without GUI.
Solution:   Adjust #ifdefs. (Ken Takata, closes #12042)  Also fix function
            argument.

14 months agopatch 9.0.1340: Coverity warns for using NULL pointer v9.0.1340
Bram Moolenaar [Wed, 22 Feb 2023 12:35:17 +0000 (12:35 +0000)]
patch 9.0.1340: Coverity warns for using NULL pointer

Problem:    Coverity warns for using NULL pointer.
Solution:   Check that lhs_type is not NULL.

14 months agopatch 9.0.1339: no test for :disassemble with class function v9.0.1339
Bram Moolenaar [Tue, 21 Feb 2023 20:09:46 +0000 (20:09 +0000)]
patch 9.0.1339: no test for :disassemble with class function

Problem:    No test for :disassemble with class function.
Solution:   Add a test.

14 months agopatch 9.0.1338: :defcompile and :disassemble can't find class method v9.0.1338
Bram Moolenaar [Tue, 21 Feb 2023 19:55:14 +0000 (19:55 +0000)]
patch 9.0.1338: :defcompile and :disassemble can't find class method

Problem:    :defcompile and :disassemble can't find class method. (Ernie Rael)
Solution:   Make a class name and class.method name work. (closes #11984)

14 months agopatch 9.0.1337: yuck files are not recognized v9.0.1337
Amaan Qureshi [Tue, 21 Feb 2023 15:18:50 +0000 (15:18 +0000)]
patch 9.0.1337: yuck files are not recognized

Problem:    Yuck files are not recognized.
Solution:   Add a filetype pattern for yuck files. (Amaan Qureshi,
            closes #12033)

14 months agopatch 9.0.1336: functions without arguments are not always declared properly v9.0.1336
Yegappan Lakshmanan [Tue, 21 Feb 2023 14:27:41 +0000 (14:27 +0000)]
patch 9.0.1336: functions without arguments are not always declared properly

Problem:    Functions without arguments are not always declared properly.
Solution:   Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)

14 months agopatch 9.0.1335: no test for bad use of spaces in help files v9.0.1335
h-east [Tue, 21 Feb 2023 13:33:17 +0000 (13:33 +0000)]
patch 9.0.1335: no test for bad use of spaces in help files

Problem:    No test for bad use of spaces in help files.
Solution:   Add checks for use of spaces in help files.  Ignore intentional
            spaces. (Hirohito Higashi, closes #11952)

14 months agopatch 9.0.1334: using tt_member for the class leads to mistakes v9.0.1334
Bram Moolenaar [Tue, 21 Feb 2023 12:38:51 +0000 (12:38 +0000)]
patch 9.0.1334: using tt_member for the class leads to mistakes

Problem:    Using tt_member for the class leads to mistakes.
Solution:   Add a separate tt_class field.

14 months agoUpdate runtime files.
Bram Moolenaar [Mon, 20 Feb 2023 20:44:55 +0000 (20:44 +0000)]
Update runtime files.

14 months agopatch 9.0.1333: when redo'ing twice <ScriptCmd> may not get the script ID v9.0.1333
Bram Moolenaar [Mon, 20 Feb 2023 18:44:33 +0000 (18:44 +0000)]
patch 9.0.1333: when redo'ing twice <ScriptCmd> may not get the script ID

Problem:    When redo'ing twice <ScriptCmd> may not get the script ID.
Solution:   When "last_used_map" map is not set use "last_used_sid".
            (closes #11930)

14 months agopatch 9.0.1332: crash when using buffer-local user command in cmdline window v9.0.1332
zeertzjq [Mon, 20 Feb 2023 15:25:13 +0000 (15:25 +0000)]
patch 9.0.1332: crash when using buffer-local user command in cmdline window

Problem:    Crash when using buffer-local user command in cmdline window.
            (Karl Yngve Lervåg)
Solution:   Use the right buffer to find the user command. (closes #12030,
            closes #12029)

14 months agopatch 9.0.1331: illegal memory access when using :ball in Visual mode v9.0.1331
Pavel Mayorov [Mon, 20 Feb 2023 14:35:20 +0000 (14:35 +0000)]
patch 9.0.1331: illegal memory access when using :ball in Visual mode

Problem:    Illegal memory access when using :ball in Visual mode.
Solution:   Stop Visual mode when using :ball. (Pavel Mayorov, closes #11923)

14 months agopatch 9.0.1330: handling new value of an option has a long "else if" chain v9.0.1330
Yegappan Lakshmanan [Mon, 20 Feb 2023 12:16:39 +0000 (12:16 +0000)]
patch 9.0.1330: handling new value of an option has a long "else if" chain

Problem:    Handling new value of an option has a long "else if" chain.
Solution:   Use a function pointer. (Yegappan Lakshmanan, closes #12015)

14 months agopatch 9.0.1329: completion of map includes simplified ones v9.0.1329
zeertzjq [Sun, 19 Feb 2023 21:00:31 +0000 (21:00 +0000)]
patch 9.0.1329: completion of map includes simplified ones

Problem:    Completion of map includes simplified ones.
Solution:   Do not complete simplified mappings. (closes #12013)

14 months agopatch 9.0.1328: error when using "none" for GUI color is confusing v9.0.1328
Bram Moolenaar [Sun, 19 Feb 2023 20:49:38 +0000 (20:49 +0000)]
patch 9.0.1328: error when using "none" for GUI color is confusing

Problem:    Error when using "none" for GUI color is confusing.
Solution:   Mention that the name should perhaps be "NONE". (closes #1400)

14 months agopatch 9.0.1327: cursor in wrong position below line with virtual text below v9.0.1327
Bram Moolenaar [Sun, 19 Feb 2023 18:36:41 +0000 (18:36 +0000)]
patch 9.0.1327: cursor in wrong position below line with virtual text below

Problem:    Cursor in wrong position below line with virtual text below ending
            in multi-byte character.
Solution:   When checking for last character take care of multi-byte
            character.

14 months agopatch 9.0.1326: relative line number not updated with virtual text above v9.0.1326
Bram Moolenaar [Sun, 19 Feb 2023 14:34:37 +0000 (14:34 +0000)]
patch 9.0.1326: relative line number not updated with virtual text above

Problem:    Relative line number not updated with virtual text above.
Solution:   Adjust the row for the line number for virtual text above.
            (closes #12004)

14 months agopatch 9.0.1325: 'colorcolumn' highlight wrong with virtual text above v9.0.1325
Bram Moolenaar [Sun, 19 Feb 2023 14:16:02 +0000 (14:16 +0000)]
patch 9.0.1325: 'colorcolumn' highlight wrong with virtual text above

Problem:    'colorcolumn' highlight wrong with virtual text above.
Solution:   Adjust column of 'colorcolumn' for text propertly. (closes #12004)

14 months agopatch 9.0.1324: "gj" and "gk" do not move correctly over a closed fold v9.0.1324
Luuk van Baal [Sat, 18 Feb 2023 20:15:44 +0000 (20:15 +0000)]
patch 9.0.1324: "gj" and "gk" do not move correctly over a closed fold

Problem:    "gj" and "gk" do not move correctly over a closed fold.
Solution:   Use the same code as used for "j"/"k" to go to the next/previous
            line. (Luuk van Baal, closes #12007)

14 months agopatch 9.0.1323: build failure with +eval feature v9.0.1323
Bram Moolenaar [Sat, 18 Feb 2023 19:49:32 +0000 (19:49 +0000)]
patch 9.0.1323: build failure with +eval feature

Problem:    Build failure with +eval feature.
Solution:   Add missing part for using funcerror_T.

14 months agopatch 9.0.1322: crash when indexing "any" which is an object v9.0.1322
Bram Moolenaar [Sat, 18 Feb 2023 18:38:37 +0000 (18:38 +0000)]
patch 9.0.1322: crash when indexing "any" which is an object

Problem:    Crash when indexing "any" which is an object.
Solution:   Check the index is a number.  Do not check the member type of an
            object.  (closes #12019)

14 months agopatch 9.0.1321: vimscript test fails where using {expr} syntax v9.0.1321
Bram Moolenaar [Sat, 18 Feb 2023 15:31:53 +0000 (15:31 +0000)]
patch 9.0.1321: vimscript test fails where using {expr} syntax

Problem:    vimscript test fails where using {expr} syntax.
Solution:   Only return FCERR_FAILED in call_user_func() for Vim9 script.

14 months agopatch 9.0.1320: checking the type of a null object causes a crash v9.0.1320
Bram Moolenaar [Sat, 18 Feb 2023 14:42:44 +0000 (14:42 +0000)]
patch 9.0.1320: checking the type of a null object causes a crash

Problem:    Checking the type of a null object causes a crash.
Solution:   Don't try to get the class of a null object. (closes #12005)
            Handle error from calling a user function better.

14 months agopatch 9.0.1319: PRQL files are not recognized v9.0.1319
Matthias Queitsch [Sat, 18 Feb 2023 12:04:37 +0000 (12:04 +0000)]
patch 9.0.1319: PRQL files are not recognized

Problem:    PRQL files are not recognized.
Solution:   Add a filetype pattern for PRQL files. (Matthias Queitsch,
            closes #12018)

14 months agopatch 9.0.1318: code style test fails v9.0.1318
Bram Moolenaar [Fri, 17 Feb 2023 21:29:57 +0000 (21:29 +0000)]
patch 9.0.1318: code style test fails

Problem:    Code style test fails.
Solution:   Remove trailing white space.

14 months agopatch 9.0.1317: crash when using an unset object variable v9.0.1317
Bram Moolenaar [Fri, 17 Feb 2023 21:08:50 +0000 (21:08 +0000)]
patch 9.0.1317: crash when using an unset object variable

Problem:    Crash when using an unset object variable.
Solution:   Give an error instead. (closes #12005)

14 months agopatch 9.0.1316: MS-Windows: vimfiles dir created with admin group v9.0.1316
Christopher Plewright [Fri, 17 Feb 2023 20:04:51 +0000 (20:04 +0000)]
patch 9.0.1316: MS-Windows: vimfiles dir created with admin group

Problem:    MS-Windows: vimfiles dir created with admin group.
Solution:   Use ShellExecAsUser to create the vimfiles directory. (Christopher
            Plewright, Ken Takata, closes #12000, closes #11888)

14 months agopatch 9.0.1315: escaping for completion of map command not properly tested v9.0.1315
zeertzjq [Fri, 17 Feb 2023 16:40:20 +0000 (16:40 +0000)]
patch 9.0.1315: escaping for completion of map command not properly tested

Problem:    Escaping for completion of map command not properly tested.
Solution:   Add a few test cases. (closes #12009)

14 months agopatch 9.0.1314: :messages behavior depends on 'fileformat' of current buffer v9.0.1314
cero1988 [Thu, 16 Feb 2023 15:03:12 +0000 (15:03 +0000)]
patch 9.0.1314: :messages behavior depends on 'fileformat' of current buffer

Problem:    :messages behavior depends on 'fileformat' of current buffer.
Solution:   Pass the buffer pointer to where it is used. (Mirko Ceroni,
            closes #11995)

14 months agopatch 9.0.1313: some settings use the current codepage instead of 'encoding' v9.0.1313
K.Takata [Wed, 15 Feb 2023 19:13:43 +0000 (19:13 +0000)]
patch 9.0.1313: some settings use the current codepage instead of 'encoding'

Problem:    Some settings use the current codepage instead of 'encoding'.
Solution:   Adjust how options are initialized. (Ken Takata, closes #11992)

14 months agopatch 9.0.1312: Cursor position wrong when splitting window in insert mode v9.0.1312
Luuk van Baal [Wed, 15 Feb 2023 16:45:27 +0000 (16:45 +0000)]
patch 9.0.1312: Cursor position wrong when splitting window in insert mode

Problem:    Cursor position wrong when splitting window in insert mode.
Solution:   Pass the actual mode to win_fix_cursor(). (Luuk van Baal,
            closes #11999,

14 months agopatch 9.0.1311: Coverity warns for using a NULL pointer v9.0.1311
Bram Moolenaar [Wed, 15 Feb 2023 14:26:25 +0000 (14:26 +0000)]
patch 9.0.1311: Coverity warns for using a NULL pointer

Problem:    Coverity warns for using a NULL pointer.
Solution:   Use "empty_option" instead of NULL.

14 months agopatch 9.0.1310: 'splitkeep' test has failures v9.0.1310
Bram Moolenaar [Tue, 14 Feb 2023 21:56:42 +0000 (21:56 +0000)]
patch 9.0.1310: 'splitkeep' test has failures

Problem:    'splitkeep' test has failures.
Solution:   Adjust expected cursor line position.

14 months agopatch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set v9.0.1309
Bram Moolenaar [Tue, 14 Feb 2023 17:41:20 +0000 (17:41 +0000)]
patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set

Problem:    Scrolling two lines with even line count and 'scrolloff' set.
Solution:   Adjust how the topline is computed. (closes #10545)

14 months agopatch 9.0.1308: the code for setting options is too complicated v9.0.1308
Yegappan Lakshmanan [Tue, 14 Feb 2023 13:07:18 +0000 (13:07 +0000)]
patch 9.0.1308: the code for setting options is too complicated

Problem:    The code for setting options is too complicated.
Solution:   Refactor the code for setting options. (Yegappan Lakshmanan,
            closes #11989)

14 months agopatch 9.0.1307: setting 'formatoptions' with :let doesn't check for errors v9.0.1307
Yegappan Lakshmanan [Mon, 13 Feb 2023 16:10:04 +0000 (16:10 +0000)]
patch 9.0.1307: setting 'formatoptions' with :let doesn't check for errors

Problem:    Setting 'formatoptions' with :let doesn't check for errors.
Solution:   Pass "errbuf" to set_string_option(). (Yegappan Lakshmanan,
            closes #11974, closes #11972)

14 months agopatch 9.0.1306: no regression test for solved problem of #11959 v9.0.1306
Bram Moolenaar [Sun, 12 Feb 2023 18:11:21 +0000 (18:11 +0000)]
patch 9.0.1306: no regression test for solved problem of #11959

Problem:    No regression test for solved problem of #11959.
Solution:   Add a test, also with 'list' set. (closes #11959)