Yegappan Lakshmanan
d94fbfc74a
patch 8.2.4001: insert complete code uses global variables
...
Problem: Insert complete code uses global variables.
Solution: Make variables local to the file and use accessor functions.
(Yegappan Lakshmanan, closes #9470 )
2022-01-04 17:01:44 +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
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
b37a65e4bf
patch 8.2.3966: when using feedkeys() abbreviations may be blocked
...
Problem: When using feedkeys() abbreviations may be blocked.
Solution: Reset tb_no_abbr_cnt when running out of characters.
(closes #9448 )
2022-01-01 12:42:56 +00:00
Bram Moolenaar
6d0570117a
patch 8.2.3959: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 18:49:43 +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 )
2021-12-27 17:21:41 +00:00
Bram Moolenaar
52797bae17
patch 8.2.3825: various comments could be improved
...
Problem: Various comments could be improved.
Solution: Improve the comments.
2021-12-16 14:45:13 +00:00
Bram Moolenaar
12f3c1b77f
patch 8.2.3749: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 21:46:34 +00:00
zeertzjq
a3f83feb63
patch 8.2.3643: header for source file is outdated
...
Problem: Header for source file is outdated.
Solution: Make the header more accurate. (closes #9186 )
2021-11-22 12:47:39 +00:00
Bram Moolenaar
0d5a12ea04
patch 8.2.3595: check for signed overflow might not work everywhere
...
Problem: Check for signed overflow might not work everywhere.
Solution: Limit to 32 bit int. (closes #9043 , closes #9067 )
2021-11-14 14:05:18 +00:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
3826c0513b
patch 8.2.3490: superfluous return statements
...
Problem: Superfluous return statements.
Solution: Remove superfluous return statements from void functions.
(closes #8977 )
2021-10-09 15:39:25 +01:00
h-east
965d2edbce
patch 8.2.3474: some places use "Vimscript" instead of "Vim script"
...
Problem: Some places use "Vimscript" instead of "Vim script".
Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910 )
2021-10-04 21:51:57 +01:00
=?UTF-8?q?Dundar=20G=C3=B6c?=
dfa5e464d4
patch 8.2.3460: some type casts are not needed
...
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes #8934 )
2021-10-02 11:26:51 +01: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
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
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
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
3a7503c34c
patch 8.2.2957: using getchar() in Vim9 script is problematic
...
Problem: Using getchar() in Vim9 script is problematic.
Solution: Add getcharstr(). (closes #8343 )
2021-06-07 18:29:17 +02:00
Bram Moolenaar
3a00659db7
patch 8.2.2833: two key command cancelled by moving mouse when using popup
...
Problem: Two key command cancelled by moving mouse when using popup.
(Sergey Vlasov)
Solution: Ignore K_MOUSEMOVE in plain_vgetc().
2021-05-05 19:58:17 +02:00
Bram Moolenaar
8e7d6223f6
patch 8.2.2160: various typos
...
Problem: Various typos.
Solution: Fix spelling mistakes. (closes #7494 )
2020-12-18 19:49:56 +01:00
Bram Moolenaar
0684e36a7e
patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode character
...
Problem: CTRL-V U doesn't work to enter a Unicode character when
modifyOtherKeys is effective. (Ken Takata)
Solution: Add a flag to get_literal() for the shift key. (closes #7413 )
2020-12-03 19:54:42 +01:00
Bram Moolenaar
4a44120e3d
patch 8.2.2062: <Cmd> does not handle CTRL-V
...
Problem: <Cmd> does not handle CTRL-V.
Solution: Call get_literal() after encountering CTRL-V. (closes #7387 )
2020-11-28 14:43:26 +01:00
Bram Moolenaar
c77534c303
patch 8.2.2005: redoing a mapping with <Cmd> doesn't work properly
...
Problem: Redoing a mapping with <Cmd> doesn't work properly.
Solution: Fill the redo buffer. Use "<SNR>" instead of a key code.
(closes #7282 )
2020-11-18 11:34:37 +01:00
Bram Moolenaar
ca359cbedd
patch 8.2.1991: Coverity warns for not using the ga_grow() return value
...
Problem: Coverity warns for not using the ga_grow() return value.
Solution: Bail out if ga_grow() fails. (Yegappan Lakshmanan, closes #7303 )
2020-11-15 20:49:41 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282 ,
closes 4784, based on patch by Bjorn Linse)
2020-11-12 14:21:06 +01:00
Bram Moolenaar
4778b4d0e1
patch 8.2.1948: GUI: crash when handling message while closing a window
...
Problem: GUI: crash when handling message while closing a window. (Srinath
Avadhanula)
Solution: Don't handle message while closing a window. (closes #7250 )
2020-11-04 11:03:12 +01:00
Bram Moolenaar
4934ad0e44
patch 8.2.1769: popup filter interferes with using :normal to move the cursor
...
Problem: A popup filter interferes with using :normal to move the cursor in
a popup.
Solution: Do not invoke the filter when ex_normal_busy is set.
2020-09-28 22:29:58 +02:00
Bram Moolenaar
189832bf66
patch 8.2.1729: endless loop when ":normal" feeds popup window filter
...
Problem: Endless loop when ":normal" feeds popup window filter.
Solution: Add the ex_normal_busy_done flag.
2020-09-23 12:29:11 +02:00
Bram Moolenaar
15183b41c4
patch 8.2.1608: Vim9: getchar() test fails with GUI
...
Problem: Vim9: getchar() test fails with GUI.
Solution: Avoid that getchar(0) gets stuck on K_IGNORE.
2020-09-05 19:59:39 +02:00
Bram Moolenaar
c08cc72947
patch 8.2.1603: Vim9: cannot use "true" with getchar()
...
Problem: Vim9: cannot use "true" with getchar().
Solution: use tv_get_bool_chk(). (closes #6874 )
2020-09-05 17:51:23 +02:00
Bram Moolenaar
b8d732e93e
patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up
...
Problem: Triggering the ATTENTION prompt causes typeahead to be messed up.
Solution: Increment tb_change_cnt. (closes #6541 )
2020-08-05 22:07:26 +02:00
Bram Moolenaar
ae97b94176
patch 8.2.1166: once mouse move events are enabled getchar() returns them
...
Problem: Once mouse move events are enabled getchar() returns them.
Solution: Ignore K_MOUSEMOVE in getchar(). (closes #6424 )
2020-07-09 19:16:35 +02:00
Bram Moolenaar
be5ee8686a
patch 8.2.0952: no simple way to interrupt Vim
...
Problem: No simple way to interrupt Vim.
Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes,
closes #1718 )
2020-06-10 20:56:58 +02:00
Bram Moolenaar
673fc3e23f
patch 8.2.0919: merging modifier for modifyOtherKeys is done twice
...
Problem: Merging modifier for modifyOtherKeys is done twice.
Solution: Remove the merging done in vgetc().
2020-06-07 15:46:11 +02:00
Bram Moolenaar
975a880a13
patch 8.2.0916: mapping with partly modifyOtherKeys code does not work
...
Problem: Mapping with partly modifyOtherKeys code does not work.
Solution: If there is no mapping with a separate modifier include the
modifier in the key and then try mapping again. (closes #6200 )
2020-06-06 22:36:24 +02:00
Bram Moolenaar
46cd43bda1
patch 8.2.0904: assuming modifyOtherKeys for rhs of mapping
...
Problem: Assuming modifyOtherKeys for rhs of mapping.
Solution: Ignore seenModifyOtherKeys for mapped characters. (closes #6200 )
2020-06-04 22:22:11 +02:00
Bram Moolenaar
f4ae6b245a
patch 8.2.0851: can't distinguish <M-a> from accented "a" in the GUI
...
Problem: Can't distinguish <M-a> from accented "a" in the GUI.
Solution: Use another way to make mapping <C-bslash> work. (closes #6163 )
2020-05-30 19:52:46 +02:00
Bram Moolenaar
b42c0d5427
patch 8.2.0839: dropping modifier when putting a character back in typeahead
...
Problem: Dropping modifier when putting a character back in typeahead.
Solution: Add modifier to ins_char_typebuf(). (closes #6158 )
2020-05-29 22:41:41 +02:00
Bram Moolenaar
c998370562
patch 8.2.0835: Motif: mapping <C-bslash> still doesn't work
...
Problem: Motif: mapping <C-bslash> still doesn't work.
Solution: Accept CSI for K_SPECIAL. Do not apply CTRL to the character
early. (closes #6150 )
2020-05-28 21:03:53 +02:00
Bram Moolenaar
80a8d3889b
patch 8.2.0694: Haiku: channel and terminal do not work
...
Problem: Haiku: channel and terminal do not work.
Solution: Close files when the job has finished. (Ozaki Kiichi,
closes #6039 )
2020-05-03 22:57:32 +02:00
Bram Moolenaar
11abd09521
patch 8.2.0674: some source files are too big
...
Problem: Some source files are too big.
Solution: Move text formatting functions to a new file. (Yegappan
Lakshmanan, closes #6021 )
2020-05-01 14:26:37 +02:00
Bram Moolenaar
bdff012f44
patch 8.2.0514: several global functions are used in only one file
...
Problem: Several global functions are used in only one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes #5884 )
2020-04-05 18:56:05 +02:00
Bram Moolenaar
e49b4bb895
patch 8.2.0370: the typebuf_was_filled flag is sometimes not reset
...
Problem: The typebuf_was_filled flag is sometimes not reset, which may
cause a hang.
Solution: Make sure typebuf_was_filled is reset when the typeahead buffer is
empty.
2020-03-11 13:01:40 +01:00
Bram Moolenaar
8f027fe470
patch 8.2.0356: MS-Windows: feedkeys() with VIMDLL cannot handle CSI
...
Problem: MS-Windows: feedkeys() with VIMDLL cannot handle CSI correctly.
Solution: Modify mch_inchar() to encode CSI bytes. (Ozaki Kiichi, Ken
Takata, closes #5726 )
2020-03-04 23:21:35 +01:00
Bram Moolenaar
9e2bcb5d23
patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :global
...
Problem: Hang with combination of feedkeys(), Ex mode and :global.
(Yegappan Lakshmanan)
Solution: Add the pending_exmode_active flag.
2020-02-18 21:33:00 +01:00
Bram Moolenaar
4b96df5a01
patch 8.2.0156: various typos in source files and tests
...
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes #5532 )
2020-01-26 22:00:26 +01:00
Bram Moolenaar
306139005c
patch 8.1.2380: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-01 22:11:18 +01:00
Bram Moolenaar
05ad5ff0ab
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
...
Problem: FEAT_TEXT_PROP is a confusing name.
Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291 )
2019-11-30 22:48:27 +01:00
Bram Moolenaar
fc4ea2a72d
patch 8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeys
...
Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys.
Solution: Convert the Escape sequence back to key as if modifyOtherKeys is
not set, and use CTRL-SHIFT-V to get the Escape sequence itself.
(closes #5254 )
2019-11-26 19:33:22 +01:00
Bram Moolenaar
4ebe0e62d0
patch 8.1.2336: when an expr mapping moves the cursor it is not restored
...
Problem: When an expr mapping moves the cursor it is not restored.
Solution: Position the cursor after an expr mapping. (closes #5256 )
2019-11-22 20:55:40 +01:00