Bram Moolenaar
a369c3d9c1
patch 8.2.2798: Vim9: redir to variable with append does not accept an index
...
Problem: Vim9: redir to variable with append does not accept an index.
Solution: Make the appending work.
2021-04-21 16:00:10 +02:00
Bram Moolenaar
2d5f385cee
patch 8.2.2797: Search highlight disappears in the Visual area
...
Problem: Search highlight disappears in the Visual area.
Solution: Combine the search attributes. (closes #8134 )
2021-04-21 15:11:42 +02:00
Bram Moolenaar
753bcf8c7d
patch 8.2.2796: Vim9: redir to variable does not accept an index
...
Problem: Vim9: redir to variable does not accept an index.
Solution: Make the index work.
2021-04-21 14:24:24 +02:00
Bram Moolenaar
169502fb0b
patch 8.2.2795: Coverity warns for not using return value
...
Problem: Coverity warns for not using return value.
Solution: Check the return value of compiling the substitute expression.
2021-04-21 12:19:35 +02:00
Bram Moolenaar
16678eb50f
patch 8.2.2794: Linux users don't know how to get ncurses
...
Problem: Linux users don't know how to get ncurses.
Solution: Add the name of the package. (closes #8132 )
2021-04-21 11:57:59 +02:00
Bram Moolenaar
d23f8bde5c
patch 8.2.2793: MS-Windows: string literals are writable with MSVC
...
Problem: MS-Windows: string literals are writable with MSVC.
Solution: Add the /GF compiler flag. Make mch_write() safer. (Ken Takata,
closes #8133 )
2021-04-21 11:30:48 +02:00
Bram Moolenaar
9ce47ec0b6
patch 8.2.2792: Vim9: :disas shows instructions for default args but no text
...
Problem: Vim9: :disas shows instructions for default args but no text.
Solution: Show the expression test above the default argument instructions.
(closes #8129 )
2021-04-20 22:16:39 +02:00
Bram Moolenaar
5c787fb792
patch 8.2.2791: Vim9: memory leak when using \=expr in :substitute
...
Problem: Vim9: memory leak when using \=expr in :substitute.
Solution: Do not allocate a new instruction list.
2021-04-20 21:49:35 +02:00
Bram Moolenaar
63276685f9
patch 8.2.2790: filetype test fails
...
Problem: filetype test fails
Solution: Also update the scripts detection
2021-04-20 21:14:09 +02:00
Bram Moolenaar
8238f08838
patch 8.2.2789: Vim9: using \=expr in :substitute does not handle jumps
...
Problem: Vim9: using \=expr in :substitute does not handle jumps.
Solution: Start with instruction count zero. (closes #8128 )
2021-04-20 21:10:48 +02:00
Bram Moolenaar
3f88e71fa2
patch 8.2.2788: Raku is now the only name what once was called perl6
...
Problem: Raku is now the only name what once was called perl6.
Solution: Adjust the filetype detection. (closes #8120 )
2021-04-20 20:21:23 +02:00
Bram Moolenaar
6d4c1c7ba8
patch 8.2.2787: MS-Windows: crash when using :echoconsole
...
Problem: MS-Windows: crash when using :echoconsole.
Solution: Do not write a NUL when it's already there.
2021-04-20 10:33:28 +02:00
Bram Moolenaar
4f2df37a0d
patch 8.2.2786: Vim9: memory leak when using :s with expression
...
Problem: Vim9: memory leak when using :s with expression.
Solution: Clean up the instruction list.
2021-04-19 21:06:31 +02:00
Bram Moolenaar
2d1c57ed3d
patch 8.2.2785: Vim9: cannot redirect to local variable
...
Problem: Vim9: cannot redirect to local variable.
Solution: Compile :redir when redirecting to a variable.
2021-04-19 20:50:03 +02:00
Bram Moolenaar
4c13721482
patch 8.2.2784: Vim9: cannot use \=expr in :substitute
...
Problem: Vim9: cannot use \=expr in :substitute.
Solution: Compile the expression into instructions and execute them when
invoked.
2021-04-19 16:48:48 +02:00
Bram Moolenaar
e8209b91b9
patch 8.2.2783: duplicate code for setting byte in blob, blob test may fail
...
Problem: Duplicate code for setting byte in blob, blob test may fail.
Solution: Call blob_set_append(). Test sort failure with "N".
2021-04-18 16:08:52 +02:00
Bram Moolenaar
39211cba72
patch 8.2.2782: Vim9: blob operations not fully tested
...
Problem: Vim9: blob operations not fully tested.
Solution: Make more blob tests run in Vim9 script. Fix filter(). Make
insert() give an error for a null blob, like add().
2021-04-18 15:48:04 +02:00
Bram Moolenaar
b7c21afef1
patch 8.2.2781: add() silently skips when adding to null list or blob
...
Problem: Add() silently skips when adding to null list or blob.
Solution: Give an error in Vim9 script. Allocate blob when it is NULL like
with list and dict.
2021-04-18 14:12:31 +02:00
Bram Moolenaar
d551d6c268
patch 8.2.2780: Vim9: for loop over blob doesn't work
...
Problem: Vim9: for loop over blob doesn't work.
Solution: Make it work.
2021-04-18 13:15:58 +02:00
Bram Moolenaar
f7e92aae15
patch 8.2.2779: memory access error in remove() for blob
...
Problem: Memory access error in remove() for blob.
Solution: Adjust length for memmove().
2021-04-17 21:22:49 +02:00
Bram Moolenaar
d23b714d8b
patch 8.2.2778: problem restoring 'packpath' in session
...
Problem: Problem restoring 'packpath' in session.
Solution: Let "skiprtp" also apply to 'packpath'.
2021-04-17 21:04:34 +02:00
Bram Moolenaar
51e933261b
patch 8.2.2777: Vim9: blob operations not tested in all ways
...
Problem: Vim9: blob operations not tested in all ways.
Solution: Run tests with CheckLegacyAndVim9Success(). Make blob assign with
index work.
2021-04-17 20:44:56 +02:00
Bram Moolenaar
0995c81f2f
patch 8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright'
...
Problem: :mksession uses current value of 'splitbelow' and 'splitright'
even though "options" is not in 'sessionoptions'. (Maxim Kim)
Solution: Save and restore the values, instead of setting to the current
value. (closes #8119 )
2021-04-17 18:38:54 +02:00
Bram Moolenaar
c70fe460b0
patch 8.2.2775: Vim9: wrong line number used for some commands
...
Problem: Vim9: wrong line number used for some commands.
Solution: For :exe, :echo and the like use the line number of the start of
the command. When calling a function set the line number in the
script context.
2021-04-17 17:59:19 +02:00
Bram Moolenaar
6c7cc347af
patch 8.2.2774: Vim9: cannot import an existing name even when using "as"
...
Problem: Vim9: cannot import an existing name even when using "as".
Solution: Do not check for an existing name when using "as". (closes #8113 )
2021-04-17 16:38:50 +02:00
Bram Moolenaar
112a006417
patch 8.2.2773: PSL filetype not recognized
...
Problem: PSL filetype not recognized.
Solution: Add a filetype pattern. (Daniel Kho, closes #8117 )
2021-04-17 14:06:39 +02:00
Bram Moolenaar
635bd60804
patch 8.2.2772: problems when restoring 'runtimepath' from a session file
...
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
2021-04-16 19:58:22 +02:00
Bram Moolenaar
aa1959bd5e
patch 8.2.2771: Vim9: assignment not recognized if declaration was skipped
...
Problem: Vim9: assignment not recognized if declaration was skipped.
Solution: Also recognized an assignment if the variable does not exist.
(closes #8108 )
2021-04-15 22:13:39 +02:00
Bram Moolenaar
fe090eb58f
patch 8.2.2770: Vim9: type of loop variable is not used
...
Problem: Vim9: type of loop variable is not used.
Solution: Parse and check the variable type. (closes #8107 )
2021-04-15 21:48:32 +02:00
Bram Moolenaar
6bc00699c5
patch 8.2.2769: Modula-3 config files are not recognized
...
Problem: Modula-3 config files are not recognized.
Solution: Add filetype patterns. (Doug Kearns)
2021-04-15 14:29:17 +02:00
Bram Moolenaar
f387f5dfbc
patch 8.2.2768: Vim9: memory leak with blob range error
...
Problem: Vim9: memory leak with blob range error.
Solution: Jump to end instead of returning.
2021-04-15 13:42:21 +02:00
Bram Moolenaar
bd6406f15d
patch 8.2.2767: compiler warning for unused argument
...
Problem: Compiler warning for unused argument.
Solution: Remove the argument.
2021-04-14 21:30:06 +02:00
Bram Moolenaar
b141926890
patch 8.2.2766: test failure
...
Problem: Test failure.
Solution: Add change to Vim9 compilation error message.
2021-04-14 20:54:07 +02:00
Bram Moolenaar
0e3ff19196
patch 8.2.2765: Vim9: not all blob operations work
...
Problem: Vim9: not all blob operations work.
Solution: Run more tests also with Vim9 script and :def functions. Fix what
doesn't work.
2021-04-14 20:35:23 +02:00
Bram Moolenaar
b47bed2f7a
patch 8.2.2764: memory leak when default function argument is allocated
...
Problem: Memory leak when default function argument is allocated.
Solution: Free the expression result.
2021-04-14 17:06:43 +02:00
Bram Moolenaar
a3589a0d6c
patch 8.2.2763: Vim9: cannot use type in for loop unpack at script level
...
Problem: Vim9: cannot use type in for loop unpack at script level.
Solution: Advance over the type name.
2021-04-14 13:30:46 +02:00
Bram Moolenaar
f62d73933a
patch 8.2.2762: Vim9: function line truncated when compiling
...
Problem: Vim9: function line truncated when compiling.
Solution: Copy the line before processing it. (closes #8101 )
2021-04-14 12:40:00 +02:00
Bram Moolenaar
2e240bd428
patch 8.2.2761: using "syn include" does not work properly
...
Problem: Using "syn include" does not work properly.
Solution: Don't add current_syn_inc_tag to topgrp. (Jaehwang Jerry Jung,
closes #8104 )
2021-04-14 11:15:08 +02:00
Bram Moolenaar
f6a8d420a8
patch 8.2.2760: Vim9: no error for changing a for loop variable
...
Problem: Vim9: no error for changing a for loop variable.
Solution: Make the loop variable read-only. (issue #8102 )
2021-04-13 21:48:03 +02:00
Bram Moolenaar
f2253963c2
patch 8.2.2759: Vim9: for loop infers type of loop variable
...
Problem: Vim9: for loop infers type of loop variable.
Solution: Do not get the member type. (closes #8102 )
2021-04-13 20:53:13 +02:00
Bram Moolenaar
f48b2fa33c
patch 8.2.2758: Vim9: wrong line number for autoload function with wrong name
...
Problem: Vim9: wrong line number for autoload function with wrong name.
Solution: Set and restore SOURCING_LNUM. (closes #8100 )
2021-04-12 22:02:36 +02:00
Bram Moolenaar
68452177ca
patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate
...
Problem: Vim9: blob tests for legacy and Vim9 script are separate.
Solution: Add CheckLegacyAndVim9Success(). Make blob index assign work.
2021-04-12 21:21:02 +02:00
Bram Moolenaar
cfc3023cb6
patch 8.2.2756: Vim9: blob index and slice not implemented yet
...
Problem: Vim9: blob index and slice not implemented yet.
Solution: Implement blob index and slice.
2021-04-11 20:26:34 +02:00
Bram Moolenaar
af8ea0d066
patch 8.2.2755: Vim9: no error for using a number in a condition
...
Problem: Vim9: no error for using a number in a condition.
Solution: Also use ISN_COND2BOOL if the type is t_number_bool.
(closes #7644 )
2021-04-11 18:24:46 +02:00
Bram Moolenaar
09f067fca3
patch 8.2.2754: :sleep! does not always hide the cursor
...
Problem: :sleep! does not always hide the cursor.
Solution: Add the cursor_is_asleep flag. (Jeremy Lerner, closes #8097 ,
closes #7998 )
2021-04-11 13:29:18 +02:00
Bram Moolenaar
f93bbd0262
patch 8.2.2753: Vim9: cannot ignore an item in assignment unpack
...
Problem: Vim9: cannot ignore an item in assignment unpack.
Solution: Allow using an underscore.
2021-04-10 22:35:43 +02:00
Bram Moolenaar
e8e3078184
patch 8.2.2752
2021-04-10 21:46:05 +02:00
Bram Moolenaar
fed9e830fc
patch 8.2.2751: Coverity warns for using NULL pointer
...
Problem: Coverity warns for using NULL pointer.
Solution: Check for NULL in calling function.
2021-04-10 21:38:38 +02:00
Bram Moolenaar
da479c7597
patch 8.2.2750: Vim9: error for using underscore in nested function
...
Problem: Vim9: error for using underscore in nested function.
Solution: Do not consider "_" already defined. (closes #8096 )
2021-04-10 21:01:38 +02:00
Bram Moolenaar
fe95b94ffa
patch 8.2.2749: Vim9: test for error can be a bit flaky
...
Problem: Vim9: test for error can be a bit flaky.
Solution: Increase the wait time a bit.
2021-04-10 20:52:43 +02:00