]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.2389: test failure on a few systems v8.2.2389
Bram Moolenaar [Thu, 21 Jan 2021 21:53:38 +0000 (22:53 +0100)]
patch 8.2.2389: test failure on a few systems

Problem:    Test failure on a few systems.
Solution:   Avoid that "char" value is negative.

4 years agopatch 8.2.2388: no easy way to get the maximum or mininum number value v8.2.2388
Bram Moolenaar [Thu, 21 Jan 2021 20:42:31 +0000 (21:42 +0100)]
patch 8.2.2388: no easy way to get the maximum or mininum number value

Problem:    No easy way to get the maximum or mininum number value.
Solution:   Add v:numbermax and v:numbermin.

4 years agopatch 8.2.2387: runtime type check does not mention argument index v8.2.2387
Bram Moolenaar [Thu, 21 Jan 2021 19:21:29 +0000 (20:21 +0100)]
patch 8.2.2387: runtime type check does not mention argument index

Problem:    Runtime type check does not mention argument index.
Solution:   Add ct_arg_idx. (closes #7720)

4 years agopatch 8.2.2386: Vim9: crash when using ":silent! put" v8.2.2386
Bram Moolenaar [Thu, 21 Jan 2021 18:41:16 +0000 (19:41 +0100)]
patch 8.2.2386: Vim9: crash when using ":silent! put"

Problem:    Vim9: crash when using ":silent! put".
Solution:   When ignoring an error for ":silent!" rewind the stack and skip
            ahead to restoring the cmdmod. (closes #7717)

4 years agopatch 8.2.2385: "gj" and "gk" do not work correctly when inside a fold v8.2.2385
Bram Moolenaar [Thu, 21 Jan 2021 16:03:07 +0000 (17:03 +0100)]
patch 8.2.2385: "gj" and "gk" do not work correctly when inside a fold

Problem:    "gj" and "gk" do not work correctly when inside a fold.
Solution:   Move check for folding. (closes #7724, closes #4095)

4 years agopatch 8.2.2384: turtle filetype not recognized v8.2.2384
Bram Moolenaar [Thu, 21 Jan 2021 13:45:13 +0000 (14:45 +0100)]
patch 8.2.2384: turtle filetype not recognized

Problem:    Turtle filetype not recognized.
Solution:   Add a rule to detect turtle files. (closes #7722)

4 years agopatch 8.2.2383: focus escape sequences are not named v8.2.2383
Bram Moolenaar [Thu, 21 Jan 2021 12:36:43 +0000 (13:36 +0100)]
patch 8.2.2383: focus escape sequences are not named

Problem:    Focus escape sequences are not named in ":set termcap" output.
Solution:   Add the names to the list. (closes #7718)

4 years agopatch 8.2.2382: build failure v8.2.2382
Bram Moolenaar [Thu, 21 Jan 2021 12:03:20 +0000 (13:03 +0100)]
patch 8.2.2382: build failure

Problem:    Build failure.
Solution:   Add missing changes.

4 years agopatch 8.2.2381: Vim9: divide by zero does not abort expression execution v8.2.2381
Bram Moolenaar [Thu, 21 Jan 2021 11:34:14 +0000 (12:34 +0100)]
patch 8.2.2381: Vim9: divide by zero does not abort expression execution

Problem:    Vim9: divide by zero does not abort expression execution.
Solution:   Use a "failed" flag. (issue #7704)

4 years agopatch 8.2.2380: Vim9: occasional crash when using try/catch and a timer v8.2.2380
Bram Moolenaar [Wed, 20 Jan 2021 21:22:49 +0000 (22:22 +0100)]
patch 8.2.2380: Vim9: occasional crash when using try/catch and a timer

Problem:    Vim9: occasional crash when using try/catch and a timer.
Solution:   Save and restore "need_rethrow" when invoking a timer callback.
            (closes #7708)

4 years agopatch 8.2.2379: do spell suggestions twice if 'spellsuggest' contains number v8.2.2379
Bram Moolenaar [Wed, 20 Jan 2021 20:42:33 +0000 (21:42 +0100)]
patch 8.2.2379: do spell suggestions twice if 'spellsuggest' contains number

Problem:    Finding spell suggestions twice if 'spellsuggest' contains number.
Solution:   Only do internal suggestions once.  (closes #7713)

4 years agopatch 8.2.2378: Vim9: no error message for dividing by zero v8.2.2378
Bram Moolenaar [Wed, 20 Jan 2021 20:23:14 +0000 (21:23 +0100)]
patch 8.2.2378: Vim9: no error message for dividing by zero

Problem:    Vim9: no error message for dividing by zero.
Solution:   Give an error message. (issue #7704)

4 years agopatch 8.2.2377: Vim9: crash when using a range after another expression v8.2.2377
Bram Moolenaar [Tue, 19 Jan 2021 21:48:09 +0000 (22:48 +0100)]
patch 8.2.2377: Vim9: crash when using a range after another expression

Problem:    Vim9: crash when using a range after another expression.
Solution:   Set the variable type to number. Fix using :put with a range and
            the "=" register. (closes #7706)

4 years agopatch 8.2.2376: Vim9: crash when dividing by zero in compiled code v8.2.2376
Bram Moolenaar [Tue, 19 Jan 2021 21:16:41 +0000 (22:16 +0100)]
patch 8.2.2376: Vim9: crash when dividing by zero in compiled code

Problem:    Vim9: crash when dividing by zero in compiled code using
            constants.
Solution:   Call num_divide() and num_modulus(). (closes #7704)

4 years agopatch 8.2.2375: test for RGB color skipped in the terminal v8.2.2375
Bram Moolenaar [Tue, 19 Jan 2021 16:22:58 +0000 (17:22 +0100)]
patch 8.2.2375: test for RGB color skipped in the terminal

Problem:    Test for RGB color skipped in the terminal.
Solution:   Run the GUI if possible.

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 18 Jan 2021 18:55:44 +0000 (19:55 +0100)]
Update runtime files.

4 years agopatch 8.2.2374: accessing uninitialized memory in test_undo v8.2.2374
Bram Moolenaar [Sun, 17 Jan 2021 21:04:02 +0000 (22:04 +0100)]
patch 8.2.2374: accessing uninitialized memory in test_undo

Problem:    Accessing uninitialized memory in test_undo.
Solution:   Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé,
            closes #7697)

4 years agopatch 8.2.2373: Vim9: list assignment only accepts a number index v8.2.2373
Bram Moolenaar [Sun, 17 Jan 2021 20:51:24 +0000 (21:51 +0100)]
patch 8.2.2373: Vim9: list assignment only accepts a number index

Problem:    Vim9: list assignment only accepts a number index.
Solution:   Accept "any" and do a runtime type check. (closes #7694)

4 years agopatch 8.2.2372: confusing error message for wrong :let command v8.2.2372
Bram Moolenaar [Sun, 17 Jan 2021 19:52:13 +0000 (20:52 +0100)]
patch 8.2.2372: confusing error message for wrong :let command

Problem:    Confusing error message for wrong :let command.
Solution:   Only check for type in Vim9 script.

4 years agopatch 8.2.2371: Vim9: crash when using types in :for with unpack v8.2.2371
Bram Moolenaar [Sun, 17 Jan 2021 19:23:38 +0000 (20:23 +0100)]
patch 8.2.2371: Vim9: crash when using types in :for with unpack

Problem:    Vim9: crash when using types in :for with unpack.
Solution:   Check for skip_var_list() failing. Pass include_type to
            skip_var_one(). Skip type when compiling. (closes #7694)

4 years agopatch 8.2.2370: Vim9: command fails in catch block v8.2.2370
Bram Moolenaar [Sun, 17 Jan 2021 18:20:32 +0000 (19:20 +0100)]
patch 8.2.2370: Vim9: command fails in catch block

Problem:    Vim9: command fails in catch block.
Solution:   Reset force_abort and need_rethrow. (closes #7692)

4 years agopatch 8.2.2369: Vim9: functions return true/false but can't be used as bool v8.2.2369
Bram Moolenaar [Sun, 17 Jan 2021 15:16:23 +0000 (16:16 +0100)]
patch 8.2.2369: Vim9: functions return true/false but can't be used as bool

Problem:    Vim9: functions return true/false but can't be used as bool.
Solution:   Add ret_number_bool(). (closes #7693)

4 years agopatch 8.2.2368: insufficient tests for setting options v8.2.2368
Bram Moolenaar [Sun, 17 Jan 2021 12:48:03 +0000 (13:48 +0100)]
patch 8.2.2368: insufficient tests for setting options

Problem:    Insufficient tests for setting options.
Solution:   Add a few tests. (Dominique Pellé, closes #7695)

4 years agopatch 8.2.2367: test failures on some less often used systems v8.2.2367
Bram Moolenaar [Sun, 17 Jan 2021 12:21:20 +0000 (13:21 +0100)]
patch 8.2.2367: test failures on some less often used systems

Problem:    Test failures on some less often used systems.
Solution:   Adjust printf formats and types. (James McCoy, closes #7691)

4 years agopatch 8.2.2366: when using ":sleep" the cursor is always displayed v8.2.2366
Bram Moolenaar [Sat, 16 Jan 2021 19:21:23 +0000 (20:21 +0100)]
patch 8.2.2366: when using ":sleep" the cursor is always displayed

Problem:    When using ":sleep" the cursor is always displayed.
Solution:   Do not display the cursor when using ":sleep!". (Jeremy Lerner,
            closes #7688)

4 years agopatch 8.2.2365: Vim9: no check for map() changing item type at script level v8.2.2365
Bram Moolenaar [Sat, 16 Jan 2021 18:01:53 +0000 (19:01 +0100)]
patch 8.2.2365: Vim9: no check for map() changing item type at script level

Problem:    Vim9: no check for map() changing item type at script level.
Solution:   Check the new value type.

4 years agopatch 8.2.2364: Vim9: line break in lambda accesses freed memory v8.2.2364
Bram Moolenaar [Sat, 16 Jan 2021 17:09:52 +0000 (18:09 +0100)]
patch 8.2.2364: Vim9: line break in lambda accesses freed memory

Problem:    Vim9: line break in lambda accesses freed memory.
Solution:   Make a copy of the return type. (closes #7664)

4 years agopatch 8.2.2363: curpos() does not accept a string argument as before v8.2.2363
Bram Moolenaar [Sat, 16 Jan 2021 15:52:49 +0000 (16:52 +0100)]
patch 8.2.2363: curpos() does not accept a string argument as before

Problem:    curpos() does not accept a string argument as before.
solution:   Make a string argument work again. (Yegappan Lakshmanan,
            closes #7690

4 years agopatch 8.2.2362: Vim9: check of builtin function argument type is incomplete v8.2.2362
Bram Moolenaar [Sat, 16 Jan 2021 15:07:01 +0000 (16:07 +0100)]
patch 8.2.2362: Vim9: check of builtin function argument type is incomplete

Problem:    Vim9: check of builtin function argument type is incomplete.
Solution:   Use need_type() instead of check_arg_type().

4 years agopatch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc' v8.2.2361
Bram Moolenaar [Sat, 16 Jan 2021 13:34:45 +0000 (14:34 +0100)]
patch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'

Problem:    Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution:   Reset 'lazyredraw' temporarily. (closes #7687)

4 years agopatch 8.2.2360: test leaves file behind v8.2.2360
Bram Moolenaar [Sat, 16 Jan 2021 12:43:31 +0000 (13:43 +0100)]
patch 8.2.2360: test leaves file behind

Problem:    Test leaves file behind.
Solution:   Delete the right file. (Dominique Pellé, closes #7689)

4 years agopatch 8.2.2359: strange test failure with MS-Windows v8.2.2359
Bram Moolenaar [Sat, 16 Jan 2021 12:11:42 +0000 (13:11 +0100)]
patch 8.2.2359: strange test failure with MS-Windows

Problem:    Strange test failure with MS-Windows.
Solution:   Skip the system() call for now.

4 years agopatch 8.2.2358: wrong #ifdef for use_xterm_like_mouse() v8.2.2358
Bram Moolenaar [Sat, 16 Jan 2021 10:21:40 +0000 (11:21 +0100)]
patch 8.2.2358: wrong #ifdef for use_xterm_like_mouse()

Problem:    Wrong #ifdef for use_xterm_like_mouse().
Solution:   Use FEAT_MOUSE_XTERM.

4 years agopatch 8.2.2357: Vim9: crash when parsing function return type fails v8.2.2357
Bram Moolenaar [Fri, 15 Jan 2021 18:04:32 +0000 (19:04 +0100)]
patch 8.2.2357: Vim9: crash when parsing function return type fails

Problem:    Vim9: crash when parsing function return type fails.
Solution:   Bail out and set return type to "unknown". (closes #7685)

4 years agopatch 8.2.2356: Vim9: ":put =expr" does not handle a list properly v8.2.2356
Bram Moolenaar [Fri, 15 Jan 2021 17:04:43 +0000 (18:04 +0100)]
patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly

Problem:    Vim9: ":put =expr" does not handle a list properly.
Solution:   Use the same logic as eval_to_string_eap(). (closes #7684)

4 years agopatch 8.2.2355: stray test failure on Appveyor v8.2.2355
Bram Moolenaar [Fri, 15 Jan 2021 15:45:21 +0000 (16:45 +0100)]
patch 8.2.2355: stray test failure on Appveyor

Problem:    Stray test failure on Appveyor.
Solution:   Finish insert command.

4 years agopatch 8.2.2354: crash with a weird combination of autocommands v8.2.2354
Bram Moolenaar [Fri, 15 Jan 2021 15:22:52 +0000 (16:22 +0100)]
patch 8.2.2354: crash with a weird combination of autocommands

Problem:    Crash with a weird combination of autocommands.
Solution:   Increment b_nwindows when needed. (closes #7674)

4 years agopatch 8.2.2353: spartql files are not detected v8.2.2353
Bram Moolenaar [Fri, 15 Jan 2021 12:35:30 +0000 (13:35 +0100)]
patch 8.2.2353: spartql files are not detected

Problem:    Spartql files are not detected.
Solution:   Add the sparql filetype.  (closes #7679)

4 years agopatch 8.2.2352: if focus lost/gained is received twice code is not ignored v8.2.2352
Bram Moolenaar [Thu, 14 Jan 2021 20:57:58 +0000 (21:57 +0100)]
patch 8.2.2352: if focus lost/gained is received twice code is not ignored

Problem:    If the focus lost/gained escape sequence is received twice it is
            not ignored. (Christ van Willigen)
Solution:   Adjust the logic to ignore the escape code.

4 years agopatch 8.2.2351: Vim9: error msg for "throw" in function called with "silent!" v8.2.2351
Bram Moolenaar [Thu, 14 Jan 2021 20:47:06 +0000 (21:47 +0100)]
patch 8.2.2351: Vim9: error msg for "throw" in function called with "silent!"

Problem:    Vim9: error message for "throw" in function that was called with
            "silent!".
Solution:   Do not throw the exception when not caught or displayed.
            (closes #7672)

4 years agopatch 8.2.2350: using "void" for no reason v8.2.2350
Bram Moolenaar [Thu, 14 Jan 2021 20:40:22 +0000 (21:40 +0100)]
patch 8.2.2350: using "void" for no reason

Problem:    Using "void" for no reason.
Solution:   Use "char *".

4 years agopatch 8.2.2349: Vim9: cannot handle line break after parenthesis at line end v8.2.2349
Bram Moolenaar [Thu, 14 Jan 2021 19:35:49 +0000 (20:35 +0100)]
patch 8.2.2349: Vim9: cannot handle line break after parenthesis at line end

Problem:    Vim9: cannot handle line break after parenthesis at line end.
Solution:   Skip over line break. (closes #7677)

4 years agopatch 8.2.2348: no check for modified files after focus gained v8.2.2348
Bram Moolenaar [Thu, 14 Jan 2021 18:19:18 +0000 (19:19 +0100)]
patch 8.2.2348: no check for modified files after focus gained

Problem:    No check for modified files after focus gained. (Mathias Stearn)
Solution:   Call ui_focus_change().

4 years agopatch 8.2.2347: build failure without GUI v8.2.2347
Bram Moolenaar [Thu, 14 Jan 2021 18:04:44 +0000 (19:04 +0100)]
patch 8.2.2347: build failure without GUI

Problem:    Build failure without GUI.
Solution:   Add #ifdef.

4 years agopatch 8.2.2346: Codecov reports every little coverage drop v8.2.2346
Bram Moolenaar [Thu, 14 Jan 2021 16:55:59 +0000 (17:55 +0100)]
patch 8.2.2346: Codecov reports every little coverage drop

Problem:    Codecov reports every little coverage drop.
Solution:   Tolerate a 0.05% drop. Hide the appveyor config file. (Ozaki
            Kiichi, closes #7678)

4 years agopatch 8.2.2345: no focus events in a terminal v8.2.2345
Bram Moolenaar [Thu, 14 Jan 2021 16:35:21 +0000 (17:35 +0100)]
patch 8.2.2345: no focus events in a terminal

Problem:    No focus events in a terminal.
Solution:   Add the t_fd and t_fe termcap entries and implement detecting
            focus events. (Hayaki Saito, Magnus Groß, closes #7673,
            closes #609, closes #5526)

4 years agopatch 8.2.2344: using inclusive index for slice is not always desired v8.2.2344
Bram Moolenaar [Wed, 13 Jan 2021 20:47:15 +0000 (21:47 +0100)]
patch 8.2.2344: using inclusive index for slice is not always desired

Problem:    Using inclusive index for slice is not always desired.
Solution:   Add the slice() method, which has an exclusive index. (closes
            #7408)

4 years agopatch 8.2.2343: Vim9: return type of readfile() is any v8.2.2343
Bram Moolenaar [Wed, 13 Jan 2021 19:38:03 +0000 (20:38 +0100)]
patch 8.2.2343: Vim9: return type of readfile() is any

Problem:    Vim9: return type of readfile() is any.
Solution:   Add readblob() so that readfile() can be expected to always
            return a list of strings. (closes #7671)

4 years agopatch 8.2.2342: "char" functions may return wrong column in Insert mode v8.2.2342
Bram Moolenaar [Wed, 13 Jan 2021 19:08:38 +0000 (20:08 +0100)]
patch 8.2.2342: "char" functions may return wrong column in Insert mode

Problem:    "char" functions return the wront column in Insert mode when the
            cursor is beyond the end of the line.
Solution:   Compute the column correctly. (Yegappan Lakshmanan, closes #7669)

4 years agopatch 8.2.2341: expresison command line completion incomplete after "g:" v8.2.2341
Bram Moolenaar [Wed, 13 Jan 2021 18:48:46 +0000 (19:48 +0100)]
patch 8.2.2341: expresison command line completion incomplete after "g:"

Problem:    Expresison command line completion shows variables but not
            functions after "g:". (Gary Johnson)
Solution:   Prefix "g:" when needed to a global function.

4 years agopatch 8.2.2340: win_execute() unexpectedly returns number zero when failing v8.2.2340
Bram Moolenaar [Tue, 12 Jan 2021 21:08:53 +0000 (22:08 +0100)]
patch 8.2.2340: win_execute() unexpectedly returns number zero when failing

Problem:    win_execute() unexpectedly returns number zero when failing.
Solution:   Return an empty string. (closes #7665)

4 years agopatch 8.2.2339: cannot get the type of a value as a string v8.2.2339
Bram Moolenaar [Tue, 12 Jan 2021 20:49:00 +0000 (21:49 +0100)]
patch 8.2.2339: cannot get the type of a value as a string

Problem:    Cannot get the type of a value as a string.
Solution:   Add typename().

4 years agopatch 8.2.2338: Vim9: no error if using job_info() result wrongly v8.2.2338
Bram Moolenaar [Tue, 12 Jan 2021 20:22:31 +0000 (21:22 +0100)]
patch 8.2.2338: Vim9: no error if using job_info() result wrongly

Problem:    Vim9: no error if using job_info() result wrongly.
Solution:   Adjust return type on number of arguments. (closes #7667)

4 years agopatch 8.2.2337: configure test for GTK only says "no" v8.2.2337
Bram Moolenaar [Tue, 12 Jan 2021 19:51:24 +0000 (20:51 +0100)]
patch 8.2.2337: configure test for GTK only says "no"

Problem:    Configure test for GTK only says "no". (Harm te Hennepe)
Solution:   Hint that a -def package is needed. (closes #5229)

4 years agopatch 8.2.2336: Vim9: not possible to extend dictionary with different type v8.2.2336
Bram Moolenaar [Tue, 12 Jan 2021 19:23:40 +0000 (20:23 +0100)]
patch 8.2.2336: Vim9: not possible to extend dictionary with different type

Problem:    Vim9: it is not possible to extend a dictionary with different
            item types.
Solution:   Add extendnew(). (closes #7666)

4 years agopatch 8.2.2335: Vim9: "silent return" does not restore command modifiers v8.2.2335
Bram Moolenaar [Tue, 12 Jan 2021 17:58:39 +0000 (18:58 +0100)]
patch 8.2.2335: Vim9: "silent return" does not restore command modifiers

Problem:    Vim9: "silent return" does not restore command modifiers.
Solution:   Resture command modifiers before returning. (closes #7649)

4 years agopatch 8.2.2334: Pascal-like filetypes not always detected v8.2.2334
Bram Moolenaar [Tue, 12 Jan 2021 16:42:24 +0000 (17:42 +0100)]
patch 8.2.2334: Pascal-like filetypes not always detected

Problem:    Pascal-like filetypes not always detected.
Solution:   Improved Puppet, InstantFPC and Pascal detection. (Doug Kearns,
            closes #7662)

4 years agopatch 8.2.2333: Vim9: warning for uninitialized variable v8.2.2333
Bram Moolenaar [Tue, 12 Jan 2021 16:17:01 +0000 (17:17 +0100)]
patch 8.2.2333: Vim9: warning for uninitialized variable

Problem:    Vim9: warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize "res".

4 years agopatch 8.2.2332: Vim9: missing :endif not reported when using :windo v8.2.2332
Bram Moolenaar [Mon, 11 Jan 2021 21:16:30 +0000 (22:16 +0100)]
patch 8.2.2332: Vim9: missing :endif not reported when using :windo

Problem:    Vim9: missing :endif not reported when using :windo.
Solution:   Pass a getline function to do_cmdline(). (closes #7650)

4 years agopatch 8.2.2331: Vim9: wrong error when modifying dict declared with :final v8.2.2331
Bram Moolenaar [Mon, 11 Jan 2021 20:20:18 +0000 (21:20 +0100)]
patch 8.2.2331: Vim9: wrong error when modifying dict declared with :final

Problem:    Vim9: wrong error when modifying dict declared with :final.
Solution:   Do not check for writable variable when an index follows.
            (closes #7657)

4 years agopatch 8.2.2330: Vim9: crash when using :trow in a not executed block v8.2.2330
Bram Moolenaar [Mon, 11 Jan 2021 19:17:34 +0000 (20:17 +0100)]
patch 8.2.2330: Vim9: crash when using :trow in a not executed block

Problem:    Vim9: crash when using :trow in a not executed block.
Solution:   Don't generate the instruction when skipping. (closes #7659)

4 years agopatch 8.2.2329: not all ways Vim can be started are tested v8.2.2329
Bram Moolenaar [Mon, 11 Jan 2021 18:54:42 +0000 (19:54 +0100)]
patch 8.2.2329: not all ways Vim can be started are tested

Problem:    Not all ways Vim can be started are tested.
Solution:   Add a test for different program names. (Dominique Pellé,
            closes #7651)

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 11 Jan 2021 18:40:15 +0000 (19:40 +0100)]
Update runtime files.

4 years agopatch 8.2.2328: some test files may not be deleted v8.2.2328
Bram Moolenaar [Mon, 11 Jan 2021 17:47:00 +0000 (18:47 +0100)]
patch 8.2.2328: some test files may not be deleted

Problem:    Some test files may not be deleted.
Solution:   Add a delete() call, correct name. (Dominique Pellé, closes #7654)

4 years agopatch 8.2.2327: debugging code included v8.2.2327
Bram Moolenaar [Sun, 10 Jan 2021 22:58:28 +0000 (23:58 +0100)]
patch 8.2.2327: debugging code included

Problem:    Debugging code included.
Solution:   Remove the debugging code.

4 years agopatch 8.2.2326: build error with +eval feature but without +spell v8.2.2326
Bram Moolenaar [Sun, 10 Jan 2021 21:56:36 +0000 (22:56 +0100)]
patch 8.2.2326: build error with +eval feature but without +spell

Problem:    Build error with +eval feature but without +spell.
Solution:   Adjust #ifdef. (John Marriott)

4 years agopatch 8.2.2325: Vim9: crash if map() changes the item type v8.2.2325
Bram Moolenaar [Sun, 10 Jan 2021 21:42:50 +0000 (22:42 +0100)]
patch 8.2.2325: Vim9: crash if map() changes the item type

Problem:    Vim9: crash if map() changes the item type.
Solution:   Check that the item type is still OK. (closes #7652)
            Fix problem with mapnew() on range list.

4 years agopatch 8.2.2324: not easy to get mark en cursor posotion by character count v8.2.2324
Bram Moolenaar [Sun, 10 Jan 2021 19:22:54 +0000 (20:22 +0100)]
patch 8.2.2324: not easy to get mark en cursor posotion by character count

Problem:    Not easy to get mark en cursor posotion by character count.
Solution:   Add functions that use character index. (Yegappan Lakshmanan,
            closes #7648)

4 years agopatch 8.2.2323: Vim9: error when inferring type from empty dict/list v8.2.2323
Bram Moolenaar [Sun, 10 Jan 2021 18:23:27 +0000 (19:23 +0100)]
patch 8.2.2323: Vim9: error when inferring type from empty dict/list

Problem:    Vim9: error when inferring type from empty dict/list.
Solution:   When the member is t_unknown use t_any. (closes #7009)

4 years agopatch 8.2.2322: Vim9: closure nested limiting to one level v8.2.2322
Bram Moolenaar [Sun, 10 Jan 2021 17:33:11 +0000 (18:33 +0100)]
patch 8.2.2322: Vim9: closure nested limiting to one level

Problem:    Vim9: closure nested limiting to one level.
Solution:   Add outer_T.  Also make STOREOUTER work.

4 years agopatch 8.2.2321: Vim9: cannot nest closures v8.2.2321
Bram Moolenaar [Sun, 10 Jan 2021 13:02:28 +0000 (14:02 +0100)]
patch 8.2.2321: Vim9: cannot nest closures

Problem:    Vim9: cannot nest closures.
Solution:   Add the nesting level to ISN_LOADOUTER and ISN_STOREOUTER.
            (closes #7150, closes #7635)

4 years agopatch 8.2.2320: Vim9: no error for comparing bool with string v8.2.2320
Bram Moolenaar [Sat, 9 Jan 2021 15:21:37 +0000 (16:21 +0100)]
patch 8.2.2320: Vim9: no error for comparing bool with string

Problem:    Vim9: no error for comparing bool with string.
Solution:   Check for wrong types when comparing. (closes #7639)

4 years agopatch 8.2.2319: "exptype_T" can be read as "expected type" v8.2.2319
Bram Moolenaar [Sat, 9 Jan 2021 14:45:23 +0000 (15:45 +0100)]
patch 8.2.2319: "exptype_T" can be read as "expected type"

Problem:    "exptype_T" can be read as "expected type".
Solution:   Rename to "exprtype_T", expression type.

4 years agopatch 8.2.2318: Vim9: string and list index work differently v8.2.2318
Bram Moolenaar [Sat, 9 Jan 2021 12:20:37 +0000 (13:20 +0100)]
patch 8.2.2318: Vim9: string and list index work differently

Problem:    Vim9: string and list index work differently.
Solution:   Make string index work like list index. (closes #7643)

4 years agopatch 8.2.2317: Vim9: command modifier before list unpack doesn't work v8.2.2317
Bram Moolenaar [Sat, 9 Jan 2021 11:09:22 +0000 (12:09 +0100)]
patch 8.2.2317: Vim9: command modifier before list unpack doesn't work

Problem:    Vim9: command modifier before list unpack doesn't work.
Solution:   Only recognize "[" directly after the name. (closes #7641)

4 years agopatch 8.2.2316: Vim9: cannot list a lambda function v8.2.2316
Bram Moolenaar [Fri, 8 Jan 2021 21:24:19 +0000 (22:24 +0100)]
patch 8.2.2316: Vim9: cannot list a lambda function

Problem:    Vim9: cannot list a lambda function.
Solution:   Support the <lambda>9 notation, like :disassemble. (closes #7634)

4 years agopatch 8.2.2315: Vim9: "enddef" as dict key misintepreted as function end v8.2.2315
Bram Moolenaar [Fri, 8 Jan 2021 20:55:26 +0000 (21:55 +0100)]
patch 8.2.2315: Vim9: "enddef" as dict key misintepreted as function end

Problem:    Vim9: "enddef" as dict key misintepreted as function end.
Solution:   Check for following colon. (closes #7640)

4 years agopatch 8.2.2314: Vim9: returning zero takes two instructions v8.2.2314
Bram Moolenaar [Fri, 8 Jan 2021 19:53:09 +0000 (20:53 +0100)]
patch 8.2.2314: Vim9: returning zero takes two instructions

Problem:    Vim9: returning zero takes two instructions.
Solution:   Add ISN_RETURN_ZERO.

4 years agopatch 8.2.2313: Vim9: using uninitialized field when parsing range v8.2.2313
Bram Moolenaar [Fri, 8 Jan 2021 19:40:45 +0000 (20:40 +0100)]
patch 8.2.2313: Vim9: using uninitialized field when parsing range

Problem:    Vim9: using uninitialized field when parsing range. ":silent!" not
            respected when parsing range fails.
Solution:   Initialize ea.skip.  On pattern failure handle it like an error.
            (closes #7636)

4 years agopatch 8.2.2312: build failure with Ruby 3.0 and 32 bits v8.2.2312
Bram Moolenaar [Fri, 8 Jan 2021 18:31:39 +0000 (19:31 +0100)]
patch 8.2.2312: build failure with Ruby 3.0 and 32 bits

Problem:    Build failure with Ruby 3.0 and 32 bits.
Solution:   Add #ifdef. (closes #7638)

4 years agopatch 8.2.2311: Vim9: cannot assign to variable that shadows command modifier v8.2.2311
Bram Moolenaar [Thu, 7 Jan 2021 21:03:02 +0000 (22:03 +0100)]
patch 8.2.2311: Vim9: cannot assign to variable that shadows command modifier

Problem:    Vim9: cannot assign to a variable that shadows a command modifier.
Solution:   Check for assignment after possible command modifier.
            (closes #7632)

4 years agopatch 8.2.2310: Vim9: winsaveview() return type is too generic v8.2.2310
Bram Moolenaar [Thu, 7 Jan 2021 19:23:33 +0000 (20:23 +0100)]
patch 8.2.2310: Vim9: winsaveview() return type is too generic

Problem:    Vim9: winsaveview() return type is too generic.
Solution:   use dict<number> instead of dict<any>. (closes #7626)

4 years agopatch 8.2.2309: 0o777 not recognized as octal v8.2.2309
Bram Moolenaar [Thu, 7 Jan 2021 18:36:30 +0000 (19:36 +0100)]
patch 8.2.2309: 0o777 not recognized as octal

Problem:    0o777 not recognized as octal.
Solution:   Use vim_isodigit(). (Ken Takata, closes #7633, closes #7631)

4 years agopatch 8.2.2308: Vim9: no error when assigning lambda to funcref v8.2.2308
Bram Moolenaar [Thu, 7 Jan 2021 18:23:08 +0000 (19:23 +0100)]
patch 8.2.2308: Vim9: no error when assigning lambda to funcref

Problem:    Vim9: no error when assigning lambda to funcref without return
            value.
Solution:   Default return value to "any". (closes #7629)

4 years agopatch 8.2.2307: a shell command in the vimrc causes terminal output v8.2.2307
Bram Moolenaar [Thu, 7 Jan 2021 13:45:03 +0000 (14:45 +0100)]
patch 8.2.2307: a shell command in the vimrc causes terminal output

Problem:    A shell command in the vimrc causes terminal output.
Solution:   Do not call starttermcap() after a shell command if the termcap
            wasn't active before.

4 years agopatch 8.2.2306: Vim9: when using function reference type is not checked v8.2.2306
Bram Moolenaar [Wed, 6 Jan 2021 20:59:39 +0000 (21:59 +0100)]
patch 8.2.2306: Vim9: when using function reference type is not checked

Problem:    Vim9: when using function reference type is not checked.
Solution:   When using a function reference lookup the type and check the
            argument types. (issue #7629)

4 years agopatch 8.2.2305: Vim9: "++var" and "--var" are silently accepted v8.2.2305
Bram Moolenaar [Tue, 5 Jan 2021 21:08:20 +0000 (22:08 +0100)]
patch 8.2.2305: Vim9: "++var" and "--var" are silently accepted

Problem:    Vim9: "++var" and "--var" are silently accepted.
Solution:   Give an error message.

4 years agopatch 8.2.2304: Vim9: no test for unletting an imported variable v8.2.2304
Bram Moolenaar [Tue, 5 Jan 2021 19:58:25 +0000 (20:58 +0100)]
patch 8.2.2304: Vim9: no test for unletting an imported variable

Problem:    Vim9: no test for unletting an imported variable.
Solution:   Add a test.  Fix line number in error.

4 years agopatch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen v8.2.2303
Bram Moolenaar [Tue, 5 Jan 2021 18:23:28 +0000 (19:23 +0100)]
patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen

Problem:    Vim9: backtick expansion doesn't work for :foldopen.
Solution:   Do recognize backtick expansion. (closes #7621)

4 years agopatch 8.2.2302: Vim9: using an option value may use uninitialized memory v8.2.2302
Bram Moolenaar [Tue, 5 Jan 2021 16:50:28 +0000 (17:50 +0100)]
patch 8.2.2302: Vim9: using an option value may use uninitialized memory

Problem:    Vim9: using an option value may use uninitialized memory.
Solution:   Clear v_lock. (closes #7620)

4 years agopatch 8.2.2301: Vim9: cannot unlet a dict or list item v8.2.2301
Bram Moolenaar [Mon, 4 Jan 2021 20:57:11 +0000 (21:57 +0100)]
patch 8.2.2301: Vim9: cannot unlet a dict or list item

Problem:    Vim9: cannot unlet a dict or list item.
Solution:   Add ISN_UNLETINDEX.  Refactor assignment code to use for unlet.

4 years agopatch 8.2.2300: Vim9: wrong order on type stack when using dict v8.2.2300
Bram Moolenaar [Mon, 4 Jan 2021 16:40:12 +0000 (17:40 +0100)]
patch 8.2.2300: Vim9: wrong order on type stack when using dict

Problem:    Vim9: wrong order on type stack when using dict.
Solution:   Generate constants before a dict. (closes #7619)

4 years agopatch 8.2.2299: Vim9: invalid memory access making error message flaky v8.2.2299
Bram Moolenaar [Mon, 4 Jan 2021 15:15:58 +0000 (16:15 +0100)]
patch 8.2.2299: Vim9: invalid memory access making error message flaky

Problem:    Vim9: invalid memory access making error message flaky.
Solution:   Do not check cmd_argt for CMD_USER. (issue #7467)

4 years agopatch 8.2.2298: Vim9: comment right after "(" of function not recognized v8.2.2298
Bram Moolenaar [Mon, 4 Jan 2021 13:09:43 +0000 (14:09 +0100)]
patch 8.2.2298: Vim9: comment right after "(" of function not recognized

Problem:    Vim9: comment right after "(" of function not recognized.
Solution:   Do not skip over white space before calling get_function_args().
            (closes #7613)

4 years agopatch 8.2.2297: Vim9: cannot set 'number' to a boolean value v8.2.2297
Bram Moolenaar [Mon, 4 Jan 2021 12:37:54 +0000 (13:37 +0100)]
patch 8.2.2297: Vim9: cannot set 'number' to a boolean value

Problem:    Vim9: cannot set 'number' to a boolean value.
Solution:   Use tv_get_bool(). (closes #7615)

4 years agopatch 8.2.2296: cannot use CTRL-N and CTRL-P in a popup menu v8.2.2296
Bram Moolenaar [Mon, 4 Jan 2021 12:18:30 +0000 (13:18 +0100)]
patch 8.2.2296: cannot use CTRL-N and CTRL-P in a popup menu

Problem:    Cannot use CTRL-N and CTRL-P in a popup menu.
Solution:   Use CTRL-N like <Down> and CTRL-P like <Up>. (closes #7614)

4 years agopatch 8.2.2295: incsearch does not detect empty pattern properly v8.2.2295
Bram Moolenaar [Mon, 4 Jan 2021 11:42:13 +0000 (12:42 +0100)]
patch 8.2.2295: incsearch does not detect empty pattern properly

Problem:    Incsearch does not detect empty pattern properly.
Solution:   Return magic state when skipping over a pattern. (Christian
            Brabandt, closes #7612, closes #6420)

4 years agopatch 8.2.2294: VMS: a few remaining problems v8.2.2294
Bram Moolenaar [Mon, 4 Jan 2021 09:47:26 +0000 (10:47 +0100)]
patch 8.2.2294: VMS: a few remaining problems

Problem:    VMS: a few remaining problems.
Solution:   Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)

4 years agopatch 8.2.2293: build failure with Motif v8.2.2293
Bram Moolenaar [Sun, 3 Jan 2021 21:12:15 +0000 (22:12 +0100)]
patch 8.2.2293: build failure with Motif

Problem:    Build failure with Motif. (Tony Mechelynck)
Solution:   Use empty_option instead of empty_options.

4 years agopatch 8.2.2292: Vim: expr test fails v8.2.2292
Bram Moolenaar [Sun, 3 Jan 2021 21:05:19 +0000 (22:05 +0100)]
patch 8.2.2292: Vim: expr test fails

Problem:    Vim: expr test fails.
Solution:   Add missing part of "null" support.