Bram Moolenaar
ddf7dba96e
patch 9.0.0387: repeat <ScriptCmd> mapping doesn't use right script context
...
Problem: repeating a <ScriptCmd> mapping does not use the right script
context.
Solution: When using a mapping put <SID>{sid}; in the redo buffer.
(closes #11049 )
2022-09-05 16:53:21 +01:00
zeertzjq
c47b16a470
patch 9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted
...
Problem: GUI: when CTRL-D is mapped in Insert mode it gets inserted.
(Yasuhiro Matsumoto)
Solution: Also recognize modifier starting with CSI. (closes #11057 )
2022-09-05 13:05:29 +01:00
Bram Moolenaar
a2a8973e51
patch 9.0.0340: the 'cmdheight' zero support causes too much trouble
...
Problem: The 'cmdheight' zero support causes too much trouble.
Solution: Revert support for 'cmdheight' being zero.
2022-08-31 14:46:18 +01:00
Bram Moolenaar
13608d851a
patch 9.0.0318: clearing screen causes flicker
...
Problem: Clearing screen causes flicker.
Solution: Do not clear but redraw in more cases. Add () to "wait_return".
2022-08-29 15:06:50 +01:00
Bram Moolenaar
8d69637133
patch 9.0.0234: cannot make difference between :normal end and argument char
...
Problem: Cannot make difference between the end of :normal and a character
in its argument.
Solution: Add the "typebuf_was_empty" flag. (closes #10950 )
2022-08-21 10:40:07 +01:00
Bram Moolenaar
a4d158b3c8
patch 9.0.0206: redraw flags are not named specifically
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
2022-08-14 14:17:45 +01:00
Shougo Matsushita
f39cfb7262
patch 9.0.0114: the command line takes up space even when not used
...
Problem: The command line takes up space even when not used.
Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita,
closes #10675 , closes #940 )
2022-07-30 16:54:05 +01:00
Bram Moolenaar
7f9969c559
patch 9.0.0067: cannot show virtual text
...
Problem: Cannot show virtual text.
Solution: Initial changes for virtual text support, using text properties.
2022-07-25 18:13:54 +01:00
zeertzjq
bb404f5ad5
patch 9.0.0059: test file has wrong name
...
Problem: Test file has wrong name.
Solution: Rename the file. Various small fixes. (closes #10674 )
2022-07-23 06:25:29 +01:00
Bram Moolenaar
b8329db36a
patch 9.0.0044: typos in comments, wrapping lines
...
Problem: Typos in comments, wrapping lines.
Solution: Adjust comments. Wrap lines.
2022-07-06 13:31:28 +01:00
Bram Moolenaar
af043e12d9
patch 9.0.0024: may access part of typeahead buf that isn't filled
...
Problem: May access part of typeahead buf that isn't filled.
Solution: Check length of typeahead.
2022-07-02 12:08:16 +01:00
zeertzjq
2e7cba347f
patch 8.2.5076: unnecessary code
...
Problem: Unnecessary code.
Solution: Remove code and replace with function call. (closes #10552 )
2022-06-10 15:30:32 +01:00
zeertzjq
3760bfddc4
patch 8.2.5064: no test for what 8.1.0052 fixes
...
Problem: No test for what 8.1.0052 fixes.
Solution: Add a test. (closes #10531 )
2022-06-06 16:22:46 +01:00
zeertzjq
e3a529bc87
patch 8.2.5058: input() does not handle composing characters properly
...
Problem: input() does not handle composing characters properly.
Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
(closes #10527 )
2022-06-05 19:01:37 +01:00
Bram Moolenaar
249591057b
patch 8.2.4911: the mode #defines are not clearly named
...
Problem: The mode #defines are not clearly named.
Solution: Prepend MODE_. Renumber them to put the mapped modes first.
2022-05-07 20:01:16 +01:00
zeertzjq
ee44603069
patch 8.2.4848: local completion with mappings and simplification not working
...
Problem: Local completion with mappings and simplification not working.
Solution: Fix local completion <C-N>/<C-P> mappings not ignored if keys are
not simplified. (closes #10323 )
2022-04-30 15:02:22 +01:00
zeertzjq
bad8a013c2
patch 8.2.4846: termcodes test fails
...
Problem: Termcodes test fails.
Solution: use CTRL-SHIFT-V to insert an unsimplified key. (closes #10316 )
2022-04-29 16:44:00 +01:00
zeertzjq
758a8d1999
patch 8.2.4844: <C-S-I> is simplified to <S-Tab>
...
Problem: <C-S-I> is simplified to <S-Tab>.
Solution: Do not simplify CTRL if there is also SHIFT. (closes #10313 )
2022-04-29 11:06:34 +01:00
zeertzjq
68a573ce2b
patch 8.2.4837: modifiers not simplified when timed out
...
Problem: Modifiers not simplified when timed out or using feedkeys() with
'n" flag.
Solution: Adjust how mapped flag and timeout are used. (closes #10305 )
2022-04-28 14:10:01 +01:00
zeertzjq
12e21e387b
patch 8.2.4833: failure of mapping not checked for
...
Problem: Failure of mapping not checked for.
Solution: Check return value of ins_typebuf(). (closes #10299 )
2022-04-27 11:58:01 +01:00
zeertzjq
fc78a0369e
patch 8.2.4832: passing zero instead of NULL to a pointer argument
...
Problem: Passing zero instead of NULL to a pointer argument.
Solution: Use NULL. (closes #10296 )
2022-04-26 22:11:38 +01:00
zeertzjq
17c95d9608
patch 8.2.4829: a key may be simplified to NUL
...
Problem: A key may be simplified to NUL.
Solution: Use K_ZERO instead. Use macros instead of hard coded values.
(closes #10290 )
2022-04-26 12:51:07 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
zeertzjq
81b46a6ccd
patch 8.2.4722: ending recording with mapping records too much
...
Problem: When a recording is ended with a mapped key that key is also
recorded.
Solution: Remember the previous last_recorded_len. (closes #10122 )
2022-04-09 17:58:49 +01:00
zeertzjq
6d4e725a34
patch 8.2.4705: jump list marker disappears
...
Problem: Jump list marker disappears.
Solution: Reset reg_executing later. (closes #10111 , closes #10100 )
2022-04-07 13:58:04 +01:00
zeertzjq
0f68e6c07a
patch 8.2.4692: no test for what 8.2.4691 fixes
...
Problem: No test for what 8.2.4691 fixes.
Solution: Add a test. Use a more generic sotlution. (closes #10090 )
2022-04-05 13:17:01 +01:00
Bram Moolenaar
ca9d8d2cb9
patch 8.2.4691: solution for <Cmd> in a mapping causes trouble
...
Problem: Solution for <Cmd> in a mapping causes trouble.
Solution: Use another solution: put back CTRL-O after reading the <Cmd>
sequence.
2022-04-04 22:09:30 +01:00
Bram Moolenaar
d0fb2d8041
patch 8.2.4689: using <Cmd> in a mapping does not work for mouse keys
...
Problem: Using <Cmd> in a mapping does not work for mouse keys in Insert
mode. (Sergey Vlasov)
Solution: When reading the <Cmd> argument do not use the stuff buffer.
(closes #10080 )
2022-04-04 21:03:52 +01:00
Bram Moolenaar
f35fd8e5d4
patch 8.2.4588: mapping with key after other matching mapping does not work
...
Problem: Mapping with key code after other matching mapping does not work.
Solution: Change ">" to ">=". (closes #9903 )
2022-03-18 15:41:17 +00:00
Bram Moolenaar
bbf84e2737
patch 8.2.4551: when mapping <Esc> terminal codes are not recognized
...
Problem: When mapping <Esc> terminal codes are not recognized.
Solution: Specifically recognize a mapping with just <Esc> and check for
terminal codes even though there is no partial mapping.
(closes #9903 )
2022-03-12 13:48:39 +00:00
Bram Moolenaar
196c3850db
patch 8.2.4504: when there is a partially matching map full map may not work
...
Problem: When there is a partially matching map and modifyOtherKeys is
active a full map may not work.
Solution: Only simplify modifiers when there is no matching mapping.
(closes #8792 )
2022-03-04 19:22:36 +00:00
Bram Moolenaar
d979d64fa2
patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X
...
Problem: In the GUI a modifier is not recognized for the key typed after
CTRL-X, which may result in a mapping to be used. (Daniel
Steinberg)
Solution: Recognize a modifier starting with CSI. (closes #9889 )
2022-03-04 14:51:06 +00:00
Bram Moolenaar
1fc34225ac
patch 8.2.4498: using <Plug> with "noremap" does not work
...
Problem: Using <Plug> with "noremap" does not work.
Solution: Always remap <Plug>. (closes #9879 , closes #9789 )
2022-03-03 13:56:24 +00:00
zeertzjq
ad6c45f625
patch 8.2.4427: getchar() may return modifiers if no character is available
...
Problem: getchar() may return modifiers if no character is available.
Solution: Do not process modifiers when there is no character. (closes #9806 )
2022-02-20 19:05:10 +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
zeertzjq
646bb7247a
patch 8.2.4400: MS-Windows: cannot use the mouse in the console with VIMDLL
...
Problem: MS-Windows: cannot use the mouse in the console with VIMDLL.
Solution: use add_char2buf() instead of fix_input_buffer(). (closes #9784 ,
closes #9769 )
2022-02-16 17:51:47 +00:00
Bram Moolenaar
9fdde7992a
patch 8.2.4394: UTF8 select mode test fails on MS-Windows
...
Problem: UTF8 select mode test fails on MS-Windows.
Solution: Revert the #ifdef change.
2022-02-15 19:52:56 +00:00
Bram Moolenaar
64d95cfc56
patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong
...
Problem: MS-Windows with VIMDLL: Escaping CSI is wrong.
Solution: Put back #ifdef. (Ken Takata, closes #9769 )
2022-02-15 17:17:18 +00:00
Bram Moolenaar
74a0a5b26d
patch 8.2.4338: an error from an expression mapping messes up the display
...
Problem: An error from an expression mapping messes up the display.
Solution: When the expression results in an empty string return K_IGNORE.
In cmdline mode redraw the command line. (closes #9726 )
2022-02-10 14:07:41 +00:00
K.Takata
5411910c77
patch 8.2.4289: warnings reported by MSVC
...
Problem: Warnings reported by MSVC.
Solution: Rename variables and other fixes. (Ken Takata, closes #9689 )
2022-02-03 13:33:03 +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
Bram Moolenaar
166788c657
patch 8.2.4236: accessing freed memory
...
Problem: Accessing freed memory.
Solution: Set the bh_curr pointer to NULL.
2022-01-27 21:56:40 +00:00
Bram Moolenaar
37cf413e3e
patch 8.2.4235: invalid check for NULL pointer
...
Problem: Invalid check for NULL pointer.
Solution: Remove the check.
2022-01-27 20:47:03 +00:00
Bram Moolenaar
a4bc2dd7cc
patch 8.2.4233: crash when recording and using Select mode
...
Problem: Crash when recording and using Select mode.
Solution: When deleting the last recorded character check there is something
to delete.
2022-01-27 19:27:16 +00:00
Bram Moolenaar
f61c89d2e6
patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to fail
...
Problem: Deleting any mapping may cause <ScritpCmd> to not set the script
context.
Solution: Only reset last_used_map if it is the deleted mapping.
(closes #9568 )
2022-01-19 22:51:48 +00:00
Bram Moolenaar
a9725221ac
patch 8.2.4107: script context not restored after using <ScriptCmd>
...
Problem: Script context not restored after using <ScriptCmd>.
Solution: Also restore context when not in a script. (closes #9536 )
Add the 'c' flag to feedkeys() to be able to test this.
2022-01-16 13:30:33 +00:00
Bram Moolenaar
d4e2f50901
patch 8.2.4101: warning for unused argument in tiny version
...
Problem: Warning for unused argument in tiny version.
Solution: Add "UNUSED".
2022-01-15 18:48:32 +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
19db9e6ba7
patch 8.2.4059: Vim9: an expression of a map cannot access script-local items
...
Problem: Vim9: an expression of a map cannot access script-local items.
(Maxim Kim)
Solution: Use the script ID of where the map was defined.
2022-01-11 11:58:19 +00:00
zeertzjq
6cac77016b
patch 8.2.4002: first char typed in Select mode can be wrong
...
Problem: First char typed in Select mode can be wrong.
Solution: Escape special bytes in the input buffer. (closes #9469 )
2022-01-04 18:01:21 +00:00