Bram Moolenaar
17fa233f6f
patch 8.2.4663: occasional crash when running the GUI tests
...
Problem: Occasional crash when running the GUI tests.
Solution: Check that the line index is not too high. (closes #8681 )
2022-04-01 19:44:47 +01:00
Bram Moolenaar
22ebd172e4
patch 8.2.4662: no error for using out of range list index
...
Problem: No error for using out of range list index.
Solution: Check list index at script level like in compiled function.
(closes #10051 )
2022-04-01 15:26:58 +01:00
Bram Moolenaar
ffe6e646dc
patch 8.2.4661: Coverity warning for using uninitialized variable
...
Problem: Coverity warning for using uninitialized variable.
Solution: Initialize variable to NULL.
2022-04-01 13:23:47 +01:00
Bram Moolenaar
782c6744b4
patch 8.2.4660: cursorcolumn is sometimes not correct
...
Problem: Cursorcolumn is sometimes not correct.
Solution: Recompute the cursor column when entering Insert mode and the
cursor is on a character wider than a screen cell.
2022-04-01 12:06:31 +01:00
Bram Moolenaar
96e08e028c
patch 8.2.4659: invalid memory access when using printable function name
...
Problem: Invalid memory access when using printable function name.
Solution: Adjust copied name length.
2022-03-31 21:40:33 +01:00
ranjithshegde
3a6f952cc8
patch 8.2.4658: org-mode files are not recognized
...
Problem: Org-mode files are not recognized.
Solution: Add patterns to recognize "org" files. (closes #10046 )
2022-03-31 20:24:35 +01:00
Bram Moolenaar
a6c18d38ca
patch 8.2.4657: errors for functions are sometimes hard to read
...
Problem: Errors for functions are sometimes hard to read.
Solution: Use printable_func_name() in more places.
2022-03-31 20:02:56 +01:00
Bram Moolenaar
ccbfd4883f
patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir
...
Problem: Vim9: can't use items from "import autoload" with autoload
directory name.
Solution: Let sn_autoload_prefix overrule sn_import_autoload.
(closes #10054 )
2022-03-31 16:18:23 +01:00
Yegappan Lakshmanan
1104a6d0c2
patch 8.2.4655: cmdline completion popup menu positioned wrong
...
Problem: Command line completion popup menu positioned wrong when using a
terminal window.
Solution: Position the popup menu differently when editing the command line.
(Yegappan Lakshmanan, closes #10050 , closes #10035 )
2022-03-31 12:34:15 +01:00
Bram Moolenaar
49d008d96b
patch 8.2.4654: missing changes for import check
...
Problem: Missing changes for import check.
Solution: Add missing changes.
2022-03-31 11:51:21 +01:00
Bram Moolenaar
4dea2d92e4
patch 8.2.4653: "import autoload" does not check the file name
...
Problem: "import autoload" does not check the file name.
Solution: Give an error if the file is not readable. (closes #10049 )
2022-03-31 11:37:57 +01:00
Bram Moolenaar
d1d2684c80
patch 8.2.4652: leaking memory if assignment fails
...
Problem: Leaking memory if assignment fails.
Solution: Clear assigned value on failure.
2022-03-31 10:13:47 +01:00
Bram Moolenaar
1712518f48
patch 8.2.4651: test fails because path differs
...
Problem: Test fails because path differs.
Solution: Only compare the tail of the path.
2022-03-30 21:57:50 +01:00
Bram Moolenaar
c0ceeeb839
patch 8.2.4650: "import autoload" only works with using 'runtimepath'
...
Problem: "import autoload" only works with using 'runtimepath'.
Solution: Also support a relative and absolute file name.
2022-03-30 21:12:27 +01:00
Bram Moolenaar
b4ad3b0dea
patch 8.2.4649: various formatting problems
...
Problem: Various formatting problems.
Solution: Improve the code formatting.
2022-03-30 10:57:45 +01:00
Yegappan Lakshmanan
9247a221ce
patch 8.2.4648: handling LSP messages is a bit slow
...
Problem: Handling LSP messages is a bit slow.
Solution: Included support for LSP messages. (Yegappan Lakshmanan,
closes #10025 )
2022-03-30 10:16:05 +01:00
Bram Moolenaar
2bdad61267
patch 8.2.4647: "source" can read past end of copied line
...
Problem: "source" can read past end of copied line.
Solution: Add a terminating NUL.
2022-03-29 19:52:12 +01:00
Bram Moolenaar
b55986c52d
patch 8.2.4646: using buffer line after it has been freed
...
Problem: Using buffer line after it has been freed in old regexp engine.
Solution: After getting mark get the line again.
2022-03-29 13:24:58 +01:00
James Cherti
fd01280d01
patch 8.2.4645: 'shortmess' changed when session does not store options
...
Problem: 'shortmess' changed when session does not store options.
Solution: Save and restore 'shortmess' if needed. (James Charti,
closes #10037 )
2022-03-29 12:02:57 +01:00
Lewis Russell
1624639ec8
patch 8.2.4644: redrawing too often when 'relativenumber' is set
...
Problem: Redrawing too often when 'relativenumber' is set.
Solution: Only redraw when the cursor line changed. (Lewis Russell,
closes #10040 )
2022-03-29 11:38:17 +01:00
Bram Moolenaar
24565cf27b
patch 8.2.4643: Vim9: variable may be locked unintentionally
...
Problem: Vim9: variable may be locked unintentionally.
Solution: Clear "v_lock". (closes #10036 )
2022-03-28 18:16:52 +01:00
Bram Moolenaar
859cc21c6b
patch 8.2.4642: Vim9: in :def function script var cannot be null
...
Problem: Vim9: in :def function script var cannot be null.
Solution: Only initialize a script variable when not set to a null value.
(closes #10034 )
2022-03-28 15:22:35 +01:00
Bram Moolenaar
471b3aed3e
patch 8.2.4641: may mark the wrong window for redrawing
...
Problem: May mark the wrong window for redrawing.
Solution: Use redraw_win_later(). (closes #10032 )
2022-03-28 12:41:19 +01:00
James McCoy
8be423b7ac
patch 8.2.4640: some boolean options use "long" instead of "int"
...
Problem: Some boolean options use "long" instead of "int".
Solution: Adjust the type. (James McCoy, closes #10033 )
2022-03-28 11:55:12 +01:00
kylo252
9dac9b1751
patch 8.2.4639: not sufficient parenthesis in preprocessor macros
...
Problem: Not sufficient parenthesis in preprocessor macros.
Solution: Add more parenthesis. (closes #10031 )
2022-03-27 20:05:17 +01:00
zeertzjq
3e559cd884
patch 8.2.4638: superfluous check if a redraw is needed for 'cursorline'
...
Problem: Superfluous check if a redraw is needed for 'cursorline'.
Solution: Remove check_redraw_cursorline(). (closes #10030 , closes #10029 )
2022-03-27 19:26:55 +01:00
Bram Moolenaar
565d1278cb
patch 8.2.4637: warning for using uninitialized variable
...
Problem: Warning for using uninitialized variable. (Tony Mechelynck)
Solution: Initialize it.
2022-03-27 18:11:05 +01:00
Bram Moolenaar
1501b63f8d
patch 8.2.4636: not using Visual range
...
Problem: Not using Visual range.
Solution: Put the command pointer back to the range.
2022-03-27 16:56:21 +01:00
Bram Moolenaar
501f978288
patch 8.2.4635: tests using null list or dict fail
...
Problem: Tests using null list or dict fail.
Solution: Only use the new rules for Vim9 script.
2022-03-27 16:51:04 +01:00
Bram Moolenaar
ec15b1cfdc
patch 8.2.4634: Vim9: cannot initialize a variable to null_list
...
Problem: Vim9: cannot initialize a variable to null_list.
Solution: Give negative count to NEWLIST. (closes #10027 )
Also fix inconsistencies in comparing with null values.
2022-03-27 16:29:53 +01:00
Bram Moolenaar
c75bca3ee9
patch 8.2.4633: Visual range does not work before command modifiers
...
Problem: Visual range does not work before command modifiers.
Solution: Move Visual range to after command modifiers.
2022-03-27 13:36:50 +01:00
Bram Moolenaar
f3980dc5d0
patch 8.2.4632: using freed memory in flatten()
...
Problem: Using freed memory in flatten().
Solution: Clear typval after recursing into list.
2022-03-26 16:42:23 +00:00
Bram Moolenaar
347538fad0
patch 8.2.4631: crash when switching window in BufWipeout autocommand
...
Problem: Crash when switching window in BufWipeout autocommand.
Solution: Put any buffer in the window to avoid it being NULL.
(closes #10024 )
2022-03-26 16:28:06 +00:00
Bram Moolenaar
bf269ed0b0
patch 8.2.4630: 'cursorline' not always updated with 'culopt' is "screenline"
...
Problem: 'cursorline' not always updated with 'cursorlineopt' is
"screenline".
Solution: Call check_redraw_cursorline() more often. (closes #10013 )
2022-03-26 13:28:14 +00:00
Bram Moolenaar
c6c1ec4da5
patch 8.2.4629: flattennew() makes a deep copy unnecessarily
...
Problem: flattennew() makes a deep copy unnecessarily.
Solution: Use a shallow copy. (issue #10012 )
2022-03-26 10:50:11 +00:00
Yegappan Lakshmanan
5e877baf87
patch 8.2.4628: not enough testing for 2/3 letter substitute commands
...
Problem: Not enough testing for 2/3 letter substitute commands.
Solution: Add more tests. (Yegappan Lakshmanan, closes #10019 )
2022-03-25 21:19:26 +00:00
Bram Moolenaar
acf7d73a7f
patch 8.2.4627: flatten() does not use maxdepth correctly
...
Problem: flatten() does not use maxdepth correctly.
Solution: Use a recursive implementation. (closes #10020 )
2022-03-25 19:50:57 +00:00
Bram Moolenaar
abb6fbd14d
patch 8.2.4626: Visual area not updated when removing sign in Visual mode
...
Problem: Visual area not fully updated when removing sign in Visual mode
while scrolling.
Solution: Adjust check for topline. (closes #10017 )
2022-03-25 15:42:27 +00:00
Bram Moolenaar
90da27b927
patch 8.2.4625: old Coverity warning for resource leak
...
Problem: Old Coverity warning for resource leak.
Solution: Call FreeWild() if expanding matches did not fail.
2022-03-25 14:54:18 +00:00
Bram Moolenaar
5d46dcfeed
patch 8.2.4624: old Coverity warning for resource leak
...
Problem: Old Coverity warning for resource leak.
Solution: Close the file if memory allocation fails.
2022-03-25 14:46:47 +00:00
Bram Moolenaar
03a297c63f
patch 8.2.4623: Coverity warns for using uninitialized field
...
Problem: Coverity warns for using uninitialized field.
Solution: Initialize he field to zero.
2022-03-25 14:39:51 +00:00
Bram Moolenaar
43216611a5
patch 8.2.4622: Vim9: crash with :execute and :finish
...
Problem: Vim9: Crash with :execute and :finish. (Sergey Vlasov)
Solution: Check for NULL. (closes #10011 )
2022-03-25 11:16:28 +00:00
Bram Moolenaar
9dd42a6311
patch 8.2.4621: crash when using the tabline right-click menu
...
Problem: Crash when using the tabline right-click menu.
Solution: Use XtPointer for XmNuserData. (closes #10009 )
2022-03-24 18:04:49 +00:00
Bram Moolenaar
1e2c4175dc
patch 8.2.4620: two letter substitute commands don't work
...
Problem: Two letter substitute commands don't work. (Yegappan Lakshmanan)
Solution: Invert condition.
2022-03-24 15:24:45 +00:00
Bram Moolenaar
f8e43f6107
patch 8.2.4619: mapping is cancelled when mouse moves and popup is visible
...
Problem: Mapping is cancelled when mouse moves and popup is visible.
Solution: Only generate mouse moved events when a popup may use them.
(closes #10004 )
2022-03-24 15:15:15 +00:00
Bram Moolenaar
f4f0525c34
patch 8.2.4618: cmdline completion does not recognize single letter commands
...
Problem: Command line completion does not recognize single letter commands.
Solution: Use the condition from find_ex_command().
2022-03-24 13:08:36 +00:00
Yegappan Lakshmanan
454ce6737c
patch 8.2.4617: no completion for :scriptnames
...
Problem: No completion for :scriptnames.
Solution: Implement :scriptnames completion. (Yegappan Lakshmanan,
closes #10005 )
2022-03-24 11:22:13 +00:00
Bram Moolenaar
98b7fe725e
patch 8.2.4616: Vim9: Declarations in a {} block of a user command remain
...
Problem: Vim9: Declarations in a {} block of a user command do not use Vim9
rules if defined in a legacy script. (Yegappan Lakshmanan)
Solution: Pretend the script is Vim9 script.
2022-03-23 21:36:27 +00:00
Bram Moolenaar
ac48506ac6
patch 8.2.4615: mapping with escaped bar does not work in :def function
...
Problem: Mapping with escaped bar does not work in :def function. (Sergey
Vlasov)
Solution: Do not remove the backslash. (closes #10002 )
2022-03-23 19:45:01 +00:00
zeertzjq
c20e46a4e3
patch 8.2.4614: redrawing too much when 'cursorline' is set
...
Problem: Redrawing too much when 'cursorline' is set and jumping around.
Solution: Rely on win_update() to redraw the current and previous cursor
line, do not mark lines as modified. (closes #9996 )
2022-03-23 14:55:23 +00:00