Bram Moolenaar
35a319b77f
patch 8.2.3489: ml_get error after search with range
...
Problem: ml_get error after search with range.
Solution: Limit the line number to the buffer line count.
2021-10-09 13:58:55 +01:00
kuuote
08d7b1c828
patch 8.2.3475: expression register set by not executed put command
...
Problem: Expression register set by not executed put command.
Solution: Do not set the register if the command is skipped. (closes #8909 )
2021-10-04 22:17:36 +01:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
f1e8876fa2
patch 8.2.3430: no generic way to trigger an autocommand on mode change
...
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856 )
2021-09-12 13:39:55 +02:00
Bram Moolenaar
80c88eac5a
patch 8.2.3414: fullcommand() gives wrong name with buffer-local user command
...
Problem: fullcommand() gives the wrong name if there is a buffer-local user
command. (Naohiro Ono)
Solution: Use a separate function to get the user command name.
(closes #8840 )
2021-09-08 14:29:46 +02:00
Bram Moolenaar
ec1b0968aa
patch 8.2.3405: cannot have a comment line in a {} block of a user command
...
Problem: Cannot have a comment line in a {} block of a user command.
Solution: Continue after the line break. (closes #8837 )
2021-09-06 17:10:59 +02:00
Bram Moolenaar
5ca5cc6412
patch 8.2.3371: Vim9: :$ENV cannot be followed by ->func() in next line
...
Problem: Vim9: :$ENV cannot be followed by ->func() in next line.
Solution: Use "$ENV" as the start of an expression. (closes #8790 )
2021-08-24 21:56:03 +02:00
Bram Moolenaar
73170917f1
patch 8.2.3367: Vim9: :@r executing a register is inconsistent
...
Problem: Vim9: :@r executing a register is inconsistent.
Solution: Use "@r" as the start of an expression. (issue #8779 )
2021-08-22 22:44:11 +02:00
Bram Moolenaar
bf5f287833
patch 8.2.3365: Vim9: cannot use option for all operations
...
Problem: Vim9: cannot use option for all operations.
Solution: Recognize more operations. (closes #8779 )
2021-08-21 20:50:35 +02:00
Bram Moolenaar
dd9de50f42
patch 8.2.3347: check for legacy script is incomplete
...
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756 )
2021-08-15 13:49:42 +02:00
Bram Moolenaar
917c46abe5
patch 8.2.3324: Vim9: Cannot use :silent with :endwhile
...
Problem: Vim9: Cannot use :silent with :endwhile.
Solution: Allow for using the :silent modifier. (closes #8737 )
2021-08-10 19:53:01 +02:00
Yegappan Lakshmanan
8ee52affe7
patch 8.2.3320: some local functions are not static
...
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734 )
2021-08-09 19:59:06 +02:00
Bram Moolenaar
6f6d58c380
patch 8.2.3298: build failure with small features
...
Problem: Build failure with small features.
Solution: Add #ifdef.
2021-08-05 21:17:32 +02:00
Bram Moolenaar
63b9173693
patch 8.2.3297: cannot use all commands inside a {} block
...
Problem: Cannot use all commands inside a {} block after :command and
:autocmd.
Solution: Do consider \n to separate commands. (closes #8620 )
2021-08-05 20:40:03 +02:00
Bram Moolenaar
e4db17fb6e
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def function
...
Problem: Vim9: cannot use :command or :au with a block in a :def function.
Solution: Recognize the start of the block.
2021-08-01 21:19:43 +02:00
Bram Moolenaar
73b8b0ae3a
patch 8.2.3268: cannot use a block with :autocmd like with :command
...
Problem: Cannot use a block with :autocmd like with :command.
Solution: Add support for a {} block after :autocmd. (closes #8620 )
2021-08-01 14:52:32 +02:00
Bram Moolenaar
9e0ee59019
patch 8.2.3262: build failure when ABORT_ON_INTERNAL_ERROR is defined
...
Problem: Build failure when ABORT_ON_INTERNAL_ERROR is defined.
Solution: Adjust how estack_len_before is used.
2021-07-31 22:17:28 +02:00
Bram Moolenaar
335c8c7b20
patch 8.2.3260: build failure with small features
...
Problem: Build failure with small features.
Solution: Add #ifdef.
2021-07-31 21:44:35 +02:00
Bram Moolenaar
620c959c6c
patch 8.2.3259: when 'indentexpr' causes an error did_throw may hang
...
Problem: When 'indentexpr' causes an error the did_throw flag may remain
set.
Solution: Reset did_throw and show the error. (closes #8677 )
2021-07-31 21:32:31 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Bram Moolenaar
5dd839ce20
patch 8.2.3202: Vim9: tests are only executed for legacy script
...
Problem: Vim9: tests are only executed for legacy script.
Solution: Run more tests also for Vim9 script. Fix uncovered problems.
2021-07-22 18:48:53 +02:00
Bram Moolenaar
d8e44476d8
patch 8.2.3197: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move a few more error messages to errors.h.
2021-07-21 22:20:33 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +02:00
Bram Moolenaar
9fa5dabedc
patch 8.2.3189: Vim9: error when using "try|"
...
Problem: Vim9: error when using "try|".
Solution: Allow for "|" right after a command.
2021-07-20 19:18:44 +02:00
mityu
6106504e9e
patch 8.2.3184: cannot add a digraph with a leading space
...
Problem: Cannot add a digraph with a leading space. It is not easy to list
existing digraphs.
Solution: Add setdigraph(), setdigraphlist(), getdigraph() and
getdigraphlist(). (closes #8580 )
2021-07-19 20:07:21 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
035bd1c99f
patch 8.2.3029: Vim9: crash when using operator and list unpack assignment
...
Problem: Vim9: crash when using operator and list unpack assignment.
(Naohiro Ono)
Solution: Get variable value before operation. (closes #8416 )
2021-06-21 19:44:11 +02:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
2fb7495686
patch 8.2.3020: unreachable code
...
Problem: Unreachable code.
Solution: Remove the code. (closes #8406 )
2021-06-19 21:38:25 +02:00
Bram Moolenaar
8ac681a280
patch 8.2.3004: Vim9: error for missing colon given while skipping
...
Problem: Vim9: error for missing colon given while skipping.
Solution: Do not give the error when skipping. (closes #8385 )
2021-06-15 20:06:34 +02:00
Bram Moolenaar
c41badb748
patch 8.2.2961: keys typed during a :normal command are discarded
...
Problem: Keys typed during a :normal command are discarded.
Solution: Concatenate saved typeahead and typed kesy. (closes #8340 )
2021-06-07 22:04:52 +02:00
Bram Moolenaar
e729ce294f
patch 8.2.2955: Vim9: using filter in compiled command does not work
...
Problem: Vim9: using filter in compiled command does not work.
Solution: Generate EXEC including the command modifier.
2021-06-06 21:38:09 +02:00
K.Takata
eeec254878
patch 8.2.2922: computing array length is done in various ways
...
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305 )
2021-06-02 13:28:16 +02:00
Bram Moolenaar
1174b018a6
patch 8.2.2900: QuitPre is triggered before :wq writes the file
...
Problem: QuitPre is triggered before :wq writes the file, which is
different from other commands.
Solution: Trigger QuitPre after writing the file. (closes #8279 )
2021-05-29 14:30:43 +02:00
Bram Moolenaar
3552e74289
patch 8.2.2898: QuitPre and ExitPre not triggered when GUI window is closed
...
Problem: QuitPre and ExitPre not triggered when GUI window is closed.
Solution: Call before_quit_autocmds(). (closes #8242 )
2021-05-29 12:21:58 +02:00
Bram Moolenaar
7d840e9ac7
patch 8.2.2888: Vim9: "k" command recognized in Vim9 script
...
Problem: Vim9: "k" command recognized in Vim9 script.
Solution: Do not recognize "k" or "s" and "d" with flags.
2021-05-26 21:10:11 +02:00
Bram Moolenaar
4c8e8c6e19
patch 8.2.2887: crash when passing null string to fullcommand()
...
Problem: Crash when passing null string to fullcommand().
Solution: Check for NULL pointer. (closes #8256 )
2021-05-26 19:49:09 +02:00
Dominique Pelle
4781d6fd86
patch 8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
...
Problem: Unnessary VIM_ISDIGIT() calls, badly indented code.
Solution: Call skipdigits() on the next character. Improve indenting.
(Dominique Pellé, closes #8227 )
2021-05-18 21:46:31 +02:00
Bram Moolenaar
227c58a486
patch 8.2.2817: Vim9: script sourcing continues after an error
...
Problem: Vim9: script sourcing continues after an error.
Solution: Make an error in any command in "vim9script" abort sourcing.
2021-04-28 20:40:44 +02:00
Bram Moolenaar
b98cec28d9
patch 8.2.2811: Vim9: error for missing white space doesn't say where
...
Problem: Vim9: error for missing white space doesn't say where it is
missing
Solution: Mention the command. (closes #8149 )
2021-04-25 16:35:55 +02:00
Bram Moolenaar
340c59ec6f
patch 8.2.2807: build fails with tiny features
...
Problem: Build fails with tiny features.
Solution: Use a dummy function for ex_incdec().
2021-04-24 20:37:03 +02:00
Bram Moolenaar
bdc0f1c698
patch 8.2.2806: Vim9: using "++nr" as a command might not work
...
Problem: Vim9: using "++nr" as a command might not work.
Solution: Do not recognize "++" and "--" in a following line as addition or
subtraction.
2021-04-24 19:08:24 +02:00
Bram Moolenaar
96cf4ba8fb
patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script
...
Problem: Vim9: cannot use legacy syntax in Vim9 script.
Solution: Add the :legacy command.
2021-04-24 14:15:41 +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
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
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
e8c4660a55
patch 8.2.2725: Vim9: message about compiling is wrong when using try/catch
...
Problem: Vim9: message about compiling is wrong when using try/catch.
Solution: Store the compiling flag with the message. (closes #8071 )
2021-04-05 22:27:37 +02:00
Bram Moolenaar
df749a2b9c
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 )
2021-03-28 15:29:43 +02:00
Bram Moolenaar
f49a1fcdb9
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 "(".
2021-03-27 22:20:21 +01:00
Bram Moolenaar
fa984418e7
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.
2021-03-25 22:15:28 +01:00
Bram Moolenaar
a0399efa72
patch 8.2.2629: Vim9: error for #{{ is not desired
...
Problem: Vim9: error for #{{ is not desired.
Solution: Adjust the checks. (closes #7990 )
2021-03-20 15:00:01 +01:00
Bram Moolenaar
5c7a299c16
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.
2021-03-20 13:29:38 +01:00