Yegappan Lakshmanan
5d2e007ccb
patch 8.2.3944: insert mode completion functions are too long
...
Problem: Insert mode completion functions are too long.
Solution: Split up into multiple functions. (Yegappan Lakshmanan,
closes #9431 )
v8.2.3944
2021-12-30 11:40:53 +00:00
Bram Moolenaar
491669701c
patch 8.2.3943: compiler warning from gcc for uninitialized variable
...
Problem: Compiler warning from gcc for uninitialized variable.
Solution: Initialize variable. (closes #9429 )
v8.2.3943
2021-12-30 10:51:45 +00:00
Bram Moolenaar
8e7cc6b920
patch 8.2.3942: Coverity reports a possible memory leak
...
Problem: Coverity reports a possible memory leak.
Solution: Free the array if allocation fails.
v8.2.3942
2021-12-30 10:32:25 +00:00
dbivolaru
ab16ad33ba
patch 8.2.3941: SIGTSTP is not handled
...
Problem: SIGTSTP is not handled.
Solution: Handle SIGTSTP like pressing CTRL-Z. (closes #9422 )
v8.2.3941
2021-12-29 19:41:47 +00:00
Bram Moolenaar
94fb8274ca
patch 8.2.3940: match highlight disappears when doing incsearch for ":s/pat"
...
Problem: Match highlight disappears when doing incsearch for ":s/pat".
Solution: Only use line limit for incsearch highlighting. (closes #9425 )
v8.2.3940
2021-12-29 19:22:44 +00:00
Yegappan Lakshmanan
5a664fe57f
patch 8.2.3939: MS-Windows: fnamemodify('', ':p') does not work
...
Problem: MS-Windows: fnamemodify('', ':p') does not work.
Solution: Do not consider an empty string a full path. (Yegappan Lakshmanan,
closes #9428 , closes #9427 )
v8.2.3939
2021-12-29 18:16:21 +00:00
Bram Moolenaar
ba26367fea
patch 8.2.3938: line comment start is also found in a string
...
Problem: Line comment start is also found in a string.
Solution: Skip line comments in a string.
v8.2.3938
2021-12-29 18:09:13 +00:00
Yegappan Lakshmanan
edc6f10390
patch 8.2.3937: Insert mode completion function is too long
...
Problem: Insert mode completion function is too long.
Solution: Refactor into multiple functions. (Yegappan Lakshmanan,
closes #9423 )
v8.2.3937
2021-12-29 17:38:46 +00:00
Sean Dewar
ccc1644f95
patch 8.2.3936: no proper test for maintaining change mark in diff mode
...
Problem: No proper test for maintaining change mark in diff mode.
Solution: Run the test with internal and external diff. (Sean Dewar,
closes #9424 )
v8.2.3936
2021-12-29 16:44:48 +00:00
Bram Moolenaar
5d20fbf2e7
patch 8.2.3935: CTRL-U in Insert mode does not fix the indent
...
Problem: CTRL-U in Insert mode does not fix the indent.
Solution: Fix the indent when 'cindent' is set.
v8.2.3935
2021-12-29 16:05:31 +00:00
Bram Moolenaar
5ea5f37372
patch 8.2.3934: repeating line comment is undesired for "O" command
...
Problem: Repeating line comment is undesired for "O" command.
Solution: Do not copy line comment leader for "O". (closes #9426 )
v8.2.3934
2021-12-29 15:15:47 +00:00
Richard Doty
3d0abad5bf
patch 8.2.3933: after ":cd" fails ":cd -" is incorrect
...
Problem: After ":cd" fails ":cd -" is incorrect.
Solution: Set the previous directory only after successfully changing
directory. (Richard Doty, closes #9419 , closes #8983 )
v8.2.3933
2021-12-29 14:39:08 +00:00
Bram Moolenaar
264d3ddac0
patch 8.2.3932: C line comment not formatted properly
...
Problem: C line comment not formatted properly.
Solution: If a line comment follows after "#if" the next line is not the end
of a paragraph.
v8.2.3932
2021-12-29 14:09:32 +00:00
Bram Moolenaar
febb78fa17
patch 8.2.3931: Coverity reports a memory leak
...
Problem: Coverity reports a memory leak.
Solution: Free memory in case of failure.
v8.2.3931
2021-12-29 11:59:53 +00:00
Bram Moolenaar
c97f9a55bd
patch 8.2.3930: getcmdline() argument has a misleading type
...
Problem: getcmdline() argument has a misleading type.
Solution: Use the correct type, even though the value is not used.
v8.2.3930
2021-12-28 20:59:56 +00:00
Bram Moolenaar
10c75c4a09
patch 8.2.3929: using unititialized variable
...
Problem: Using unititialized variable.
Solution: Set the option flags to zero for a terminal option.
v8.2.3929
2021-12-28 20:53:30 +00:00
Bram Moolenaar
11ceb7d949
patch 8.2.3928: heredoc test fails
...
Problem: Heredoc test fails.
Solution: Correct order of function arguments.
v8.2.3928
2021-12-28 20:49:56 +00:00
Bram Moolenaar
8c697e3698
patch 8.2.3927: Vim9: double free when using lambda
...
Problem: Vim9: double free when using lambda.
Solution: Don't free both cmdline and line_to_free.
v8.2.3927
2021-12-28 20:18:50 +00:00
Bram Moolenaar
92f246e4f9
patch 8.2.3926: build failure without the 'autochdir' option
...
Problem: Build failure without the 'autochdir' option. (John Marriott)
Solution: Add #ifdefs.
v8.2.3926
2021-12-28 20:03:43 +00:00
Bram Moolenaar
06f6095623
patch 8.2.3925: diff mode confused by NUL bytes
...
Problem: Diff mode confused by NUL bytes.
Solution: Handle NUL bytes differently. (Christian Brabandt, closes #9421 ,
closes #9418 )
v8.2.3925
2021-12-28 18:30:05 +00:00
Bram Moolenaar
7473a84cf9
patch 8.2.3924: Vim9: no error if something follows :enddef
...
Problem: Vim9: no error if something follows :enddef in a nested function.
Solution: Give an error. Move common code to a function.
v8.2.3924
2021-12-28 17:55:26 +00:00
Bram Moolenaar
4bf1006cae
patch 8.2.3923: Vim9: double free with split argument list in nested function
...
Problem: Vim9: double free if a nested function has a line break in the
argument list.
Solution: Set cmdlinep when freeing the previous line.
v8.2.3923
2021-12-28 17:23:12 +00:00
ichizok
8bb3fe4d4d
patch 8.2.3922: cannot build with dynamic Ruby 3.1
...
Problem: Cannot build with dynamic Ruby 3.1.
Solution: Add "_EXTRA" variables for CI. Add missing functions. (Ozaki
Kiichi, closes #9420 )
v8.2.3922
2021-12-28 15:51:45 +00:00
Lewis Russell
d9da86e94e
patch 8.2.3921: the way xdiff is used is inefficient
...
Problem: The way xdiff is used is inefficient.
Solution: Use hunk_func instead of the out_line callback. (Lewis Russell,
closes #9344 )
v8.2.3921
2021-12-28 13:54:41 +00:00
Bram Moolenaar
90c317f224
patch 8.2.3920: restoring directory after using another window is inefficient
...
Problem: Restoring directory after using another window is inefficient.
Solution: Only restore the directory for win_execute(). Apply 'autochdir'
only when needed.
v8.2.3920
2021-12-28 13:15:05 +00:00
Bram Moolenaar
8b6256f6ec
patch 8.2.3919: Vim9: wrong argument for append() results in two errors
...
Problem: Vim9: wrong argument for append() results in two errors.
Solution: Check did_emsg. Also for setline(). Adjust the help for
appendbufline().
v8.2.3919
2021-12-28 11:24:49 +00:00
Bram Moolenaar
be4e223ead
patch 8.2.3918: function list test fails
...
Problem: Function list test fails.
Solution: Adjust the test for the new location of the function list.
v8.2.3918
2021-12-27 21:42:57 +00:00
Bram Moolenaar
a4d131d110
Update runtime files
2021-12-27 21:33:07 +00:00
Bram Moolenaar
1cae5a0a03
patch 8.2.3917: the eval.txt help file is way too big
...
Problem: The eval.txt help file is way too big.
Solution: Move the builtin function details to a separate file.
v8.2.3917
2021-12-27 21:28:34 +00:00
Bram Moolenaar
8dac2acd6a
patch 8.2.3916: no error for passing an invalid line number to append()
...
Problem: No error for passing an invalid line number to append().
Solution: In Vim9 script check for a non-negative number. (closes #9417 )
v8.2.3916
2021-12-27 20:57:06 +00:00
Bram Moolenaar
4b28ba3245
patch 8.2.3915: illegal memory access when completing with invalid bytes
...
Problem: illegal memory access when completing with invalid bytes.
Solution: Avoid going over the end of the completion text.
v8.2.3915
2021-12-27 19:28:37 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
v8.2.3914
2021-12-27 17:21:41 +00:00
Bram Moolenaar
5da36052a4
patch 8.2.3913: help for expressions does not mention Vim9 syntax
...
Problem: Help for expressions does not mention Vim9 syntax.
Solution: Add the rules for Vim9 to the expression help. Rename functions
to match the help.
v8.2.3913
2021-12-27 15:39:57 +00:00
Bram Moolenaar
bf7ff61af4
patch 8.2.3912: the ins_complete() function is much too long
...
Problem: The ins_complete() function is much too long.
Solution: Split it up into multiple functions. (Yegappan Lakshmanan,
closes #9414 )
v8.2.3912
2021-12-27 12:52:07 +00:00
Bram Moolenaar
ef8f04b1d1
patch 8.2.3911: Vim9: type check for filter() does not accept unknown
...
Problem: Vim9: type check for filter() does not accept unknown.
Solution: Also accept unknown for the return type. (closes #9413 )
v8.2.3911
2021-12-27 12:29:19 +00:00
Bram Moolenaar
23018f2d4b
patch 8.2.3910: when compare function of sort() fails it does not abort
...
Problem: When the compare function of sort() produces and error then sort()
does not abort.
Solution: Check if did_emsg was incremented.
v8.2.3910
2021-12-27 11:54:37 +00:00
Bram Moolenaar
bbdd3fb804
patch 8.2.3909: Containerfile using prefix name not recognized
...
Problem: Containerfile using prefix name not recognized.
Solution: Recognize Containerfile.*.
v8.2.3909
2021-12-27 10:35:52 +00:00
Yegappan Lakshmanan
27708e6c7b
patch 8.2.3908: cannot use a script-local function for 'foldtext'
...
Problem: Cannot use a script-local function for 'foldtext'.
Solution: Expand "s:" and "<SID>". (Yegappan Lakshmanan, closes #9411 )
v8.2.3908
2021-12-26 21:54:43 +00:00
Bram Moolenaar
c553a21e18
patch 8.2.3907: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h. Avoid duplicates.
v8.2.3907
2021-12-26 20:20:34 +00:00
Bram Moolenaar
1f318c6eac
patch 8.2.3906: Vim9 help still contains "under development" warnings
...
Problem: Vim9 help still contains "under development" warnings.
Solution: Remove the explicit warning.
v8.2.3906
2021-12-26 18:09:31 +00:00
Bram Moolenaar
c88ac94a0b
patch 8.2.3905: Dockerfile using prefix name not recognized
...
Problem: Dockerfile using prefix name not recognized.
Solution: Recognize Dockerfile.*. (closes #9410 )
v8.2.3905
2021-12-26 17:31:35 +00:00
Bram Moolenaar
7319981f21
patch 8.2.3904: Vim9: skip expression type is not checked at compile time
...
Problem: Vim9: skip expression type is not checked at compile time.
Solution: Add argument type checks.
v8.2.3904
2021-12-26 17:18:14 +00:00
Bram Moolenaar
71c41255f6
patch 8.2.3903: "gM" does not count tabs as expected
...
Problem: "gM" does not count tabs as expected.
Solution: Use linetabsize() instead of mb_string2cells(). (closes #9409 )
v8.2.3903
2021-12-26 15:00:07 +00:00
Bram Moolenaar
9c23f9bb5f
patch 8.2.3902: Vim9: double free with nested :def function
...
Problem: Vim9: double free with nested :def function.
Solution: Pass "line_to_free" from compile_def_function() and make sure
cmdlinep is valid.
v8.2.3902
2021-12-26 14:23:22 +00:00
Bram Moolenaar
71eb3ad579
patch 8.2.3901: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script
...
Problem: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script.
Solution: Do not restore 'cpo' at the end of the main .vimrc.
v8.2.3901
2021-12-26 12:07:30 +00:00
Yegappan Lakshmanan
8bb65f230d
patch 8.2.3900: it is not easy to use a script-local function for an option
...
Problem: It is not easy to use a script-local function for an option.
Solution: recognize s: and <SID> at the start of the expression. (Yegappan
Lakshmanan, closes #9401 )
v8.2.3900
2021-12-26 10:51:39 +00:00
Bram Moolenaar
ec86520f94
patch 8.2.3899: Vim9: test for map() on string fails
...
Problem: Vim9: test for map() on string fails.
Solution: Expect string return type.
v8.2.3899
2021-12-25 22:10:42 +00:00
Bram Moolenaar
fb9dcb080b
patch 8.2.3898: Vim9: not sufficient testing for variable initialization
...
Problem: Vim9: not sufficient testing for variable initialization.
Solution: Add another test case.
v8.2.3898
2021-12-25 22:00:49 +00:00
Bram Moolenaar
1802405d71
patch 8.2.3897: Vim9: second argument of map() and filter() not checked
...
Problem: Vim9: the second argument of map() and filter() is not checked at
compile time.
Solution: Add more specific type check for the second argument.
v8.2.3897
2021-12-25 21:43:28 +00:00
Bram Moolenaar
db8e5c21b9
patch 8.2.3896: Vim9: no test for nested function not available later
...
Problem: Vim9: no test for nested function not available later.
Solution: Add a test.
v8.2.3896
2021-12-25 19:58:22 +00:00