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
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +00:00
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
74409f6279
patch 8.2.3970: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 15:58:22 +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.
2021-12-29 16:05:31 +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
8103527da7
patch 8.2.3828: when opening a terminal from a timer first typed char is lost
...
Problem: when opening a terminal from a timer the first typed character
is lost. (Virginia Senioria)
Solution: When opening a terminal while waiting for a character put K_IGNORE
in the input buffer.
2021-12-16 18:02:07 +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
Christian Brabandt
db3b44640d
patch 8.2.3517: TextChanged does not trigger after TextChangedI
...
Problem: TextChanged does not trigger after TextChangedI.
Solution: Store the tick separately for TextChangedI. (Christian Brabandt,
closes #8968 , closes #8932 )
2021-10-16 11:58:55 +01:00
Bram Moolenaar
5a9357d0bf
patch 8.2.3467: CursorHoldI event interferes with "CTRL-G U"
...
Problem: CursorHoldI event interferes with "CTRL-G U". (Naohiro Ono)
Solution: Restore the flag for "CTRL-G U" after triggering CursorHoldI.
(closes #8937 )
2021-10-03 16:22:05 +01:00
Bram Moolenaar
644b49fa0f
patch 8.2.3444: concealed text not revealed when leaving insert mode
...
Problem: concealed text not revealed when leaving insert mode. (Michael
Soyka)
Solution: Check if concealing changed when leaving insert mode.
(closes #8880 )
2021-09-16 22:32:15 +02: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
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
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
h-east
29b857150c
patch 8.2.3226: new digraph functions use old naming scheme
...
Problem: New digraph functions use old naming scheme.
Solution: Use the digraph_ prefix. (Hirohito Higashi, closes #8580 )
2021-07-26 21:54:04 +02:00
Bram Moolenaar
d8e44476d8
patch 8.2.3197: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move a few more error messages to errors.h.
2021-07-21 22:20:33 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +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
2e6cdb91e8
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter
...
Problem: Color not changed if ModeMsg highlight is set in InsertEnter
autocmd event. (Paul Swanson)
Solution: Call highlight_changed() after triggering InsertEnter.
(closes #7751 )
2021-01-28 11:07:44 +01:00
Bram Moolenaar
82aa6e09e0
patch 8.2.2374: accessing uninitialized memory in test_undo
...
Problem: Accessing uninitialized memory in test_undo.
Solution: Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé,
closes #7697 )
2021-01-17 22:04:02 +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
e41decc892
patch 8.2.1988: still in Insert mode when opening terminal popup
...
Problem: Still in Insert mode when opening terminal popup with a <Cmd>
mapping in Insert mode.
Solution: Exit Insert mode. (closes #7295 )
2020-11-14 21:34:59 +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
6f6244855f
patch 8.2.1976: cannot backspace in prompt buffer after using cursor-left
...
Problem: Cannot backspace in prompt buffer after using cursor-left. (Maxim
Kim)
Solution: Ignore "arrow_used" in a prompt buffer. (closes #7281 )
2020-11-11 20:52:40 +01:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +02:00
Bram Moolenaar
b53e13a91a
patch 8.2.1874: can't do something just before leaving Insert mode
...
Problem: Can't do something just before leaving Insert mode.
Solution: Add the InsertLeavePre autocommand event. (closes #7177 )
2020-10-21 12:19:53 +02:00
Bram Moolenaar
d0e1b7103c
patch 8.2.1762: when a timer uses :stopinsert completion isn't stopped
...
Problem: When a timer uses :stopinsert Insert mode completion isn't
stopped. (Stanley Chan)
Solution: Call ins_compl_prep(ESC).
2020-09-27 20:13:03 +02:00
Bram Moolenaar
c3516f7e45
patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function
...
Problem: Vim9: :put ={expr} does not work inside :def function.
Solution: Add ISN_PUT. (closes #6397 )
2020-09-08 22:45:35 +02:00
Bram Moolenaar
8b5866ded6
patch 8.2.1597: the channel source file is too big
...
Problem: The channel source file is too big.
Solution: Move job related code to a new source file.
2020-09-05 15:48:51 +02:00
Bram Moolenaar
86394aa972
patch 8.2.1595: cannot easily see what Vim sends to the terminal
...
Problem: Cannot easily see what Vim sends to the terminal.
Solution: Write output to the channel log if it contains terminal control
sequences. Avoid warnings for tputs() argument.
2020-09-05 14:27:24 +02:00
Bram Moolenaar
077cc7aa0e
patch 8.2.1588: cannot read back the prompt of a prompt buffer
...
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851 )
2020-09-04 16:35:35 +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
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
6adb9ea0a6
patch 8.2.0670: cannot change window when evaluating 'completefunc'
...
Problem: Cannot change window when evaluating 'completefunc'.
Solution: Make a difference between not changing text or buffers and also
not changing window.
2020-04-30 22:31:18 +02:00
Bram Moolenaar
db93495d27
patch 8.2.0649: undo problem whn an InsertLeave autocommand resets undo
...
Problem: Undo problem whn an InsertLeave autocommand resets undo. (Kutsan
Kaplan)
Solution: Do not create a new undo block when leaving Insert mode.
2020-04-27 20:18:31 +02:00
Bram Moolenaar
ff06f283e3
patch 8.2.0614: get ml_get error when deleting a line in 'completefunc'
...
Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan
Lakshmanan)
Solution: Lock the text while evaluating 'completefunc'.
2020-04-21 22:01:14 +02:00
Bram Moolenaar
aa0489e12d
patch 8.2.0590: no 'backspace' value allows ignoring the insertion point
...
Problem: No 'backspace' value allows ignoring the insertion point.
Solution: Add the "nostop" and 3 values. (Christian Brabandt, closes #5940 )
2020-04-17 19:41:21 +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
fe4bbac116
patch 8.2.0135: bracketed paste can still cause invalid memory access
...
Problem: Bracketed paste can still cause invalid memory access. (Dominique
Pelle)
Solution: Check for NULL pointer.
2020-01-20 21:12:20 +01:00
Bram Moolenaar
98a336dd49
patch 8.2.0133: invalid memory access with search command
...
Problem: Invalid memory access with search command.
Solution: When :normal runs out of characters in bracketed paste mode break
out of the loop.(closes #5511 )
2020-01-20 20:22:30 +01:00
Bram Moolenaar
ac15fd8c67
patch 8.2.0109: corrupted text properties when expanding spaces
...
Problem: Corrupted text properties when expanding spaces.
Solution: Reallocate the line. (Nobuhiro Takasaki, closes #5457 )
2020-01-09 21:35:48 +01:00
Bram Moolenaar
5cb0b93d52
patch 8.2.0083: text properties wrong when tabs and spaces are exchanged
...
Problem: Text properties wrong when tabs and spaces are exchanged.
Solution: Take text properties into account. (Nobuhiro Takasaki,
closes #5427 )
2020-01-03 21:25:59 +01:00
Bram Moolenaar
5d18efecfd
patch 8.1.2378: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-01 21:11:22 +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
38571a04b4
patch 8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeys
...
Problem: CTRL-R CTRL-R doesn't work with modifyOtherKeys.
Solution: Allow key codes when fetching argument for CTRL-R. (closes #5266 )
Also fix CTRL-G in Insert mode.
2019-11-26 14:28:15 +01:00
Bram Moolenaar
546125869f
patch 8.1.2327: cannot build with Hangul input
...
Problem: Cannot build with Hangul input.
Solution: Remove Hangul input support.
2019-11-21 17:13:31 +01:00
Bram Moolenaar
ee85702c10
patch 8.1.2281: 'showbreak' cannot be set for one window
...
Problem: 'showbreak' cannot be set for one window.
Solution: Make 'showbreak' global-local.
2019-11-09 23:26:40 +01:00
Bram Moolenaar
177c9f2f06
patch 8.1.2261: with modifyOtherKeys set 'noesckeys' doesn't work
...
Problem: With modifyOtherKeys set 'noesckeys' doesn't work. (James McCoy)
Solution: Disable modifyOtherKeys while in Insert mode when 'noesckeys' is
set. (closes #5180 )
2019-11-06 13:59:16 +01:00