]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.2681: Vim9: test fails for redeclaring script variable v8.2.2681
Bram Moolenaar [Wed, 31 Mar 2021 19:47:33 +0000 (21:47 +0200)]
patch 8.2.2681: Vim9: test fails for redeclaring script variable

Problem:    Vim9: test fails for redeclaring script variable.
Solution:   It's OK to assign to an existing script variable in legacy.

3 years agopatch 8.2.2680: Vim9: problem defining a script variable from legacy function v8.2.2680
Bram Moolenaar [Wed, 31 Mar 2021 19:07:24 +0000 (21:07 +0200)]
patch 8.2.2680: Vim9: problem defining a script variable from legacy function

Problem:    Vim9: problem defining a script variable from legacy function.
Solution:   Check if the script is Vim9, not the current syntax.
            (closes #8032)

3 years agoUpdate runtime files.
Bram Moolenaar [Wed, 31 Mar 2021 18:07:33 +0000 (20:07 +0200)]
Update runtime files.

3 years agopatch 8.2.2679: status line missing for non-current window with winbar v8.2.2679
Bram Moolenaar [Tue, 30 Mar 2021 20:12:12 +0000 (22:12 +0200)]
patch 8.2.2679: status line missing for non-current window with winbar

Problem:    Winbar drawn over status line for non-current window with winbar
            if frame is zero height. (Leonid V. Fedorenchik)
Solution:   Do not draw the window if the frame height is zero. (closes #8037)

3 years agopatch 8.2.2678: test for 'autoshelldir' does not reset the option v8.2.2678
Bram Moolenaar [Tue, 30 Mar 2021 18:54:28 +0000 (20:54 +0200)]
patch 8.2.2678: test for 'autoshelldir' does not reset the option

Problem:    Test for 'autoshelldir' does not reset the option.
Solution:   Reset the option after testing.

3 years agopatch 8.2.2677: Vim9: cannot use only some of the default arguments v8.2.2677
Bram Moolenaar [Mon, 29 Mar 2021 20:14:55 +0000 (22:14 +0200)]
patch 8.2.2677: Vim9: cannot use only some of the default arguments

Problem:    Vim9: cannot use only some of the default arguments.
Solution:   Use v:none to use default argument value.  Remove
            uf_def_arg_idx[], use JUMP_IF_ARG_SET. (closes #6504)

3 years agopatch 8.2.2676: missing error message v8.2.2676
Bram Moolenaar [Mon, 29 Mar 2021 19:06:04 +0000 (21:06 +0200)]
patch 8.2.2676: missing error message

Problem:    Missing error message.
Solution:   Add new error message.

3 years agopatch 8.2.2675: directory change in a terminal window shell is not followed v8.2.2675
Bram Moolenaar [Mon, 29 Mar 2021 18:49:05 +0000 (20:49 +0200)]
patch 8.2.2675: directory change in a terminal window shell is not followed

Problem:    Directory change in a terminal window shell is not followed.
Solution:   Add the 'autoshelldir' option. (closes #6290)

3 years agopatch 8.2.2674: Motif: cancelling the font dialog resets the font v8.2.2674
Bram Moolenaar [Mon, 29 Mar 2021 18:10:26 +0000 (20:10 +0200)]
patch 8.2.2674: Motif: cancelling the font dialog resets the font

Problem:    Motif: cancelling the font dialog resets the font.
Solution:   When no font is selected to not change the font. (closes #7825,
            closes #8035)  Fix compiler warnings.

3 years agopatch 8.2.2673: Vim9: script-local funcref can have lower case name v8.2.2673
Bram Moolenaar [Sun, 28 Mar 2021 19:14:06 +0000 (21:14 +0200)]
patch 8.2.2673: Vim9: script-local funcref can have lower case name

Problem:    Vim9: script-local funcref can have lower case name.
Solution:   Require an upper case name.

3 years agopatch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script v8.2.2672
Bram Moolenaar [Sun, 28 Mar 2021 18:38:34 +0000 (20:38 +0200)]
patch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script

Problem:    Vim9: cannot use :lockvar and :unlockvar in compiled script.
Solution:   Implement locking support.

3 years agopatch 8.2.2671: error for line number in legacy script v8.2.2671
Bram Moolenaar [Sun, 28 Mar 2021 14:26:41 +0000 (16:26 +0200)]
patch 8.2.2671: error for line number in legacy script

Problem:    Error for line number in legacy script.
Solution:   Check for number type.

3 years agopatch 8.2.2670: Vim9: error for append(0, text) v8.2.2670
Bram Moolenaar [Sun, 28 Mar 2021 13:46:16 +0000 (15:46 +0200)]
patch 8.2.2670: Vim9: error for append(0, text)

Problem:    Vim9: error for append(0, text).
Solution:   Check for negative number. (closes #8022)

3 years agopatch 8.2.2669: command line completion does not work after "vim9" v8.2.2669
Bram Moolenaar [Sun, 28 Mar 2021 13:29:43 +0000 (15:29 +0200)]
patch 8.2.2669: command line completion does not work after "vim9"

Problem:    Command line completion does not work after "vim9".
Solution:   Include the "9". (Naohiro Ono, closes #8025)

3 years agopatch 8.2.2668: Vim9: omitting "call" for "confirm()" does not give an error v8.2.2668
Bram Moolenaar [Sat, 27 Mar 2021 21:20:21 +0000 (22:20 +0100)]
patch 8.2.2668: Vim9: omitting "call" for "confirm()" does not give an error

Problem:    Vim9: omitting "call" for "confirm()" does not give an error.
Solution:   Do not recognize a modifier followed by "(".

3 years agopatch 8.2.2667: prop_find() cannot find item matching both id and type v8.2.2667
Bram Moolenaar [Sat, 27 Mar 2021 21:07:29 +0000 (22:07 +0100)]
patch 8.2.2667: prop_find() cannot find item matching both id and type

Problem:    prop_find() cannot find item matching both id and type.
Solution:   Add the "both" argument. (Naohiro Ono, closes #8019)

3 years agopatch 8.2.2666: Vim9: not enough function arguments checked for string v8.2.2666
Bram Moolenaar [Sat, 27 Mar 2021 20:23:30 +0000 (21:23 +0100)]
patch 8.2.2666: Vim9: not enough function arguments checked for string

Problem:    Vim9: not enough function arguments checked for string.
Solution:   Check in ch_logfile(), char2nr() and others.

3 years agopatch 8.2.2665: test failures v8.2.2665
Bram Moolenaar [Sat, 27 Mar 2021 18:09:02 +0000 (19:09 +0100)]
patch 8.2.2665: test failures

Problem:    Test failures.
Solution:   Check more specific feature.  Add missing change.

3 years agopatch 8.2.2664: Vim9: not enough function arguments checked for string v8.2.2664
Bram Moolenaar [Sat, 27 Mar 2021 17:59:25 +0000 (18:59 +0100)]
patch 8.2.2664: Vim9: not enough function arguments checked for string

Problem:    Vim9: not enough function arguments checked for string.
Solution:   Check in balloon functions.  Refactor function arguments.

3 years agopatch 8.2.2663: Vim9: leaking memory when inline function has an error v8.2.2663
Bram Moolenaar [Sat, 27 Mar 2021 14:40:11 +0000 (15:40 +0100)]
patch 8.2.2663: Vim9: leaking memory when inline function has an error

Problem:    Vim9: leaking memory when inline function has an error.
Solution:   Free the partially allocated function.

3 years agopatch 8.2.2662: there is no way to avoid some escape sequences v8.2.2662
Bram Moolenaar [Sat, 27 Mar 2021 11:11:33 +0000 (12:11 +0100)]
patch 8.2.2662: there is no way to avoid some escape sequences

Problem:    There is no way to avoid some escape sequences.
Solution:   Suppress escape sequences when the --not-a-term argument is used.
            (Gary Johnson)

3 years agopatch 8.2.2661: leaking memory when looping over a string v8.2.2661
Bram Moolenaar [Fri, 26 Mar 2021 21:15:26 +0000 (22:15 +0100)]
patch 8.2.2661: leaking memory when looping over a string

Problem:    Leaking memory when looping over a string.
Solution:   Free the memory.

3 years agopatch 8.2.2660: Vim9: no error for declaration with trailing text v8.2.2660
Bram Moolenaar [Fri, 26 Mar 2021 20:27:52 +0000 (21:27 +0100)]
patch 8.2.2660: Vim9: no error for declaration with trailing text

Problem:    Vim9: no error for declaration with trailing text.
Solution:   Give an error. (closes #8014)

3 years agopatch 8.2.2659: eval test fails because for loop on string works v8.2.2659
Bram Moolenaar [Fri, 26 Mar 2021 19:56:45 +0000 (20:56 +0100)]
patch 8.2.2659: eval test fails because for loop on string works

Problem:    Eval test fails because for loop on string works.
Solution:   Check looping over function reference fails.

3 years agopatch 8.2.2658: :for cannot loop over a string v8.2.2658
Bram Moolenaar [Fri, 26 Mar 2021 19:41:29 +0000 (20:41 +0100)]
patch 8.2.2658: :for cannot loop over a string

Problem:    :for cannot loop over a string.
Solution:   Accept a string argument and iterate over its characters.

3 years agopatch 8.2.2657: Vim9: error message for declaring variable in for loop v8.2.2657
Bram Moolenaar [Fri, 26 Mar 2021 17:49:22 +0000 (18:49 +0100)]
patch 8.2.2657: Vim9: error message for declaring variable in for loop

Problem:    Vim9: error message for declaring variable in for loop.
Solution:   Clear variables when entering block again. (closes #8012)

3 years agopatch 8.2.2656: some command line arguments and regexp errors not tested v8.2.2656
Bram Moolenaar [Fri, 26 Mar 2021 16:24:34 +0000 (17:24 +0100)]
patch 8.2.2656: some command line arguments and regexp errors not tested

Problem:    Some command line arguments and regexp errors not tested.
Solution:   Add a few test cases. (Dominique Pellé, closes #8013)

3 years agopatch 8.2.2655: The -w command line argument doesn't work v8.2.2655
Bram Moolenaar [Fri, 26 Mar 2021 13:14:18 +0000 (14:14 +0100)]
patch 8.2.2655: The -w command line argument doesn't work

Problem:    The -w command line argument doesn't work.
Solution:   Don't set 'window' when set with the -w argument. (closes #8011)

3 years agopatch 8.2.2654: Vim9: getting a character from a string can be slow v8.2.2654
Bram Moolenaar [Fri, 26 Mar 2021 12:34:05 +0000 (13:34 +0100)]
patch 8.2.2654: Vim9: getting a character from a string can be slow

Problem:    Vim9: getting a character from a string can be slow.
Solution:   Avoid a function call to get the character byte size. (#8000)

3 years agopatch 8.2.2653: build failure v8.2.2653
Bram Moolenaar [Thu, 25 Mar 2021 21:22:30 +0000 (22:22 +0100)]
patch 8.2.2653: build failure

Problem:    Build failure.
Solution:   Add missing changes.

3 years agopatch 8.2.2652: Vim9: can use command modifier without an effect v8.2.2652
Bram Moolenaar [Thu, 25 Mar 2021 21:15:28 +0000 (22:15 +0100)]
patch 8.2.2652: Vim9: can use command modifier without an effect

Problem:    Vim9: can use command modifier without an effect.
Solution:   Give an error for a misplaced command modifier.  Fix error message
            number.

3 years agopatch 8.2.2651: Vim9: restoring command modifiers happens after jump v8.2.2651
Bram Moolenaar [Thu, 25 Mar 2021 20:12:15 +0000 (21:12 +0100)]
patch 8.2.2651: Vim9: restoring command modifiers happens after jump

Problem:    Vim9: restoring command modifiers happens after jump.
Solution:   Move the restore instruction to before the jump. (closes #8006)
            Also handle for and while.

3 years agopatch 8.2.2650: Vim9: command modifiers not handled in nested function v8.2.2650
Bram Moolenaar [Wed, 24 Mar 2021 21:00:56 +0000 (22:00 +0100)]
patch 8.2.2650: Vim9: command modifiers not handled in nested function

Problem:    Vim9: command modifiers not handled in nested function.
Solution:   Keep function-local info in a structure and save it on the stack.

3 years agopatch 8.2.2649: Vim9: some wincmd arguments cause a white space error v8.2.2649
Bram Moolenaar [Wed, 24 Mar 2021 19:08:12 +0000 (20:08 +0100)]
patch 8.2.2649: Vim9: some wincmd arguments cause a white space error

Problem:    Vim9: some wincmd arguments cause a white space error.
Solution:   Insert a space before the count. (closes #8001)

3 years agopatch 8.2.2648: terminal resize test sometimes hangs v8.2.2648
Bram Moolenaar [Tue, 23 Mar 2021 18:22:12 +0000 (19:22 +0100)]
patch 8.2.2648: terminal resize test sometimes hangs

Problem:    Terminal resize test sometimes hangs.
Solution:   Wait for the shell to display a prompt and other output.

3 years agopatch 8.2.2647: terminal test sometimes hangs v8.2.2647
Bram Moolenaar [Tue, 23 Mar 2021 15:25:09 +0000 (16:25 +0100)]
patch 8.2.2647: terminal test sometimes hangs

Problem:    Terminal test sometimes hangs.
Solution:   Wait for the shell to display a prompt.

3 years agopatch 8.2.2646: Vim9: error for not using string doesn't mentionargument v8.2.2646
Bram Moolenaar [Mon, 22 Mar 2021 21:21:26 +0000 (22:21 +0100)]
patch 8.2.2646: Vim9: error for not using string doesn't mentionargument

Problem:    Vim9: error for not using string doesn't mention argument.
Solution:   Add argument number.

3 years agopatch 8.2.2645: using inline function is not properly tested v8.2.2645
Bram Moolenaar [Mon, 22 Mar 2021 19:49:02 +0000 (20:49 +0100)]
patch 8.2.2645: using inline function is not properly tested

Problem:    Using inline function is not properly tested.
Solution:   Add test cases, esp. for errors.  Minor code improvements.

3 years agopatch 8.2.2644: prop_clear() causes a screen update even when nothing changed v8.2.2644
Bram Moolenaar [Mon, 22 Mar 2021 18:43:34 +0000 (19:43 +0100)]
patch 8.2.2644: prop_clear() causes a screen update even when nothing changed

Problem:    prop_clear() causes a screen update even when nothing changed.
Solution:   Only redraw when a property was cleared. (Dominique Pellé)

3 years agopatch 8.2.2643: various code not covered by tests v8.2.2643
Bram Moolenaar [Mon, 22 Mar 2021 18:37:06 +0000 (19:37 +0100)]
patch 8.2.2643: various code not covered by tests

Problem:    Various code not covered by tests.
Solution:   Add a few more test. (Yegappan Lakshmanan, closes #7995)

3 years agopatch 8.2.2642: Vim9: no clear error for wrong inline function v8.2.2642
Bram Moolenaar [Mon, 22 Mar 2021 17:22:30 +0000 (18:22 +0100)]
patch 8.2.2642: Vim9: no clear error for wrong inline function

Problem:    Vim9: no clear error for wrong inline function.
Solution:   Check for something following the "{".

3 years agopatch 8.2.2641: display test fails because of lacking redraw v8.2.2641
Bram Moolenaar [Mon, 22 Mar 2021 16:30:47 +0000 (17:30 +0100)]
patch 8.2.2641: display test fails because of lacking redraw

Problem:    Display test fails because of lacking redraw.
Solution:   Add a redraw command.

3 years agopatch 8.2.2640: screenstring() returns non-existing composing characters v8.2.2640
Bram Moolenaar [Mon, 22 Mar 2021 16:11:15 +0000 (17:11 +0100)]
patch 8.2.2640: screenstring() returns non-existing composing characters

Problem:    screenstring() returns non-existing composing characters.
Solution:   Only use composing characters if there is a base character.

3 years agopatch 8.2.2639: build failure when fsync() is not available v8.2.2639
Bram Moolenaar [Mon, 22 Mar 2021 15:45:35 +0000 (16:45 +0100)]
patch 8.2.2639: build failure when fsync() is not available

Problem:    Build failure when fsync() is not available.
Solution:   Add #ifdef.

3 years agopatch 8.2.2638: cannot write a message to the terminal from the GUI v8.2.2638
Bram Moolenaar [Mon, 22 Mar 2021 15:19:45 +0000 (16:19 +0100)]
patch 8.2.2638: cannot write a message to the terminal from the GUI

Problem:    Cannot write a message to the terminal from the GUI.
Solution:   Add :echoconsole and use it in the test runner. (issue #7975)

3 years agopatch 8.2.2637: prop_remove() causes a redraw even when nothing changed v8.2.2637
Bram Moolenaar [Sun, 21 Mar 2021 21:29:54 +0000 (22:29 +0100)]
patch 8.2.2637: prop_remove() causes a redraw even when nothing changed

Problem:    prop_remove() causes a redraw even when nothing changed.
Solution:   Only redraw if a property was removed.

3 years agopatch 8.2.2636: memory leak when compiling inline function v8.2.2636
Bram Moolenaar [Sun, 21 Mar 2021 21:12:34 +0000 (22:12 +0100)]
patch 8.2.2636: memory leak when compiling inline function

Problem:    Memory leak when compiling inline function.
Solution:   Free the prefetched line.

3 years agopatch 8.2.2635: Vim9: cannot define an inline function v8.2.2635
Bram Moolenaar [Sun, 21 Mar 2021 19:53:29 +0000 (20:53 +0100)]
patch 8.2.2635: Vim9: cannot define an inline function

Problem:    Vim9: cannot define an inline function.
Solution:   Make an inline function mostly work.

3 years agopatch 8.2.2634: 'tagfunc' does not indicate using a pattern v8.2.2634
Bram Moolenaar [Sun, 21 Mar 2021 13:49:57 +0000 (14:49 +0100)]
patch 8.2.2634: 'tagfunc' does not indicate using a pattern

Problem:    'tagfunc' does not indicate using a pattern.
Solution:   Add the "r" flag. (Andy Massimino, closes #7982)

3 years agopatch 8.2.2633: multi-byte 'fillchars' for folding do not show properly v8.2.2633
Bram Moolenaar [Sun, 21 Mar 2021 13:39:19 +0000 (14:39 +0100)]
patch 8.2.2633: multi-byte 'fillchars' for folding do not show properly

Problem:    Multi-byte 'fillchars' for folding do not show properly.
Solution:   Handle multi-byte characters correctly. (Yegappan Lakshmanan,
            closes #7983, closes #7955)

3 years agopatch 8.2.2632: not all command line arguments are tested v8.2.2632
Bram Moolenaar [Sat, 20 Mar 2021 21:16:56 +0000 (22:16 +0100)]
patch 8.2.2632: not all command line arguments are tested

Problem:    Not all command line arguments are tested.
Solution:   Add tests for -D and -serverlist. (Dominique Pellé, closes #7992)

3 years agopatch 8.2.2631: commands from winrestcmd() do not always work properly v8.2.2631
Bram Moolenaar [Sat, 20 Mar 2021 18:55:35 +0000 (19:55 +0100)]
patch 8.2.2631: commands from winrestcmd() do not always work properly

Problem:    Commands from winrestcmd() do not always work properly. (Leonid V.
            Fedorenchik)
Solution:   Repeat the size commands twice. (closes #7988)

3 years agopatch 8.2.2630: hard to see where a test gets stuck v8.2.2630
Bram Moolenaar [Sat, 20 Mar 2021 15:44:25 +0000 (16:44 +0100)]
patch 8.2.2630: hard to see where a test gets stuck

Problem:    Hard to see where a test gets stuck.
Solution:   Print the executed test function. (Dominique Pellé, closes #7975)

3 years agopatch 8.2.2629: Vim9: error for #{{ is not desired v8.2.2629
Bram Moolenaar [Sat, 20 Mar 2021 14:00:01 +0000 (15:00 +0100)]
patch 8.2.2629: Vim9: error for #{{ is not desired

Problem:    Vim9: error for #{{ is not desired.
Solution:   Adjust the checks. (closes #7990)

3 years agopatch 8.2.2628: Vim9: #{ can still be used at the script level v8.2.2628
Bram Moolenaar [Sat, 20 Mar 2021 12:29:38 +0000 (13:29 +0100)]
patch 8.2.2628: Vim9: #{ can still be used at the script level

Problem:    Vim9: #{ can still be used at the script level.
Solution:   Give an error for #{ like in a :def function.

3 years agopatch 8.2.2627: no need to check for BSD after checking for not root v8.2.2627
Bram Moolenaar [Sat, 20 Mar 2021 11:49:15 +0000 (12:49 +0100)]
patch 8.2.2627: no need to check for BSD after checking for not root

Problem:    No need to check for BSD after checking for not root.
Solution:   Remove CheckNotBSD. (Ozaki Kiichi, closes #7989)

3 years agopatch 8.2.2626: GTK3: error when starting up and -geometry is given v8.2.2626
Bram Moolenaar [Sat, 20 Mar 2021 11:36:46 +0000 (12:36 +0100)]
patch 8.2.2626: GTK3: error when starting up and -geometry is given

Problem:    GTK3: error when starting up and -geometry is given. (Dominique
            Pellé)
Solution:   Use another function to get the monitor if the window has not been
            created yet. (closes #7978)

3 years agopatch 8.2.2625: rss files not recognized v8.2.2625
Bram Moolenaar [Fri, 19 Mar 2021 19:27:40 +0000 (20:27 +0100)]
patch 8.2.2625: rss files not recognized

Problem:    Rss files not recognized.
Solution:   Recognize .rss as XML. (Kivin Locke, closes #7987)

3 years agopatch 8.2.2624: atom files not recognized v8.2.2624
Bram Moolenaar [Fri, 19 Mar 2021 19:19:12 +0000 (20:19 +0100)]
patch 8.2.2624: atom files not recognized

Problem:    Atom files not recognized.
Solution:   Recognize .atom as XML. (Kivin Locke, closes #7986)

3 years agopatch 8.2.2623: some tests fail when run as root v8.2.2623
Bram Moolenaar [Fri, 19 Mar 2021 13:38:12 +0000 (14:38 +0100)]
patch 8.2.2623: some tests fail when run as root

Problem:    Some tests fail when run as root.
Solution:   Use CheckNotRoot.

3 years agopatch 8.2.2622: GTK: error when starting up and -geometry is given v8.2.2622
Bram Moolenaar [Thu, 18 Mar 2021 21:28:57 +0000 (22:28 +0100)]
patch 8.2.2622: GTK: error when starting up and -geometry is given

Problem:    GTK: error when starting up and -geometry is given. (Dominique
            Pellé)
Solution:   Use another function to get the monitor if the window has not been
            created yet. (closes #7978)

3 years agopatch 8.2.2621: typval2type() cannot handle recursive structures v8.2.2621
Bram Moolenaar [Thu, 18 Mar 2021 21:15:04 +0000 (22:15 +0100)]
patch 8.2.2621: typval2type() cannot handle recursive structures

Problem:    typval2type() cannot handle recursive structures.
Solution:   Use copyID. (closes #7979)

3 years agopatch 8.2.2620: Vim9: Using #{ for a dictionary gives strange errors v8.2.2620
Bram Moolenaar [Thu, 18 Mar 2021 20:37:55 +0000 (21:37 +0100)]
patch 8.2.2620: Vim9: Using #{ for a dictionary gives strange errors

Problem:    Vim9: Using #{ for a dictionary gives strange errors.
Solution:   Give an error when using #{ for a comment after a command.

3 years agopatch 8.2.2619: Vim9: no test for return type of lambda v8.2.2619
Bram Moolenaar [Wed, 17 Mar 2021 20:29:29 +0000 (21:29 +0100)]
patch 8.2.2619: Vim9: no test for return type of lambda

Problem:    Vim9: no test for return type of lambda.
Solution:   Add a test.

3 years agopatch 8.2.2618: Vim9: cannot use a normal list name to store function refs v8.2.2618
Bram Moolenaar [Wed, 17 Mar 2021 19:56:38 +0000 (20:56 +0100)]
patch 8.2.2618: Vim9: cannot use a normal list name to store function refs

Problem:    Vim9: cannot use a normal list name to store function refs.
Solution:   Allow a lower case name if it is indexed.

3 years agopatch 8.2.2617: Vim9: script variable in block not found by function v8.2.2617
Bram Moolenaar [Wed, 17 Mar 2021 17:42:08 +0000 (18:42 +0100)]
patch 8.2.2617: Vim9: script variable in block not found by function

Problem:    Vim9: script variable in a block scope not found by a nested
            function.
Solution:   Copy the block scope IDs before compiling the function.

3 years agopatch 8.2.2616: Vim9: if 'cpo' is change in Vim9 script it may be restored v8.2.2616
Bram Moolenaar [Wed, 17 Mar 2021 16:46:00 +0000 (17:46 +0100)]
patch 8.2.2616: Vim9: if 'cpo' is change in Vim9 script it may be restored

Problem:    Vim9: if 'cpo' is change in Vim9 script it may be restored.
Solution:   Apply the changes to 'cpo' to the restored value.

3 years agopatch 8.2.2615: test is sourcing the wrong file v8.2.2615
Bram Moolenaar [Wed, 17 Mar 2021 14:23:16 +0000 (15:23 +0100)]
patch 8.2.2615: test is sourcing the wrong file

Problem:    Test is sourcing the wrong file.
Solution:   Correct the file name.

3 years agopatch 8.2.2614: Vim9: function is deleted while executing v8.2.2614
Bram Moolenaar [Wed, 17 Mar 2021 14:03:04 +0000 (15:03 +0100)]
patch 8.2.2614: Vim9: function is deleted while executing

Problem:    Vim9: function is deleted while executing.
Solution:   increment the call count, when more than zero do not delete the
            function but mark it as dead. (closes #7977)

3 years agopatch 8.2.2613: new test throws exception v8.2.2613
Bram Moolenaar [Wed, 17 Mar 2021 12:39:33 +0000 (13:39 +0100)]
patch 8.2.2613: new test throws exception

Problem:    New test throws exception.
Solution:   Adjust the function cleanup.

3 years agopatch 8.2.2612: col('.') may get outdated column value v8.2.2612
Bram Moolenaar [Wed, 17 Mar 2021 12:28:05 +0000 (13:28 +0100)]
patch 8.2.2612: col('.') may get outdated column value

Problem:    col('.') may get outdated column value.
Solution:   Add a note to the help how to make this work and add a test for
            it. (closes #7971)

3 years agopatch 8.2.2611: conditions for startup tests are not exactly right v8.2.2611
Bram Moolenaar [Wed, 17 Mar 2021 11:27:23 +0000 (12:27 +0100)]
patch 8.2.2611: conditions for startup tests are not exactly right

Problem:    Conditions for startup tests are not exactly right.
Solution:   Check for type of GUI instead of MS-Windows. (Ozaki Kiichi,
            closes #7976)

3 years agopatch 8.2.2610: mouse click test fails when using remote connection v8.2.2610
Bram Moolenaar [Tue, 16 Mar 2021 20:17:16 +0000 (21:17 +0100)]
patch 8.2.2610: mouse click test fails when using remote connection

Problem:    Mouse click test fails when using remote connection.
Solution:   Use a larger 'mousetime'. (Dominique Pellé, closes #7968)

3 years agopatch 8.2.2609: test disabled on MS-Windows even though it should work v8.2.2609
Bram Moolenaar [Tue, 16 Mar 2021 12:23:30 +0000 (13:23 +0100)]
patch 8.2.2609: test disabled on MS-Windows even though it should work

Problem:    Test disabled on MS-Windows even though it should work.
Solution:   Restore the condition for skipping the test. (Ken Takata,
            closes #7970)

3 years agopatch 8.2.2608: character input not fully tested v8.2.2608
Bram Moolenaar [Mon, 15 Mar 2021 17:36:20 +0000 (18:36 +0100)]
patch 8.2.2608: character input not fully tested

Problem:    Character input not fully tested.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #7963)

3 years agopatch 8.2.2607: strcharpart() cannot include composing characters v8.2.2607
Bram Moolenaar [Sun, 14 Mar 2021 18:46:45 +0000 (19:46 +0100)]
patch 8.2.2607: strcharpart() cannot include composing characters

Problem:    strcharpart() cannot include composing characters.
Solution:   Add the {skipcc} argument.

3 years agopatch 8.2.2606: strchars() defaults to counting composing characters v8.2.2606
Bram Moolenaar [Sun, 14 Mar 2021 18:02:09 +0000 (19:02 +0100)]
patch 8.2.2606: strchars() defaults to counting composing characters

Problem:    strchars() defaults to counting composing characters.
Solution:   Add strcharlen() which ignores composing characters.

3 years agopatch 8.2.2605: Vim9: string index and slice does not include composing chars v8.2.2605
Bram Moolenaar [Sun, 14 Mar 2021 17:40:19 +0000 (18:40 +0100)]
patch 8.2.2605: Vim9: string index and slice does not include composing chars

Problem:    Vim9: string index and slice does not include composing chars.
Solution:   Include composing characters. (issue #6563)

3 years agopatch 8.2.2604: GUI-specific command line arguments not tested v8.2.2604
Bram Moolenaar [Sun, 14 Mar 2021 15:20:37 +0000 (16:20 +0100)]
patch 8.2.2604: GUI-specific command line arguments not tested

Problem:    GUI-specific command line arguments not tested.
Solution:   Add tests for several arguments. (Dominique Pellé, closes #7962)

3 years agopatch 8.2.2603: Vim9: no effect if user command is also a function v8.2.2603
Bram Moolenaar [Sun, 14 Mar 2021 12:21:35 +0000 (13:21 +0100)]
patch 8.2.2603: Vim9: no effect if user command is also a function

Problem:    Vim9: no effect if user command is also a function.
Solution:   Check for paren following. (closes #7960)

3 years agopatch 8.2.2602: Vim9: continue doesn't work if :while is very first command v8.2.2602
Bram Moolenaar [Sun, 14 Mar 2021 11:13:33 +0000 (12:13 +0100)]
patch 8.2.2602: Vim9: continue doesn't work if :while is very first command

Problem:    Vim9: continue doesn't work if :while is very first command.
            (Yegappan Lakshmanan)
Solution:   Add one to the continue instruction index.

3 years agopatch 8.2.2601: memory usage test often fails on FreeBSD v8.2.2601
Bram Moolenaar [Sat, 13 Mar 2021 21:11:51 +0000 (22:11 +0100)]
patch 8.2.2601: memory usage test often fails on FreeBSD

Problem:    Memory usage test often fails on FreeBSD.
Solution:   Increase multiplier for upper limit.

3 years agopatch 8.2.2600: Vim9: crash when putting an unknown type in a dictionary v8.2.2600
Bram Moolenaar [Sat, 13 Mar 2021 20:24:56 +0000 (21:24 +0100)]
patch 8.2.2600: Vim9: crash when putting an unknown type in a dictionary

Problem:    Vim9: crash when putting an unknown type in a dictionary.
            (Yegappan Lakshmanan)
Solution:   Handle a NULL type pointer.

3 years agopatch 8.2.2599: build failure v8.2.2599
Bram Moolenaar [Sat, 13 Mar 2021 20:14:18 +0000 (21:14 +0100)]
patch 8.2.2599: build failure

Problem:    Build failure.
Solution:   Add missing change.

3 years agopatch 8.2.2598: Vim9: :open does not need to be supported v8.2.2598
Bram Moolenaar [Sat, 13 Mar 2021 20:07:21 +0000 (21:07 +0100)]
patch 8.2.2598: Vim9: :open does not need to be supported

Problem:    Vim9: :open does not need to be supported.
Solution:   Do not support :open in Vim9 script.

3 years agopatch 8.2.2597: Vim9: "import * as" does not work at script level v8.2.2597
Bram Moolenaar [Sat, 13 Mar 2021 19:57:19 +0000 (20:57 +0100)]
patch 8.2.2597: Vim9: "import * as" does not work at script level

Problem:    Vim9: "import * as" does not work at script level.
Solution:   Implement using an imported namespace.

3 years agopatch 8.2.2596: :doautocmd may confuse scripts listening to WinEnter v8.2.2596
Bram Moolenaar [Sat, 13 Mar 2021 14:47:56 +0000 (15:47 +0100)]
patch 8.2.2596: :doautocmd may confuse scripts listening to WinEnter

Problem:    :doautocmd may confuse scripts listening to WinEnter.
Solution:   Do the current buffer last. (closes #7958)

3 years agopatch 8.2.2595: setting 'winminheight' may cause 'lines' to change v8.2.2595
Bram Moolenaar [Sat, 13 Mar 2021 13:29:05 +0000 (14:29 +0100)]
patch 8.2.2595: setting 'winminheight' may cause 'lines' to change

Problem:    Setting 'winminheight' may cause 'lines' to change.
Solution:   Also take minimal height of other tabpages into account. (#7899)

3 years agopatch 8.2.2594: alternate buffer added to session file even when it's hidden v8.2.2594
Bram Moolenaar [Sat, 13 Mar 2021 12:52:33 +0000 (13:52 +0100)]
patch 8.2.2594: alternate buffer added to session file even when it's hidden

Problem:    Alternate buffer added to session file even when it's hidden.
Solution:   Check the 'buflisted' option. (closes #7951)

3 years agopatch 8.2.2593: list of distributed files is incomplete v8.2.2593
Bram Moolenaar [Sat, 13 Mar 2021 12:30:03 +0000 (13:30 +0100)]
patch 8.2.2593: list of distributed files is incomplete

Problem:    List of distributed files is incomplete.
Solution:   Add a file and rename another.

3 years agoUpdate runtime files.
Bram Moolenaar [Sat, 13 Mar 2021 12:28:13 +0000 (13:28 +0100)]
Update runtime files.

3 years agopatch 8.2.2592: code coverage could be improved v8.2.2592
Bram Moolenaar [Sat, 13 Mar 2021 12:14:04 +0000 (13:14 +0100)]
patch 8.2.2592: code coverage could be improved

Problem:    Code coverage could be improved.
Solution:   Add a few more tests. (Dominique Pellé, closes #7957)

3 years agopatch 8.2.2591: Poke files are not recognized v8.2.2591
Bram Moolenaar [Fri, 12 Mar 2021 21:16:41 +0000 (22:16 +0100)]
patch 8.2.2591: Poke files are not recognized

Problem:    Poke files are not recognized.
Solution:   Add a filetype entry. (Matt Ihlenfield)

3 years agopatch 8.2.2590: Vim9: default argument value may cause internal error v8.2.2590
Bram Moolenaar [Thu, 11 Mar 2021 19:04:04 +0000 (20:04 +0100)]
patch 8.2.2590: Vim9: default argument value may cause internal error

Problem:    Vim9: default argument value may cause internal error.
Solution:   Hide later function arguments when compiling the expression.
            (closes #7948)

3 years agopatch 8.2.2589: recover test hangs in the GUI v8.2.2589
Bram Moolenaar [Wed, 10 Mar 2021 21:27:48 +0000 (22:27 +0100)]
patch 8.2.2589: recover test hangs in the GUI

Problem:    Recover test hangs in the GUI.
Solution:   Add g:skipped_reason to skip a _nocatch_ test.

3 years agopatch 8.2.2588: build failure with tiny features v8.2.2588
Bram Moolenaar [Wed, 10 Mar 2021 20:55:46 +0000 (21:55 +0100)]
patch 8.2.2588: build failure with tiny features

Problem:    Build failure with tiny features.
Solution:   Add #ifdef.  Run recover test separately.

3 years agopatch 8.2.2587: recover test fails on FreeBSD v8.2.2587
Bram Moolenaar [Wed, 10 Mar 2021 20:46:39 +0000 (21:46 +0100)]
patch 8.2.2587: recover test fails on FreeBSD

Problem:    Recover test fails on FreeBSD.
Solution:   Check for Linux.

3 years agopatch 8.2.2586: process id may be invalid v8.2.2586
Bram Moolenaar [Wed, 10 Mar 2021 20:26:37 +0000 (21:26 +0100)]
patch 8.2.2586: process id may be invalid

Problem:    Process id may be invalid.
Solution:   Use sysinfo.uptime to check for recent reboot. (suggested by Hugo
            van der Sanden, closes #7947)

3 years agopatch 8.2.2585: Vim9: illegal memory access v8.2.2585
Bram Moolenaar [Wed, 10 Mar 2021 18:04:07 +0000 (19:04 +0100)]
patch 8.2.2585: Vim9: illegal memory access

Problem:    Vim9: illegal memory access.
Solution:   Check byte right after "null", not one more.

3 years agopatch 8.2.2584: Vim9: type error for assigning "any" to a list v8.2.2584
Bram Moolenaar [Wed, 10 Mar 2021 17:43:09 +0000 (18:43 +0100)]
patch 8.2.2584: Vim9: type error for assigning "any" to a list

Problem:    Vim9: type error for assigning the result of list concatenation to
            a list.
Solution:   Do not consider concatenation result in a constant. (closes #7942)