Dongdong Zhou
daec81ab51
ext_cmdline: change the content format
2017-10-26 09:35:13 +02:00
Dongdong Zhou
550651c130
ext_cmdline: use standard external ui functions
2017-10-26 09:35:12 +02:00
Dongdong Zhou
b7a8a76f6e
ext_cmdline: lint
2017-10-26 09:35:12 +02:00
Dongdong Zhou
26fd70bd18
ext_cmdline: add tests
2017-10-26 09:35:12 +02:00
Dongdong Zhou
6e90bc7200
ext_cmdline: Added cmdline prompt
2017-10-26 09:35:12 +02:00
Dongdong Zhou
439c39a2cf
ext_cmdline: allow external ui to draw cmdline
2017-10-26 09:35:12 +02:00
Björn Linse
4b3e51d4ee
ops: save and restore clipboard batch status when entering cmdline window
2017-10-15 16:36:00 +02:00
James McCoy
dc513f7618
getcmdline_prompt: Temporarily disable msg_silent so prompt is displayed
...
vim-patch:7.4.1636
Closes #7378
2017-10-14 14:32:27 -04:00
Justin M. Keyes
6c53c3ee55
eventloop: restore redraw in cmdline K_EVENT handler
...
Restores behavior from commit: 02e86ef04cc1
2017-09-05 15:01:06 +02:00
Justin M. Keyes
d47b538f39
eventloop: do not redraw in cmdline K_EVENT handler
...
If :echo is done by an timer or event (such as FocusGained/FocusLost),
redrawcmdline() clobbers it.
2017-09-05 15:01:06 +02:00
Justin M. Keyes
b6b6e4a96f
eventloop: FocusGained: schedule event instead of pseudokey
...
closes #4840
closes #6164
2017-09-05 15:01:06 +02:00
ZyX
19a28352a9
ex_getln: Make error messages look better
2017-08-14 01:56:48 +03:00
ZyX
474aa823dc
Merge branch 'master' into colored-cmdline
2017-08-06 15:25:17 +03:00
Justin M. Keyes
50c8f19d61
build: silence maybe-uninitialized warning
...
False positive. From C:\msys64\mingw64\bin\gcc.exe (appveyor CI)
2017-08-06 02:51:49 +02:00
Justin M. Keyes
a31482db4d
terminal: block redraw during c_CTRL-D
...
Unlike the normal wildmenu, the CTRL-D wild-list is not restored by
statusline redraw. (Semantics: ^D is controlled by 'wildoptions' option,
so it's in the "wild..." family.)
TODO: externalize the c_CTRL-D wild-list.
2017-08-05 21:32:34 +02:00
ZyX
fbe60af538
Merge branch 'master' into colored-cmdline
2017-07-31 02:05:02 +03:00
ZyX
c5857e3f38
ex_getln: Cache highlight callback calling results
2017-07-26 22:56:48 +03:00
Jurica Bradaric
811c45163c
vim-patch:8.0.0034
...
Problem: No completion for ":messages".
Solution: Complete "clear" argument. (Hirohito Higashi)
9e507ca8a3
2017-07-25 18:41:14 +02:00
ZyX
740dcaef0d
ex_getln: Avoid GCC “unused variable” warning from QB
...
17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c: In function ‘color_cmdline’:
17:25:45,363 WARN - /home/quickbuild/buildagent/workspace/root/neovim/pull-requests-automated/src/nvim/ex_getln.c:2335:8: error: variable ‘printed_errmsg’ set but not used [-Werror=unused-but-set-variable]
17:25:45,363 WARN - bool printed_errmsg = false;
17:25:45,363 WARN - ^
17:25:45,399 WARN - cc1: all warnings being treated as errors
2017-07-18 01:25:55 +03:00
ZyX
25c6ac1af6
*: Fix clint errors
2017-07-18 01:21:23 +03:00
ZyX
8a581b918b
ex_getln: Check prev_prompt_errors before running redrawcmdline
...
Otherwise there will be infinite recursion and shortly a crash. Running
redrawcmdline recursively occurs under color_cmdline_error label.
2017-07-18 00:20:21 +03:00
ZyX
3a923ad2db
ex_getln: Replace global with entry in save_ccline
2017-07-17 02:33:18 +03:00
ZyX
dc0a496d41
ex_getln: Do not do useless try_enter/try_leave calls
...
These are actually needed for two modes only. And even for these modes they
should eventually go away.
2017-07-17 01:57:27 +03:00
ZyX
f4744e1821
ex_getln: Do not goto color_cmdline_end without first cleaning up
...
The issue with debug mode was actually not cleaning up after `try_enter`:
location `&tstate` was pointing to got invalidated and received some “garbage”
(actually, values that got stored on the stack afterwards). But pointer to that
garbage was still stored in `msg_list`, so next attempt to check it resulted in
a crash.
2017-07-17 01:55:10 +03:00
ZyX
2a6423eba7
api helpers: Save/restore more values in try_enter/try_leave
...
This fixes memory leak reported by ASAN. This also somehow fixes test40, though
I have no idea why except that that test yields memory leak report.
2017-07-16 22:03:31 +03:00
ZyX
69719e658c
Merge branch 'master' into colored-cmdline
2017-07-15 18:56:45 +03:00
ZyX
1f05ec95c0
ex_getln: Silent V519: value is assigned twice successively
...
This is usual “passing data via global” false positive.
2017-07-04 16:24:48 +03:00
ZyX
7ab152aaa5
ex_getln: Save and restore try state
...
Problem: when processing cycle such as
:for pat in [' \ze*', ' \zs*']
: try
: let l = matchlist('x x', pat)
: $put ='E888 NOT detected for ' . pat
: catch
: $put ='E888 detected for ' . pat
: endtry
:endfor
`:let l = …` throwing an error causes this error to be caught after
color_cmdline attempts to get callback for highlighting next line (the one with
`$put = 'E888 NOT…`). Saving/restoring state prevents this from happening.
2017-07-01 15:34:25 +03:00
ZyX
ea75966e42
ex_getln: Do not make <C-c> interrupt input() after interrupting hl cb
2017-06-28 22:54:13 +03:00
ZyX
564d5f921c
ex_getln: Fix indent
2017-06-28 22:21:37 +03:00
ZyX
99079a164d
ex_getln: Make sure standard error reporting facility is not used
2017-06-28 22:20:47 +03:00
ZyX
3da49cd68e
ex_getln: Fix “echoerr msg not shown” problem
...
This also attempted to fix problem with cancelling input() on error by avoiding
standard error printing facilities (assumed thrown error message is the
problem), but with no luck so far.
2017-06-28 22:09:10 +03:00
ZyX
0ed95423de
ex_getln: Call highlight callback inside :try
2017-06-28 14:26:23 +03:00
James McCoy
6a842132bc
ex_getln: Lint command_line_handle_key readability/fn_size
...
Create new functions to handle moving to the next incsearch match or
matching history index.
2017-06-26 22:08:13 -04:00
James McCoy
54d5e90a2b
vim-patch:7.4.2320
...
Problem: Redraw problem when using 'incsearch'.
Solution: Save the current view when deleting characters. (Christian
Brabandt) Fix that the '" mark is set in the wrong position. Don't
change the search start when using BS.
dda933d06c
2017-06-26 22:08:13 -04:00
James McCoy
3679752dbd
vim-patch:7.4.2318
...
Problem: When 'incsearch' is not set CTRL-T and CTRL-G are not inserted as
before.
Solution: Move vim/vim#ifdef and don't use goto.
349e7d94e6
2017-06-26 22:08:13 -04:00
James McCoy
0dd6455659
vim-patch:7.4.2268
...
Problem: Using CTRL-N and CTRL-P for incsearch shadows completion keys.
Solution: Use CTRL-T and CTRL-G instead.
1195669f9e
2017-06-26 22:08:11 -04:00
ZyX
072a853fa2
ex_getln: Enable coloring for expression mode
2017-06-27 01:34:54 +03:00
ZyX
407abb3a6c
eval,ex_getln: Add support for coloring input() prompts
2017-06-27 01:34:54 +03:00
ZyX
d82741f8c0
ex_getln: Add some more tests, fix some found errors
2017-06-27 01:34:54 +03:00
ZyX
c1d21e9dd6
ex_getln: Add basic support for coloring command-line prompt
2017-06-27 01:34:54 +03:00
ZyX
7db2f658e8
ex_getln: Do not do arabic shaping unless needed
...
Should speed up execution without arabic characters a bit, slowing down with
arabic characters. More necessary, this allows coloring prompt without caring
about arabic shaping at the first iteration.
2017-06-27 01:34:54 +03:00
ZyX
90f62cc749
ex_getln: Clean up draw_cmdline a bit
2017-06-27 01:34:54 +03:00
raichoo
7955cf3515
vim-patch:7.4.2259
...
Problem: With 'incsearch' can only see the next match.
Solution: Make CTRL-N/CTRL-P move to the previous/next match. (Christian
Brabandt)
4d6f32cbfb
2017-06-26 07:36:36 -04:00
James McCoy
9281653233
Merge remote-tracking branch 'origin/master' into vim-7.4.1975
2017-06-06 07:33:50 -04:00
James McCoy
cb8efa4fef
vim-patch:8.0.0360
...
Problem: Sometimes VimL is used, which is confusing.
Solution: Consistently use "Vim script". (Hirohito Higashi)
b544f3c81f
2017-06-06 06:15:16 -04:00
James McCoy
81be7358be
vim-patch:7.4.1976
...
Problem: Number variables are not 64 bits while they could be.
Solution: Add the num64 feature. (Ken Takata)
22fcfad292
2017-06-04 22:12:13 -04:00
Björn Linse
3f553ac0b9
lint: fix indentation of FUNC_ATTR lines
2017-06-03 08:17:22 +02:00
James McCoy
ac47f8a506
Merge pull request #6514 from jamessan/gcc-7-fixes
...
Fix GCC 7 issues
2017-05-13 07:51:01 -04:00
ZyX
50398e10fe
ex_getln: Fix :lang code execution when skipping
...
Fixes #6727
2017-05-13 03:06:34 +03:00