]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.0775: not easy to call a Vim function from Lua v8.2.0775
Bram Moolenaar [Sun, 17 May 2020 12:32:35 +0000 (14:32 +0200)]
patch 8.2.0775: not easy to call a Vim function from Lua

Problem:    Not easy to call a Vim function from Lua.
Solution:   Add vim.call() and vim.fn(). (Prabir Shrestha, closes #6063)

4 years agopatch 8.2.0774: t_TI and t_TE are output when using 'visualbell' v8.2.0774
Bram Moolenaar [Sun, 17 May 2020 12:06:16 +0000 (14:06 +0200)]
patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'

Problem:    t_TI and t_TE are output when using 'visualbell'. (Dominique
            Pelle)
Solution:   Do not change the terminal mode for a short sleep.  Do not output
            t_TI and t_TE when switching to/from TMODE_SLEEP. Make tmode an
            enum.

4 years agopatch 8.2.0773: switching to raw mode every time ":" is used v8.2.0773
Bram Moolenaar [Sat, 16 May 2020 21:15:08 +0000 (23:15 +0200)]
patch 8.2.0773: switching to raw mode every time ":" is used

Problem:    Switching to raw mode every time ":" is used.
Solution:   When executing a shell set cur_tmode to TMODE_UNKNOWN, so that the
            next time TMODE_RAW is used it is set, but not every time.

4 years agopatch 8.2.0772: Vim9: some variable initializations not tested v8.2.0772
Bram Moolenaar [Sat, 16 May 2020 20:33:33 +0000 (22:33 +0200)]
patch 8.2.0772: Vim9: some variable initializations not tested

Problem:    Vim9: some variable initializations not tested.
Solution:   Add a few more tests

4 years agopatch 8.2.0771: Vim9: cannot call a compiled closure from not compiled code v8.2.0771
Bram Moolenaar [Sat, 16 May 2020 19:20:12 +0000 (21:20 +0200)]
patch 8.2.0771: Vim9: cannot call a compiled closure from not compiled code

Problem:    Vim9: cannot call a compiled closure from not compiled code.
Solution:   Pass funcexe to call_user_func().

4 years agopatch 8.2.0770: cannot map CTRL-B when using the GUI v8.2.0770
Bram Moolenaar [Sat, 16 May 2020 16:57:53 +0000 (18:57 +0200)]
patch 8.2.0770: cannot map CTRL-B when using the GUI

Problem:    Cannot map CTRL-B when using the GUI.
Solution:   Reset the CTRL modifier when used. (closes #6092)

4 years agopatch 8.2.0769: VimLeavePre not triggered when Vim is terminated v8.2.0769
Bram Moolenaar [Sat, 16 May 2020 14:08:35 +0000 (16:08 +0200)]
patch 8.2.0769: VimLeavePre not triggered when Vim is terminated

Problem:    VimLeavePre not triggered when Vim is terminated.
Solution:   Unblock autocommands.

4 years agopatch 8.2.0768: Vim9: memory leak in script test v8.2.0768
Bram Moolenaar [Sat, 16 May 2020 13:43:31 +0000 (15:43 +0200)]
patch 8.2.0768: Vim9: memory leak in script test

Problem:    Vim9: memory leak in script test.
Solution:   Clear typval before giving an error message.

4 years agopatch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd v8.2.0767
Bram Moolenaar [Sat, 16 May 2020 13:05:04 +0000 (15:05 +0200)]
patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd

Problem:    ModifyOtherKeys active when using a shell command in autocmd.
Solution:   Output T_CTE when going to cooked mode. (closes 5617)

4 years agopatch 8.2.0766: display error when using 'number' and 'breakindent' v8.2.0766
Bram Moolenaar [Sat, 16 May 2020 12:07:39 +0000 (14:07 +0200)]
patch 8.2.0766: display error when using 'number' and 'breakindent'

Problem:    Display error when using 'number' and 'breakindent'.
Solution:   Adjust extra spaces in the first row. (Ken Takata, closes #6089,
            closes #5986)

4 years agopatch 8.2.0765: In the GUI can't use all the modifiers. v8.2.0765
Bram Moolenaar [Sat, 16 May 2020 12:01:51 +0000 (14:01 +0200)]
patch 8.2.0765: In the GUI can't use all the modifiers.

Problem:    In the GUI can't use all the modifiers. (Andri Möll)
Solution:   Do not apply Alt/Meta early, do it later like with the terminal.
            Avoid the Motif test from crashing.

4 years agopatch 8.2.0764: Vim9: assigning to option not fully tested v8.2.0764
Bram Moolenaar [Fri, 15 May 2020 21:36:40 +0000 (23:36 +0200)]
patch 8.2.0764: Vim9: assigning to option not fully tested

Problem:    Vim9: assigning to option not fully tested.
Solution:   Add more test cases. Allow using any type for assignment.

4 years agopatch 8.2.0763: GUI test fails without the terminal feature v8.2.0763
Bram Moolenaar [Fri, 15 May 2020 20:46:44 +0000 (22:46 +0200)]
patch 8.2.0763: GUI test fails without the terminal feature

Problem:    GUI test fails without the terminal feature.
Solution:   Check the terminal feature is supported. (Ken Takata,
            closes #6084)

4 years agopatch 8.2.0762: buffer is not considered modified after setting crypt key v8.2.0762
Bram Moolenaar [Fri, 15 May 2020 20:30:38 +0000 (22:30 +0200)]
patch 8.2.0762: buffer is not considered modified after setting crypt key

Problem:    Buffer is not considered modified after setting crypt key.
Solution:   Set the modified flag. (Christian Brabandt, closes #6082)

4 years agopatch 8.2.0761: Vim9: instructions not tested v8.2.0761
Bram Moolenaar [Fri, 15 May 2020 20:01:57 +0000 (22:01 +0200)]
patch 8.2.0761: Vim9: instructions not tested

Problem:    Vim9: instructions not tested
Solution:   Use a variable instead of a constant.

4 years agopatch 8.2.0760: Vim9: dict member errors not tested v8.2.0760
Bram Moolenaar [Fri, 15 May 2020 19:44:19 +0000 (21:44 +0200)]
patch 8.2.0760: Vim9: dict member errors not tested

Problem:    Vim9: dict member errors not tested.
Solution:   Delete unreachable error.  Add tests.

4 years agopatch 8.2.0759: Vim9: missing changes for performance improvements v8.2.0759
Bram Moolenaar [Fri, 15 May 2020 19:42:53 +0000 (21:42 +0200)]
patch 8.2.0759: Vim9: missing changes for performance improvements

Problem:    Vim9: missing changes for performance improvements
Solution:   Use GA_GROW().  Don't call breakcheck so often.

4 years agopatch 8.2.0758: Vim9: no test for STORELIST and STOREDICT v8.2.0758
Bram Moolenaar [Fri, 15 May 2020 18:53:00 +0000 (20:53 +0200)]
patch 8.2.0758: Vim9: no test for STORELIST and STOREDICT

Problem:    Vim9: no test for STORELIST and STOREDICT.
Solution:   Add a test.  Make matches stricter.

4 years agopatch 8.2.0757: Vim9: no test for MEMBER instruction v8.2.0757
Bram Moolenaar [Fri, 15 May 2020 17:21:31 +0000 (19:21 +0200)]
patch 8.2.0757: Vim9: no test for MEMBER instruction

Problem:    Vim9: no test for MEMBER instruction.
Solution:   Add a test.  Make matches stricter.

4 years agopatch 8.2.0756: MS-Windows: still a compiler warning v8.2.0756
Bram Moolenaar [Fri, 15 May 2020 16:21:51 +0000 (18:21 +0200)]
patch 8.2.0756: MS-Windows: still a compiler warning

Problem:    MS-Windows: still a compiler warning.
Solution:   Move flag to another place in the Makefile. (Ken Takata,
            closes #6083)

4 years agopatch 8.2.0755: Vim9: No error when variable initializer is not a constant v8.2.0755
Bram Moolenaar [Fri, 15 May 2020 16:17:28 +0000 (18:17 +0200)]
patch 8.2.0755: Vim9: No error when variable initializer is not a constant

Problem:    Vim9: No error when variable initializer is not a constant.
Solution:   Return FAIL when trying to get a variable value.  Do not execute a
            script when an error is deteted in the first or second phase.

4 years agopatch 8.2.0754: Vim9: No test for forward declaration v8.2.0754
Bram Moolenaar [Thu, 14 May 2020 21:20:55 +0000 (23:20 +0200)]
patch 8.2.0754: Vim9: No test for forward declaration

Problem:    Vim9: No test for forward declaration.
Solution:   Add a test.

4 years agopatch 8.2.0753: Vim9: expressions are evaluated in the discovery phase v8.2.0753
Bram Moolenaar [Thu, 14 May 2020 20:41:15 +0000 (22:41 +0200)]
patch 8.2.0753: Vim9: expressions are evaluated in the discovery phase

Problem:    Vim9: expressions are evaluated in the discovery phase.
Solution:   Bail out if an expression is not a constant.  Require a type for
            declared constants.

4 years agopatch 8.2.0752: terminal in popup window test is a bit flaky v8.2.0752
Bram Moolenaar [Wed, 13 May 2020 21:24:12 +0000 (23:24 +0200)]
patch 8.2.0752: terminal in popup window test is a bit flaky

Problem:    Terminal in popup window test is a bit flaky.
Solution:   Wait for shell job status to be "run".  Mark as flaky test.

4 years agoUpdate version.c for missing patch number
Bram Moolenaar [Wed, 13 May 2020 21:21:55 +0000 (23:21 +0200)]
Update version.c for missing patch number

4 years agopatch 8.2.0751: Vim9: performance can be improved v8.2.0751
Bram Moolenaar [Wed, 13 May 2020 20:44:22 +0000 (22:44 +0200)]
patch 8.2.0751: Vim9: performance can be improved

Problem:    Vim9: performance can be improved.
Solution:   Don't call break.  Inline check for list materialize.  Make an
            inline version of ga_grow().

4 years agopatch 8.2.0750: netbeans test is a bit flaky v8.2.0750
Bram Moolenaar [Wed, 13 May 2020 15:16:04 +0000 (17:16 +0200)]
patch 8.2.0750: netbeans test is a bit flaky

Problem:    Netbeans test is a bit flaky.
Solution:   Allow for standard sign to be defined.  Use WaitForAssert().

4 years agopatch 8.2.0749: TERM signal test fails on FreeBSD v8.2.0749
Bram Moolenaar [Wed, 13 May 2020 14:53:49 +0000 (16:53 +0200)]
patch 8.2.0749: TERM signal test fails on FreeBSD

Problem:    TERM signal test fails on FreeBSD.
Solution:   Do not check the messages, the may appear anywhere. (Dominique
            Pelle, closes #6075)

4 years agopatch 8.2.0748: cannot get a list of all popups v8.2.0748
Bram Moolenaar [Wed, 13 May 2020 14:34:15 +0000 (16:34 +0200)]
patch 8.2.0748: cannot get a list of all popups

Problem:    Cannot get a list of all popups.
Solution:   Add popup_list().  Use it in the test runner.

4 years agopatch 8.2.0747: cannot forcefully close all popups v8.2.0747
Bram Moolenaar [Wed, 13 May 2020 11:40:16 +0000 (13:40 +0200)]
patch 8.2.0747: cannot forcefully close all popups

Problem:    Cannot forcefully close all popups.
Solution:   Add the "force" argument to popup_clear().  Use it after running a
            test.  Put back the check for a popup when editing a file.

4 years agopatch 8.2.0746: popup_clear() hangs when a popup can't be closed v8.2.0746
Bram Moolenaar [Tue, 12 May 2020 23:04:32 +0000 (01:04 +0200)]
patch 8.2.0746: popup_clear() hangs when a popup can't be closed

Problem:    popup_clear() hangs when a popup can't be closed.
Solution:   Bail out when a popup can't be closed.

4 years agopatch 8.2.0745: crash on exit when not all popups are closed v8.2.0745
Bram Moolenaar [Tue, 12 May 2020 21:45:16 +0000 (23:45 +0200)]
patch 8.2.0745: crash on exit when not all popups are closed

Problem:    Crash on exit when not all popups are closed.
Solution:   Close popups when freeing all memory.  Disable checking for popup
            when editing a file for now.

4 years agoUpdate runtime files
Bram Moolenaar [Tue, 12 May 2020 20:49:12 +0000 (22:49 +0200)]
Update runtime files

4 years agopatch 8.2.0744: the name vim is not capatilized in a message v8.2.0744
Bram Moolenaar [Tue, 12 May 2020 20:21:26 +0000 (22:21 +0200)]
patch 8.2.0744: the name vim is not capatilized in a message

Problem:    The name vim is not capatilized in a message.
Solution:   Use "Vim" instead of "vim".

4 years agopatch 8.2.0743: can move to another buffer from a terminal in popup window v8.2.0743
Bram Moolenaar [Tue, 12 May 2020 20:02:21 +0000 (22:02 +0200)]
patch 8.2.0743: can move to another buffer from a terminal in popup window

Problem:    Can move to another buffer from a terminal in popup window.
Solution:   Do not allow "gf" or editing a file. (closes #6072)

4 years agopatch 8.2.0742: handling of a TERM signal not tested v8.2.0742
Bram Moolenaar [Tue, 12 May 2020 12:42:02 +0000 (14:42 +0200)]
patch 8.2.0742: handling of a TERM signal not tested

Problem:    Handling of a TERM signal not tested.
Solution:   Add a test for SIGTERM. (Dominique Pelle, closes #6055)

4 years agopatch 8.2.0741: Python tests fail because of changed message v8.2.0741
Bram Moolenaar [Tue, 12 May 2020 11:08:07 +0000 (13:08 +0200)]
patch 8.2.0741: Python tests fail because of changed message

Problem:    Python tests fail because of changed message.
Solution:   Adjust the expected messages (Dominique Pelle, closes #6066)

4 years agopatch 8.2.0740: minor message mistakes v8.2.0740
Bram Moolenaar [Mon, 11 May 2020 21:14:04 +0000 (23:14 +0200)]
patch 8.2.0740: minor message mistakes

Problem:    Minor message mistakes.
Solution:   Change vim to Vim and other fixes.

4 years agopatch 8.2.0739: incomplete profiling when exiting because of a dealy signal v8.2.0739
Bram Moolenaar [Mon, 11 May 2020 20:13:28 +0000 (22:13 +0200)]
patch 8.2.0739: incomplete profiling when exiting because of a dealy signal

Problem:    Incomplete profiling when exiting because of a dealy signal.
Solution:   Call __gcov_flush() if available.

4 years agopatch 8.2.0738: mouse handling in a terminal window not well tested v8.2.0738
Bram Moolenaar [Mon, 11 May 2020 20:04:53 +0000 (22:04 +0200)]
patch 8.2.0738: mouse handling in a terminal window not well tested

Problem:    Mouse handling in a terminal window not well tested.
Solution:   Add tests. (Yegappan Lakshmanan, closes #6052)

4 years agopatch 8.2.0737: when shell doesn't support CTRL-Z Vim still handles it v8.2.0737
Bram Moolenaar [Mon, 11 May 2020 18:54:42 +0000 (20:54 +0200)]
patch 8.2.0737: when shell doesn't support CTRL-Z Vim still handles it

Problem:    When shell doesn't support CTRL-Z Vim still handles it.
Solution:   Ignore the STOP signal if it was ignored on startup.
            (Kurtis Rader, closes #5990, closes #6058)

4 years agopatch 8.2.0736: some files not recognized as pamenv v8.2.0736
Bram Moolenaar [Mon, 11 May 2020 17:46:36 +0000 (19:46 +0200)]
patch 8.2.0736: some files not recognized as pamenv

Problem:    Some files not recognized as pamenv.
Solution:   Add pam_inv.conf. (closes #6065)

4 years agopatch 8.2.0735: Vim9: using unitialized memory v8.2.0735
Bram Moolenaar [Sun, 10 May 2020 21:20:06 +0000 (23:20 +0200)]
patch 8.2.0735: Vim9: using unitialized memory

Problem:    Vim9: using unitialized memory.
Solution:   Clear the arg_lvar field.

4 years agopatch 8.2.0734: Vim9: leaking memory when using :finish v8.2.0734
Bram Moolenaar [Sun, 10 May 2020 21:11:53 +0000 (23:11 +0200)]
patch 8.2.0734: Vim9: leaking memory when using :finish

Problem:    Vim9: leaking memory when using :finish.
Solution:   Do not check for next line in third pass.

4 years agopatch 8.2.0733: Vim9: assigning to dict or list argument does not work v8.2.0733
Bram Moolenaar [Sun, 10 May 2020 20:53:56 +0000 (22:53 +0200)]
patch 8.2.0733: Vim9: assigning to dict or list argument does not work

Problem:    Vim9: assigning to dict or list argument does not work.
Solution:   Recognize an argument as assignment target.

4 years agopatch 8.2.0732: Vim9: storing value in dict messes up stack v8.2.0732
Bram Moolenaar [Sun, 10 May 2020 19:47:43 +0000 (21:47 +0200)]
patch 8.2.0732: Vim9: storing value in dict messes up stack

Problem:    Vim9: storing value in dict messes up stack.
Solution:   Correct item count of stack.

4 years agopatch 8.2.0731: Vim9: parsing declarations continues after :finish v8.2.0731
Bram Moolenaar [Sun, 10 May 2020 19:20:29 +0000 (21:20 +0200)]
patch 8.2.0731: Vim9: parsing declarations continues after :finish

Problem:    Vim9: parsing declarations continues after :finish.
Solution:   Bail out when encountering :finish.

4 years agopatch 8.2.0730: Vim9: Assignment to dict member does not work v8.2.0730
Bram Moolenaar [Sun, 10 May 2020 17:10:31 +0000 (19:10 +0200)]
patch 8.2.0730: Vim9: Assignment to dict member does not work

Problem:    Vim9: Assignment to dict member does not work.
Solution:   Parse dict assignment. Implement getting dict member.

4 years agopatch 8.2.0729: Vim9: When reloading a script variables are not cleared v8.2.0729
Bram Moolenaar [Sun, 10 May 2020 13:24:44 +0000 (15:24 +0200)]
patch 8.2.0729: Vim9: When reloading a script variables are not cleared

Problem:    Vim9: When reloading a script variables are not cleared.
Solution:   When sourcing a script again clear all script-local variables.

4 years agopatch 8.2.0728: messages about a deadly signal are not left aligned v8.2.0728
Bram Moolenaar [Sun, 10 May 2020 12:14:03 +0000 (14:14 +0200)]
patch 8.2.0728: messages about a deadly signal are not left aligned

Problem:    Messages about a deadly signal are not left aligned.
Solution:   Output a CR before the NL. (Dominique Pelle, #6055)

4 years agopatch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format v8.2.0727
Bram Moolenaar [Sun, 10 May 2020 11:42:43 +0000 (13:42 +0200)]
patch 8.2.0727: MS-Windows: new gcc compiler does not support scanf format

Problem:    MS-Windows: new gcc compiler does not support scanf format.
Solution:   Use "%ll" instead of "%I". (Ken Takata)

4 years agopatch 8.2.0726: Vim9: leaking memory when calling not compiled :def function v8.2.0726
Bram Moolenaar [Sat, 9 May 2020 21:20:20 +0000 (23:20 +0200)]
patch 8.2.0726: Vim9: leaking memory when calling not compiled :def function

Problem:    Vim9: leaking memory when calling not compiled :def function.
Solution:   Check if function is compiled earlier.

4 years agopatch 8.2.0725: Vim9: cannot call a function declared later in Vim9 script v8.2.0725
Bram Moolenaar [Sat, 9 May 2020 20:50:08 +0000 (22:50 +0200)]
patch 8.2.0725: Vim9: cannot call a function declared later in Vim9 script

Problem:    Vim9: cannot call a function declared later in Vim9 script.
Solution:   Make two passes through the script file.

4 years agopatch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested v8.2.0724
Bram Moolenaar [Sat, 9 May 2020 16:44:56 +0000 (18:44 +0200)]
patch 8.2.0724: Vim9: appending to buffer/window/tab variable not tested

Problem:    Vim9: appending to buffer/window/tab variable not tested
Solution:   Add a test.

4 years agopatch 8.2.0723: Vim9: nested constant expression not evaluated compile time v8.2.0723
Bram Moolenaar [Sat, 9 May 2020 16:28:34 +0000 (18:28 +0200)]
patch 8.2.0723: Vim9: nested constant expression not evaluated compile time

Problem:    Vim9: nested constant expression not evaluated compile time.
Solution:   Use compile_expr1() for parenthesis.

4 years agopatch 8.2.0722: Vim9: not handling constant expression for elseif v8.2.0722
Bram Moolenaar [Sat, 9 May 2020 15:35:53 +0000 (17:35 +0200)]
patch 8.2.0722: Vim9: not handling constant expression for elseif

Problem:    Vim9: not handling constant expression for elseif.
Solution:   Use postponed constants.  Delete the code for evaluating a
            constant expression.

4 years agopatch 8.2.0721: Vim9: leaking memory when skipping v8.2.0721
Bram Moolenaar [Sat, 9 May 2020 14:44:22 +0000 (16:44 +0200)]
patch 8.2.0721: Vim9: leaking memory when skipping

Problem:    Vim9: leaking memory when skipping.
Solution:   Disable skipping in generate_ppconst().

4 years agopatch 8.2.0720: occasional exit when encountering an X error v8.2.0720
Bram Moolenaar [Sat, 9 May 2020 14:11:33 +0000 (16:11 +0200)]
patch 8.2.0720: occasional exit when encountering an X error

Problem:    Occasional exit when encountering an X error. (Manfred Lotz)
Solution:   On an X error do not exit, do preserve files.

4 years agopatch 8.2.0719: Vim9: more expressions can be evaluated at compile time v8.2.0719
Bram Moolenaar [Sat, 9 May 2020 13:44:01 +0000 (15:44 +0200)]
patch 8.2.0719: Vim9: more expressions can be evaluated at compile time

Problem:    Vim9: more expressions can be evaluated at compile time
Solution:   Recognize has('name').

4 years agopatch 8.2.0718: gcc warning for returning pointer to local variable v8.2.0718
Bram Moolenaar [Sat, 9 May 2020 11:06:24 +0000 (13:06 +0200)]
patch 8.2.0718: gcc warning for returning pointer to local variable

Problem:    Gcc warning for returning pointer to local variable. (John
            Marriott)
Solution:   Return another pointer.

4 years agopatch 8.2.0717: Vim9: postponed constant expressions does not scale v8.2.0717
Bram Moolenaar [Fri, 8 May 2020 17:10:34 +0000 (19:10 +0200)]
patch 8.2.0717: Vim9: postponed constant expressions does not scale

Problem:    Vim9: postponed constant expressions does not scale.
Solution:   Add a structure to pass around postponed constants.

4 years agopatch 8.2.0716: Vim9: another memory leak v8.2.0716
Bram Moolenaar [Thu, 7 May 2020 21:20:21 +0000 (23:20 +0200)]
patch 8.2.0716: Vim9: another memory leak

Problem:    Vim9: another memory leak.
Solution:   Clear typval when failing.

4 years agopatch 8.2.0715: Vim9: leaking memory v8.2.0715
Bram Moolenaar [Thu, 7 May 2020 20:23:58 +0000 (22:23 +0200)]
patch 8.2.0715: Vim9: leaking memory

Problem:    Vim9: leaking memory.
Solution:   Free strings after concatenating them.

4 years agopatch 8.2.0714: Vim9: handling constant expression does not scale v8.2.0714
Bram Moolenaar [Thu, 7 May 2020 20:19:01 +0000 (22:19 +0200)]
patch 8.2.0714: Vim9: handling constant expression does not scale

Problem:    Vim9: handling constant expression does not scale.
Solution:   Use another solution, passint typval_T.

4 years agoUpdate runtime files
Bram Moolenaar [Thu, 7 May 2020 16:56:00 +0000 (18:56 +0200)]
Update runtime files

4 years agopatch 8.2.0713: the pam_environment file is not recognized v8.2.0713
Bram Moolenaar [Thu, 7 May 2020 16:51:27 +0000 (18:51 +0200)]
patch 8.2.0713: the pam_environment file is not recognized

Problem:    The pam_environment file is not recognized.
Solution:   Add a filetype pattern for pamenv. (closes #6051)

4 years agopatch 8.2.0712: various code not fully tested v8.2.0712
Bram Moolenaar [Thu, 7 May 2020 16:43:44 +0000 (18:43 +0200)]
patch 8.2.0712: various code not fully tested

Problem:    Various code not fully tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #6049)

4 years agopatch 8.2.0711: temp directory might be cleared v8.2.0711
Bram Moolenaar [Thu, 7 May 2020 16:37:03 +0000 (18:37 +0200)]
patch 8.2.0711: temp directory might be cleared

Problem:    With a long running Vim the temp directory might be cleared on
            some systems.
Solution:   Lock the temp directory. (closes #6044)

4 years agopatch 8.2.0710: Netbeans test sometimes fails v8.2.0710
Bram Moolenaar [Thu, 7 May 2020 16:16:35 +0000 (18:16 +0200)]
patch 8.2.0710: Netbeans test sometimes fails

Problem:    Netbeans test sometimes fails.
Solution:   Mark any test using an external command as flaky.

4 years agopatch 8.2.0709: MS-Windows: compiler warning for int vs size_t v8.2.0709
Bram Moolenaar [Thu, 7 May 2020 15:46:59 +0000 (17:46 +0200)]
patch 8.2.0709: MS-Windows: compiler warning for int vs size_t

Problem:    MS-Windows: compiler warning for int vs size_t.
Solution:   Add type cast. (Mike Williams)

4 years agopatch 8.2.0708: Vim9: constant expressions are not simplified v8.2.0708
Bram Moolenaar [Thu, 7 May 2020 14:58:17 +0000 (16:58 +0200)]
patch 8.2.0708: Vim9: constant expressions are not simplified

Problem:    Vim9: constant expressions are not simplified.
Solution:   Simplify string concatenation.

4 years agopatch 8.2.0707: Vim9 function test fails v8.2.0707
Bram Moolenaar [Thu, 7 May 2020 12:37:19 +0000 (14:37 +0200)]
patch 8.2.0707: Vim9 function test fails

Problem:    Vim9 function test fails.
Solution:   Adjust expected error code.

4 years agopatch 8.2.0706: Vim9: using assert_fails() causes function to finish v8.2.0706
Bram Moolenaar [Thu, 7 May 2020 12:07:25 +0000 (14:07 +0200)]
patch 8.2.0706: Vim9: using assert_fails() causes function to finish

Problem:    Vim9: using assert_fails() causes function to finish.
Solution:   Check did_emsg instead of called_emsg.

4 years agopatch 8.2.0705: indent tests don't run on CI for FreeBSD v8.2.0705
Bram Moolenaar [Wed, 6 May 2020 20:25:05 +0000 (22:25 +0200)]
patch 8.2.0705: indent tests don't run on CI for FreeBSD

Problem:    Indent tests don't run on CI for FreeBSD.
Solution:   Set modeline. (Ozaki Kiichi, closes #6048)

4 years agopatch 8.2.0704: Vim9: memory leak in disassemble test v8.2.0704
Bram Moolenaar [Wed, 6 May 2020 20:18:17 +0000 (22:18 +0200)]
patch 8.2.0704: Vim9: memory leak in disassemble test

Problem:    Vim9: memory leak in disassemble test.
Solution:   Decrement refcount when creating funccal.

4 years agopatch 8.2.0703: Vim9: closure cannot store value in outer context v8.2.0703
Bram Moolenaar [Wed, 6 May 2020 19:06:30 +0000 (21:06 +0200)]
patch 8.2.0703: Vim9: closure cannot store value in outer context

Problem:    Vim9: closure cannot store value in outer context.
Solution:   Make storing value in outer context work.  Make :disassemble
            accept a function reference.

4 years agopatch 8.2.0702: running channel tests may leave running process behind v8.2.0702
Bram Moolenaar [Wed, 6 May 2020 17:38:30 +0000 (19:38 +0200)]
patch 8.2.0702: running channel tests may leave running process behind

Problem:    Running channel tests may leave running process behind.
Solution:   Make Python client exit when running into EOF. (Kurtis Rader,
            part of #6046)

4 years agopatch 8.2.0701: Vim9 test fails without job feature v8.2.0701
Bram Moolenaar [Tue, 5 May 2020 21:32:58 +0000 (23:32 +0200)]
patch 8.2.0701: Vim9 test fails without job feature

Problem:    Vim9 test fails without job feature.
Solution:   Add feature check.

4 years agopatch 8.2.0700: Vim9: converting error message to exception not tested v8.2.0700
Bram Moolenaar [Tue, 5 May 2020 20:08:26 +0000 (22:08 +0200)]
patch 8.2.0700: Vim9: converting error message to exception not tested

Problem:    Vim9: converting error message to exception not tested.
Solution:   Test exception from error.  Do not continue after :echoerr.

4 years agopatch 8.2.0699: Vim9: not all errors tested v8.2.0699
Bram Moolenaar [Tue, 5 May 2020 19:25:22 +0000 (21:25 +0200)]
patch 8.2.0699: Vim9: not all errors tested

Problem:    Vim9: not all errors tested.
Solution:   Add test for deleted function.  Bail out on first error.

4 years agopatch 8.2.0698: insert mode completion not fully tested v8.2.0698
Bram Moolenaar [Tue, 5 May 2020 17:57:18 +0000 (19:57 +0200)]
patch 8.2.0698: insert mode completion not fully tested

Problem:    Insert mode completion not fully tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #6041)

4 years agopatch 8.2.0697: Vim9: memory leak when using nested function v8.2.0697
Bram Moolenaar [Tue, 5 May 2020 17:46:20 +0000 (19:46 +0200)]
patch 8.2.0697: Vim9: memory leak when using nested function

Problem:    Vim9: memory leak when using nested function.
Solution:   Unreference function when deleting instructions. Adjust reference
            count for local variables.

4 years agopatch 8.2.0696: Vim9: nested function does not work properly v8.2.0696
Bram Moolenaar [Tue, 5 May 2020 15:53:16 +0000 (17:53 +0200)]
patch 8.2.0696: Vim9: nested function does not work properly

Problem:    Vim9: nested function does not work properly
Solution:   Create a function reference.  Check argument count.

4 years agopatch 8.2.0695: Vim9: cannot define a function inside a function v8.2.0695
Bram Moolenaar [Mon, 4 May 2020 21:24:44 +0000 (23:24 +0200)]
patch 8.2.0695: Vim9: cannot define a function inside a function

Problem:    Vim9: cannot define a function inside a function.
Solution:   Initial support for :def inside :def.

4 years agopatch 8.2.0694: Haiku: channel and terminal do not work v8.2.0694
Bram Moolenaar [Sun, 3 May 2020 20:57:32 +0000 (22:57 +0200)]
patch 8.2.0694: Haiku: channel and terminal do not work

Problem:    Haiku: channel and terminal do not work.
Solution:   Close files when the job has finished. (Ozaki Kiichi,
            closes #6039)

4 years agopatch 8.2.0693: closure using argument not tested v8.2.0693
Bram Moolenaar [Sun, 3 May 2020 20:30:49 +0000 (22:30 +0200)]
patch 8.2.0693: closure using argument not tested

Problem:    Closure using argument not tested.
Solution:   Add a test, make it work.

4 years agopatch 8.2.0692: startup test fails on MS-Windows v8.2.0692
Bram Moolenaar [Sun, 3 May 2020 16:21:04 +0000 (18:21 +0200)]
patch 8.2.0692: startup test fails on MS-Windows

Problem:    Startup test fails on MS-Windows.
Solution:   Allow for any path.

4 years agopatch 8.2.0691: startup test fails v8.2.0691
Bram Moolenaar [Sun, 3 May 2020 15:55:32 +0000 (17:55 +0200)]
patch 8.2.0691: startup test fails

Problem:    Startup test fails.
Solution:   Adjust expected output from -V2 argument.

4 years agopatch 8.2.0690: line number of option set by modeline is wrong v8.2.0690
Bram Moolenaar [Sun, 3 May 2020 15:19:33 +0000 (17:19 +0200)]
patch 8.2.0690: line number of option set by modeline is wrong

Problem:    Line number of option set by modeline is wrong.
Solution:   Do not double the line number. (Ozaki Kiichi, closes #6035)

4 years agopatch 8.2.0689: when using getaddrinfo() the error message is unclear v8.2.0689
Bram Moolenaar [Sun, 3 May 2020 15:03:29 +0000 (17:03 +0200)]
patch 8.2.0689: when using getaddrinfo() the error message is unclear

Problem:    When using getaddrinfo() the error message is unclear.
Solution:   Use gai_strerror() to get the message. (Ozaki Kiichi,
            closes #6034)

4 years agopatch 8.2.0688: output clobbered if setting 'verbose' to see shell commands v8.2.0688
Bram Moolenaar [Sun, 3 May 2020 15:01:24 +0000 (17:01 +0200)]
patch 8.2.0688: output clobbered if setting 'verbose' to see shell commands

Problem:    Output clobbered if setting 'verbose' to see shell commands.
Solution:   Only output "Searching for" when 'verbose' is 11 or higher.

4 years agopatch 8.2.0687: some tests do not work on FreeBSD v8.2.0687
Bram Moolenaar [Sun, 3 May 2020 14:29:50 +0000 (16:29 +0200)]
patch 8.2.0687: some tests do not work on FreeBSD

Problem:    Some tests do not work on FreeBSD.
Solution:   Enable modeline.  Use WaitFor() in more cases. (Ozaki Kiichi,
            closes #6036)

4 years agopatch 8.2.0686: formatoptions not sufficiently tested v8.2.0686
Bram Moolenaar [Sun, 3 May 2020 14:04:43 +0000 (16:04 +0200)]
patch 8.2.0686: formatoptions not sufficiently tested

Problem:    Formatoptions not sufficiently tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #6031)

4 years agopatch 8.2.0685: Build failure v8.2.0685
Bram Moolenaar [Sun, 3 May 2020 13:47:33 +0000 (15:47 +0200)]
patch 8.2.0685: Build failure

Problem:    Build failure.
Solution:   Include missing changes.

4 years agopatch 8.2.0684: Vim9: memory leak when using lambda v8.2.0684
Bram Moolenaar [Sun, 3 May 2020 13:38:16 +0000 (15:38 +0200)]
patch 8.2.0684: Vim9: memory leak when using lambda

Problem:    Vim9: memory leak when using lambda.
Solution:   Move the funccal context to the partial. Free the function when
            exiting.

4 years agopatch 8.2.0683: Vim9: parsing type does not always work v8.2.0683
Bram Moolenaar [Sat, 2 May 2020 21:12:58 +0000 (23:12 +0200)]
patch 8.2.0683: Vim9: parsing type does not always work

Problem:    Vim9: parsing type does not always work.
Solution:   Handle func type without return value.  Test more closures.
            Fix type check offset.  Fix garbage collection.

4 years agopatch 8.2.0682: Vim9: parsing function argument type can get stuck v8.2.0682
Bram Moolenaar [Sat, 2 May 2020 17:04:58 +0000 (19:04 +0200)]
patch 8.2.0682: Vim9: parsing function argument type can get stuck

Problem:    Vim9: parsing function argument type can get stuck.
Solution:   Bail out when not making progress.

4 years agopatch 8.2.0681: pattern for 'hlsearch' highlighting may leak v8.2.0681
Bram Moolenaar [Sat, 2 May 2020 16:33:25 +0000 (18:33 +0200)]
patch 8.2.0681: pattern for 'hlsearch' highlighting may leak

Problem:    Pattern for 'hlsearch' highlighting may leak. (Dominique Pelle)
Solution:   Call end_search_hl() to make sure the previous pattern is freed.
            (closes #6028)

4 years agopatch 8.2.0680: PTYGROUP and PTYMODE are unused v8.2.0680
Bram Moolenaar [Sat, 2 May 2020 16:14:37 +0000 (18:14 +0200)]
patch 8.2.0680: PTYGROUP and PTYMODE are unused

Problem:    PTYGROUP and PTYMODE are unused.
Solution:   Remove from autoconf. (closes #6024)

4 years agopatch 8.2.0679: Vim9: incomplete support for closures v8.2.0679
Bram Moolenaar [Sat, 2 May 2020 15:52:42 +0000 (17:52 +0200)]
patch 8.2.0679: Vim9: incomplete support for closures

Problem:    Vim9: incomplete support for closures.
Solution:   At the end of a function copy arguments and local variables if
            they are still used by a referenced closure.