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
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
zeertzjq
7a73252063
patch 8.2.4567: bracketed paste doesn't work well in Visual linewise mode
...
Problem: Bracketed paste doesn't work well in Visual linewise mode.
Solution: Handle linewise Visual mode differently. (closes #9947 )
2022-03-14 20:46:41 +00:00
kylo252
ae6f1d8b14
patch 8.2.4402: missing parenthesis may cause unexpected problems
...
Problem: Missing parenthesis may cause unexpected problems.
Solution: Add more parenthesis is macros. (closes #9788 )
2022-02-16 19:24:07 +00:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
ichizok
672776dbe8
patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice
...
Problem: Generating nv_cmdidxs.h requires building Vim twice.
Solution: Move the table into a separate file and use a separate executable
to extract the command characters. (Ozaki Kiichi, closes #9669 )
2022-01-31 12:27:18 +00:00
Yegappan Lakshmanan
4dc0dd8699
patch 8.2.4252: generating the normal command table at runtime is inefficient
...
Problem: Generating the normal command table at runtime is inefficient.
Solution: Generate the table with a Vim script and put it in a header file.
(Yegappan Lakshmanan, closes #9648 )
2022-01-29 13:06:40 +00:00
Shougo Matsushita
fb55207ed1
patch 8.2.4242: put in Visual mode cannot be repeated
...
Problem: Put in Visual mode cannot be repeated.
Solution: Use "P" to put without yanking the deleted text into the unnamed
register. (Shougo Matsushita, closes #9591 )
2022-01-28 16:01:13 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
420fabcd4f
patch 8.2.4241: some type casts are redundant
...
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643 )
2022-01-28 15:28:04 +00:00
zeertzjq
fbf4f1ca15
patch 8.2.4237: record buffer wrong if character in Select mode was not typed
...
Problem: Record buffer wrong if character in Select mode was not typed.
Solution: Only delete the tail from the record buffer if the character was
typed. (closes #9650 )
2022-01-28 12:50:43 +00:00
Yegappan Lakshmanan
b0ad2d92fd
patch 8.2.4228: no tests for clicking in the GUI tabline
...
Problem: No tests for clicking in the GUI tabline.
Solution: Add test functions to generate the events. Add tests using the
functions. (Yegappan Lakshmanan, closes #9638 )
2022-01-27 13:16:59 +00:00
Yegappan Lakshmanan
a827bf3ea8
patch 8.2.4221: some functions in normal.c are very long
...
Problem: Some functions in normal.c are very long.
Solution: Move code to separate functions. (Yegappan Lakshmanan,
closes #9628 )
2022-01-26 12:14:15 +00:00
Yegappan Lakshmanan
4663435074
patch 8.2.4205: the normal_cmd() function is too long
...
Problem: The normal_cmd() function is too long.
Solution: Move parts to separate functions. (Yegappan Lakshmanan,
closes #9608 )
2022-01-24 16:30:30 +00:00
Yegappan Lakshmanan
05386ca1d4
patch 8.2.4165: the nv_g_cmd() function is too long
...
Problem: The nv_g_cmd() function is too long.
Solution: Move code to separate functions. (Yegappan Lakshmanan,
closes #9576 )
2022-01-20 20:18:27 +00:00
Shougo Matsushita
4ede01f188
patch 8.2.4160: cannot change the register used for Select mode delete
...
Problem: Cannot change the register used for Select mode delete.
Solution: Make CTRL-R set the register to be used when deleting text for
Select mode. (Shougo Matsushita, closes #9531 )
2022-01-20 15:26:03 +00:00
Bram Moolenaar
e32c3c462c
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping
...
Problem: Vim9: cannot use Vim9 syntax in mapping.
Solution: Add <ScriptCmd> to use the script context for a command.
2022-01-15 18:26:04 +00:00
Bram Moolenaar
a6f7929e62
patch 8.2.4005: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-04 21:30:47 +00:00
Bram Moolenaar
c88e977862
patch 8.2.3993: when recording a change in Select mode char appears twice
...
Problem: When recording a change in Select mode the first typed character
appears twice.
Solution: When putting the character back into typeahead remove it from
recorded characters. (closes #9462 )
2022-01-03 13:47:50 +00:00
Bram Moolenaar
ac78dd4a35
patch 8.2.3985: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 19:25:26 +00:00
Bram Moolenaar
eaaac014a0
patch 8.2.3983: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-02 17:00:40 +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.
2021-12-28 20:59:56 +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 )
2021-12-26 15:00:07 +00:00
Bram Moolenaar
739f13a55b
patch 8.2.3795: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
2021-12-13 13:12:53 +00:00
Bram Moolenaar
6e371ecb27
patch 8.2.3787: no proper formatting of a C line comment after a statement
...
Problem: No proper formatting of a C line comment after a statement.
Solution: Find the start of the line comment, insert the comment leader and
indent the comment properly.
2021-12-12 14:16:39 +00:00
Bram Moolenaar
d0fb907253
patch 8.2.3764: cannot see any text when window was made zero lines
...
Problem: Cannot see any text when window was made zero lines or zero
columns.
Solution: Ensure there is at least one line and column. (fixes #9307 )
2021-12-09 11:57:22 +00:00
Bram Moolenaar
9b0e82f35e
patch 8.2.3660: overflow check uses wrong number
...
Problem: Overflow check uses wrong number.
Solution: Divide by ten.
2021-11-24 13:40:29 +00:00
Bram Moolenaar
03725c5795
patch 8.2.3659: integer overflow with large line number
...
Problem: Integer overflow with large line number.
Solution: Check for overflow. (closes #9202 )
2021-11-24 12:17:53 +00:00
Bram Moolenaar
2228cd72cf
patch 8.2.3644: count for 'operatorfunc' in Visual mode is not redone
...
Problem: Count for 'operatorfunc' in Visual mode is not redone.
Solution: Add the count to the redo buffer. (closes #9174 )
2021-11-22 14:16:08 +00:00
Bram Moolenaar
615ddd5342
patch 8.2.3611: crash when using CTRL-W f without finding a file name
...
Problem: Crash when using CTRL-W f without finding a file name.
Solution: Bail out when the file name length is zero.
2021-11-17 18:00:31 +00:00
Bram Moolenaar
a062006b9d
patch 8.2.3610: crash when ModeChanged triggered too early
...
Problem: Crash when ModeChanged triggered too early.
Solution: Trigger ModeChanged after setting VIsual.
2021-11-17 16:52:40 +00:00
Bram Moolenaar
0c71114aed
patch 8.2.3583: the "gd" and "gD" commands do not update search stats
...
Problem: The "gd" and "gD" commands do not update search stats. (Gary
Johnson)
Solution: Clear search stats.
2021-11-12 10:30:04 +00:00
Christian Brabandt
aaec1d4fb1
patch 8.2.3580: gj does not move properly with a wide character
...
Problem: gj does not move properly with a wide character.
Solution: Move one to the right. (Christian Brabandt, closes #8702 )
2021-11-04 13:28:29 +00:00
=?UTF-8?q?Magnus=20Gro=C3=9F?=
25def2c8b8
patch 8.2.3555: ModeChanged is not triggered on every mode change
...
Problem: ModeChanged is not triggered on every mode change.
Solution: Also trigger on minor mode changes. (Maguns Gross, closes #8999 )
2021-10-22 18:56:39 +01:00
Bram Moolenaar
21c1a0c2f1
patch 8.2.3530: ":buf \{a}" fails while ":edit \{a}" works
...
Problem: ":buf \{a}" fails while ":edit \{a}" works.
Solution: Unescape "\{". (closes #8917 )
2021-10-17 17:20:23 +01:00
Bram Moolenaar
b07626d4af
patch 8.2.3494: illegal memory access in utf_head_off
...
Problem: Illegal memory access in utf_head_off.
Solution: Check cursor position when reselecting the Visual area.
(closes #8963 )
2021-10-11 15:40:43 +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
35a9a00afc
patch 8.2.3428: using freed memory when replacing
...
Problem: Using freed memory when replacing. (Dhiraj Mishra)
Solution: Get the line pointer after calling ins_copychar().
2021-09-11 21:14:20 +02:00
zeertzjq
eaf3f36168
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode
...
Problem: mode() does not indicate using CTRL-O in Select mode.
Solution: Use "vs" and similar. (closes #8640 )
2021-07-28 16:51:53 +02:00
Gary Johnson
53ba05b090
patch 8.2.3227: 'virtualedit' can only be set globally
...
Problem: 'virtualedit' can only be set globally.
Solution: Make 'virtualedit' global-local. (Gary Johnson, closes #8638 )
2021-07-26 22:19:10 +02:00
Bram Moolenaar
ea042677ab
patch 8.2.3074: popup_atcursor() uses wrong position with concealing
...
Problem: popup_atcursor() uses wrong position with concealing.
Solution: Keep w_wcol in conceal_check_cursor_line(). (closes #8476 )
2021-06-29 20:22:32 +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
Christian Brabandt
544a38e44d
patch 8.2.2971: cannot yank a block without trailing spaces
...
Problem: Cannot yank a block without trailing spaces.
Solution: Add the "zy" command. (Christian Brabandt, closes #8292 )
2021-06-10 19:39:11 +02:00
Bram Moolenaar
21492743e8
patch 8.2.2938: after using motion force from feedkeys() it sticks
...
Problem: After using motion force from feedkeys() it may not be reset.
Solution: Clear motion_force in clearop(). (closes #8323 )
2021-06-04 21:57:57 +02:00
Bram Moolenaar
4f3c57f798
patch 8.2.2932: select mode test fails
...
Problem: Select mode test fails.
Solution: Do not always reset the held mouse button.
2021-06-03 22:11:08 +02:00
Bram Moolenaar
85eee5b969
patch 8.2.2930: when a popup is visible a mouse move my restart Visual mode
...
Problem: When a popup is visible a mouse move my restart Visual mode.
Solution: Reset held_button when ending Visual mode. (closes #8318 )
2021-06-03 20:34:57 +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
Christian Brabandt
2fa9384ca1
patch 8.2.2914: cannot paste a block without adding padding
...
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes #8289 )
2021-05-30 22:17:25 +02:00
Bram Moolenaar
74ede80aeb
patch 8.2.2904: "g$" causes scroll if half a double width char is visible
...
Problem: "g$" causes scroll if half a double width char is visible.
Solution: Advance to the last fully visible character. (closes #8254 )
2021-05-29 19:18:01 +02:00
Bram Moolenaar
1ad72c8eb6
patch 8.2.2832: operator cancelled by moving mouse when using popup
...
Problem: Operator cancelled by moving mouse when using popup. (Sergey
Vlasov)
Solution: Do not trigger an operator for a mouse move events. (closes #8176 )
2021-05-04 21:56:28 +02:00
Bram Moolenaar
3c49e74e18
patch 8.2.2711: "gj" in a closed fold does not move out of the fold
...
Problem: "gj" in a closed fold does not move out of the fold. (Marco Hinz)
Solution: Add a check for being in a closed fold. (closes #8062 )
2021-04-04 21:26:04 +02:00