Bram Moolenaar
51f0bfb88a
patch 8.2.4975: recursive command line loop may cause a crash
...
Problem: Recursive command line loop may cause a crash.
Solution: Limit recursion of getcmdline().
2022-05-17 20:11:02 +01:00
Bram Moolenaar
6ed545e797
patch 8.2.4928: various white space and cosmetic mistakes
...
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
2022-05-09 20:09:23 +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
Bram Moolenaar
9ff7d717aa
patch 8.2.4910: imperfect coding
...
Problem: Imperfect coding.
Solution: Make code nicer.
2022-05-07 17:45:16 +01:00
Shougo Matsushita
79d599b877
patch 8.2.4903: cannot get the current cmdline completion type and position
...
Problem: Cannot get the current cmdline completion type and position.
Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
closes #10344 )
2022-05-07 12:48:29 +01:00
Bram Moolenaar
ef02f16609
patch 8.2.4899: with latin1 encoding CTRL-W might go before the cmdline
...
Problem: With latin1 encoding CTRL-W might go before the start of the
command line.
Solution: Check already being at the start of the command line.
2022-05-07 10:49:10 +01:00
Yegappan Lakshmanan
1fc6ea9bf3
patch 8.2.4804: expression in heredoc doesn't work for compiled function
...
Problem: Expression in heredoc doesn't work for compiled function.
Solution: Implement compiling the heredoc expressions. (Yegappan Lakshmanan,
closes #10232 )
2022-04-21 23:30:15 +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
LemonBoy
2bf52dd065
patch 8.2.4723: the ModeChanged autocmd event is inefficient
...
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes #10134 ) Rename
trigger_modechanged() to may_trigger_modechanged().
2022-04-09 18:17:34 +01:00
Yegappan Lakshmanan
155b088208
patch 8.2.4585: cannot use keypad page-up/down for completion menu
...
Problem: Cannot use keypad page-up/down for completion menu.
Solution: Recognize the keypad keys. (Yegappan Lakshmanan, closes #9963 )
2022-03-17 13:03:09 +00:00
Yegappan Lakshmanan
5cffa8df7e
patch 8.2.4579: cannot use page-up and page-down in the cmdline popup menu
...
Problem: Cannot use page-up and page-down in the command line completion
popup menu.
Solution: Check for to page-up and page-down keys. (Yegappan Lakshmanan,
closes #9960 )
2022-03-16 13:33:53 +00:00
Bram Moolenaar
05c1734c4f
patch 8.2.4469: Coverity warns for uninitialized variable
...
Problem: Coverity warns for uninitialized variable.
Solution: Set the value to zero.
2022-02-25 20:57:11 +00:00
Yegappan Lakshmanan
b31aec3b93
patch 8.2.4398: some command completion functions are too long
...
Problem: Some command completion functions are too long.
Solution: Refactor code into separate functions. Add a few more tests.
(Yegappan Lakshmanan, closes #9785 )
2022-02-16 12:44:29 +00:00
Yegappan Lakshmanan
560dff49c0
patch 8.2.4339: CTRL-A does not work properly with the cmdline popup menu
...
Problem: CTRL-A does not work properly with the cmdline popup menu.
Solution: Fix issues with CTRL-A. Add more tests for the cmdline popup
menu. Remove TermWait() before VeriryScreenDump(). Refactor the
cmdline popup code. (Yegappan Lakshmanan, closes #9735 )
2022-02-10 19:52:10 +00:00
Bram Moolenaar
73a16c22a4
patch 8.2.4328: command line complete matches cleard when typing character
...
Problem: Command line complete matches cleard when typing character.
(Dominique Pellé)
Solution: Only remove a popup menu if there is one.
2022-02-08 17:40:36 +00:00
Yegappan Lakshmanan
3908ef5017
patch 8.2.4325: 'wildmenu' only shows few matches
...
Problem: 'wildmenu' only shows few matches.
Solution: Add the "pum" option: use a popup menu to show the matches.
(Yegappan Lakshmanan et al., closes #9707 )
2022-02-08 12:08:07 +00:00
Bram Moolenaar
85b6747abc
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode
...
Problem: Illegal memory access with large 'tabstop' in Ex mode.
Solution: Allocate enough memory.
2022-01-25 11:55:02 +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
Yegappan Lakshmanan
782b43d894
patch 8.2.4045: some global functions are only used in one file
...
Problem: Some global functions are only used in one file.
Solution: Make the functions static. (Yegappan Lakshmanan, closes #9492 )
2022-01-08 18:43:40 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +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
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +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
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
e50507126f
patch 8.2.3763: when editing the cmdline a callback may cause a scroll up
...
Problem: When editing the command line a FocusLost callback may cause the
screen to scroll up.
Solution: Do not redraw at the last line but at the same place where the
command line was before. (closes #9295 )
2021-12-09 10:51:05 +00:00
mityu
a119812437
patch 8.2.3629: command completion in cmdline window uses global commands
...
Problem: Command completion in cmdline window uses global user commands,
not local commands for the window where it was opened from.
Solution: Use local commands. (closes #9168 )
2021-11-20 19:13:39 +00: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
d8d957de86
patch 8.2.3471: crash when using CTRL-T after an empty search pattern
...
Problem: Crash when using CTRL-T after an empty search pattern.
Solution: Bail out when there is no previous search pattern. (closes #8953 )
2021-10-04 19:47:35 +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
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
ccb148ac63
patch 8.2.3225: incsearch highlighting is attempted halfway a mapping
...
Problem: Incsearch highlighting is attempted halfway a mapping.
Solution: Only do incsearch highlighting if keys were typed or there is no
more typeahead.
2021-07-26 21:11: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
Bram Moolenaar
796139ae3a
patch 8.2.2870: CmdlineChange event triggered twice for CTRL-R
...
Problem: CmdlineChange event triggered twice for CTRL-R.
Solution: Return CMDLINE_NOT_CHANGED from cmdline_insert_reg().
(closes #8219 )
2021-05-18 21:38:45 +02:00
Bram Moolenaar
d832c3c56e
patch 8.2.2853: window is not updated after using <Cmd> mapping
...
Problem: Window is not updated after using <Cmd> mapping.
Solution: So jump to cmdline_changed but skip autocommand.
2021-05-15 15:09:06 +02:00
Bram Moolenaar
847fe7d750
patch 8.2.2851: using <Cmd> mapping on the command line triggers CmdlineChanged
...
Problem: Using <Cmd> mapping on the command line triggers CmdlineChanged.
(Naohiro Ono)
Solution: Jump to cmdline_not_changed if the command line didn't change.
(closes #8208 )
2021-05-15 13:19:16 +02:00
Bram Moolenaar
d8db838392
patch 8.2.2737: status line not updated when local 'statusline' option set
...
Problem: Status line not updated when local 'statusline' option set.
Solution: Check the 'statusline' option of each window.
2021-04-08 18:27:53 +02:00
Bram Moolenaar
160a2b4dac
patch 8.2.2689: tiny build fails
...
Problem: Tiny build fails.
Solution: Add #ifdef around use of p_stl.
2021-04-01 21:57:46 +02:00
Bram Moolenaar
ce0b75711a
patch 8.2.2686: status line is not updated when going to cmdline mode
...
Problem: Status line is not updated when going to cmdline mode.
Solution: Redraw status lines if 'statusline' is set and going to status
line mode. (based on patch from Justin M. Keyes et al.,
closes #8044 )
2021-04-01 18:47:14 +02:00
Bram Moolenaar
b17ec4d427
patch 8.2.2492: command line buffer name cannot be translated
...
Problem: Command line buffer name cannot be translated.
Solution: Add _(). (Gabriel Dupras, closes #7812 )
2021-02-10 16:45:24 +01:00
Bram Moolenaar
8c6951fa28
patch 8.2.2473: crash when leaving command line window triggers autocommand
...
Problem: Crash when leaving command line window triggers autocommand.
(houyunsong)
Solution: Make sure not to close the current window or buffer.
2021-02-06 18:08:45 +01:00
Bram Moolenaar
bed72df3e6
patch 8.2.2416: may get stuck in command line window state
...
Problem: May get stuck in command line window state.
Solution: Reset "cmdwin_type" when editing buffer fails. Make arglist test
pass on MS-Windows.
2021-01-27 20:34:29 +01:00
Bram Moolenaar
b7e2670b6a
patch 8.2.2414: using freed memory when closing the cmdline window
...
Problem: Using freed memory when closing the cmdline window.
Solution: Check the window is still valid.
2021-01-26 22:00:52 +01:00
Bram Moolenaar
bb4b93ed85
patch 8.2.2413: crash when using :all while using a cmdline window
...
Problem: Crash when using :all while using a cmdline window. (Zdenek Dohnal)
Solution: Disallow :all from the cmdline window.
2021-01-26 21:35:08 +01:00
Bram Moolenaar
d93a7fc1a9
patch 8.2.2295: incsearch does not detect empty pattern properly
...
Problem: Incsearch does not detect empty pattern properly.
Solution: Return magic state when skipping over a pattern. (Christian
Brabandt, closes #7612 , closes #6420 )
2021-01-04 12:42:13 +01:00
Bram Moolenaar
f4e2099e39
patch 8.2.2182: Vim9: value of 'magic' is still relevant
...
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes #7509 )
2020-12-21 19:59:08 +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
f4d61bc559
patch 8.2.1983: ml_get error when using <Cmd> to open a terminal
...
Problem: ml_get error when using <Cmd> to open a terminal.
Solution: If the window changed reset the incsearch state. (closes #7289 )
2020-11-14 14:22:28 +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
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