zeertzjq
449c0762d3
test: avoid consecutive mouse input at different positions ( #21781 )
...
The seconds call's position may override the first call if the first
call isn't processed yet, defeating the purpose of the first call.
2023-01-13 12:25:19 +08:00
luukvbaal
1097d239c3
fix(ui): command line issues with external messages ( #21709 )
...
* fix: don't truncate external messages
* fix: avoid resizing command line with external messages
2023-01-13 11:47:55 +08:00
dundargoc
5eb5f49488
test: simplify platform detection ( #21020 )
...
Extend the capabilities of is_os to detect more platforms such as
freebsd and openbsd. Also remove `iswin()` helper function as it can be
replaced by `is_os("win")`.
2022-11-22 08:13:30 +08:00
zeertzjq
fc7ac688c3
fix(messages): don't set cmdline_row when messages have scrolled ( #21015 )
...
When 'cmdheight' is changed while messages have scrolled, the position
of msg_grid is not moved up, so cmdline_row should not be set based on
the position of msg_grid.
2022-11-11 16:46:45 +08:00
zeertzjq
f2857dcd5a
fix(messages): reset msg_grid_scroll_discount when redrawing ( #21000 )
2022-11-10 06:16:54 +08:00
zeertzjq
97164748b9
fix(intro): omit patch version in ":help news" item #20713
...
Because maintenance releases share the same news.txt as the last
non-maintenance release.
2022-10-18 03:42:32 -07:00
Gregory Anders
935e1ca743
feat: mention ":help news" in intro #20674
2022-10-16 14:55:18 -07:00
bfredl
6ae144a921
feat(messages)!: graduate the 'msgsep' feature
...
The old behaviour (e.g. via `set display-=msgsep`) will not be available.
Assuming that messages always are being drawn on msg_grid
(or not drawn at all, and forwarded to `ext_messages` enabled UI)
will allows some simplifcations and enhancements moving forward.
2022-10-05 20:12:59 +02:00
Shougo
28fbdd3385
fix(ui): msg_ext_set_kind for nvim_echo ( #20476 )
2022-10-04 15:22:42 +02:00
bfredl
b616458af9
fix(messages): do not crash on cmdheight=0 and g< redisplay
...
fixes #20153
2022-09-16 10:33:12 +02:00
zeertzjq
6cc6e11929
vim-patch:9.0.0206: redraw flags are not named specifically ( #19913 )
...
Problem: Redraw flags are not named specifically.
Solution: Prefix "UPD_" to the flags, for UPDate_screen().
a4d158b3c8
2022-08-23 22:00:19 +08:00
zeertzjq
b47f313151
fix(getchar): flush screen before doing a blocking wait
2022-08-15 17:58:35 +08:00
zeertzjq
fe159d23fd
vim-patch:9.0.0071: command overlaps with printed text in scrollback ( #19505 )
...
Problem: Command overlaps with printed text in scrollback.
Solution: Clear until end-of-line and use correct message chunk.
(closes vim/vim#10765 , closes vim/vim#10764 )
ecdc82e74e
N/A patches for version.c:
vim-patch:9.0.0070: using utfc_ptr2char_len() when length is negative
Problem: Using utfc_ptr2char_len() when length is negative.
Solution: Check value of length. (closes vim/vim#10760 )
4dc513a22c
2022-07-26 07:30:33 +08:00
zeertzjq
c01690b1ea
fix(exmode): flush messages before printing a line after pressing Enter ( #19341 )
2022-07-13 09:06:31 +08:00
Shougo
663cbe2620
feat: cmdheight=0 #16251
...
Fix https://github.com/neovim/neovim/issues/1004
Limitation: All outputs need hit-enter prompt.
Related:
https://github.com/neovim/neovim/pull/6732
https://github.com/neovim/neovim/pull/4382
2022-06-13 02:40:51 -07:00
Daniel Hahler
e420cd6c67
test: dismiss quit_more from Lua #11226
...
Add a test for what #16537 fixed.
2022-06-12 16:45:44 -07:00
bfredl
f4121c52b9
fix(messages): add color when showing nvim_echo in :messages history
2022-06-11 22:29:51 +02:00
bfredl
e7b3fd8ad6
Merge pull request #18681 from bfredl/uitest
...
fix(tests): fix some screen.lua warnings
2022-05-22 14:32:38 +02:00
devbhan singh
646e1c3a3a
feat(ui): clear message history explicitly with msg_history_clear event
2022-05-21 23:22:23 +02:00
bfredl
3c1bc75447
fix(tests): fix some screen.lua warnings
2022-05-21 23:07:34 +02:00
zeertzjq
6e414b698c
test: unskip tests on Windows ( #18600 )
...
Remove the command('qall!') from mksession_spec.lua because it prevents
helpers.rmdir() from retrying.
Allow extra trailing spaces when matching terminal lines.
2022-05-18 12:57:04 +08:00
Famiu Haque
bbf58e6bbc
refactor(ui)!: link VertSplit
to Normal
by default
...
Avoids using `gui=reverse` on `VertSplit` and makes window separators
look much nicer by default.
2022-05-15 22:37:35 +06:00
shirasaka
b5957c3c32
fix: display global statusline correctly with ext_messages
2022-05-05 06:15:09 +09:00
dundargoc
e63e5d1dbd
docs: typo fixes ( #17859 )
...
Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com>
Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com>
Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com>
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: rwxd <rwxd@pm.me>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2022-04-15 12:35:06 +02:00
Dundar Göc
82c5a02050
ci: skip tests that fail on windows
2022-02-20 10:22:39 +01:00
Gregory Anders
03b805aee6
feat(lua): enable stack traces in error output ( #16228 )
2021-11-06 08:26:10 -06:00
Jan Edmund Lazo
f376e67a53
vim-patch:8.2.0038: spell suggestions insufficiently tested
...
Problem: Spell suggestions insufficiently tested.
Solution: Add spell suggestion tests. (Dominique Pelle, closes vim/vim#5398 )
e9a8d1f9ad
Requires latest en.utf-8.spl from
https://ftp.nluug.nl/pub/vim/runtime/spell/ .
Include the following patch because patch v8.2.0946 was merged:
vim-patch:8.2.0948: spell test fails
Problem: Spell test fails.
Solution: Adjust expected text of the prompt.
d281b7c227
2021-06-12 13:06:49 -04:00
Jan Edmund Lazo
39fdb86832
vim-patch:8.2.0946: cannot use "q" to cancel a number prompt
...
Problem: Cannot use "q" to cancel a number prompt.
Solution: Recognize "q" instead of ignoring it.
eebd555733
2021-05-21 23:01:11 -04:00
Jan Edmund Lazo
7959aaf781
vim-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 vim/vim#8044 )
ce0b75711a
2021-04-01 15:05:10 -04:00
glacambre
dbf3c5d953
Clear prompt_for_number messages
...
This fixes issues in GUIs:
https://github.com/akiyosi/goneovim/issues/94
https://github.com/glacambre/firenvim/issues/448
2021-02-10 13:04:02 +01:00
Jan Edmund Lazo
83ebe0c998
vim-patch:8.1.1992: the search stat moves when wrapping at the end of the buffer
...
Problem: The search stat moves when wrapping at the end of the buffer.
Solution: Put the "W" in front instead of at the end.
16b58ae9f3
2020-09-29 21:36:00 -04:00
Björn Linse
a380526c0f
test: always use "set more" with :digraph test
...
otherwise we risk the same issue as with ex_cmds/digraphs_spec.lua
2020-02-19 13:08:12 +01:00
Björn Linse
687fc527de
screen: add missing redraws after a message
2020-01-26 13:45:20 +01:00
Björn Linse
b4a92aadd2
messages: echo "line1\r\nline2" should not clear line1
2020-01-16 19:35:45 +01:00
Justin M. Keyes
c34130d13a
API: deprecate nvim_command_output
2019-12-02 20:52:06 -08:00
Björn Linse
dab40f43b1
Add v:lua.func() vimL syntax for calling lua
...
Also simplify error messages when calling lua from vimL.
2019-11-16 22:33:21 +01:00
Justin M. Keyes
4abb67c027
test/Screen:expect: replace "{IGNORE}" with "{MATCH:…}"
...
ref #11004
2019-11-09 22:26:01 -08:00
Daniel Hahler
93fe30593b
ex_echo: fix check for got_int #11225
...
It needs to return to not output any remaining parts.
Followup to https://github.com/neovim/neovim/pull/10926
Ref: https://github.com/neovim/neovim/issues/10923
2019-10-19 14:45:27 -07:00
Björn Linse
f316916758
screen: missing redraw/highlight for ruler in message area
2019-09-22 09:38:52 +02:00
Björn Linse
c705e3fb0b
update tests for new resize behavior (resize at pager, but not at :!cmd)
2019-09-08 15:24:14 +02:00
Björn Linse
1fc6489f30
test: add tests for pager glitches and crashes
2019-09-06 19:38:27 +02:00
Daniel Hahler
4556bb90fa
move test
2019-09-04 13:13:39 +02:00
Justin M. Keyes
ad4eb18e43
Merge #10098 'win: fix msg_puts_printf()'
2019-08-12 02:42:13 +02:00
Jan Edmund Lazo
01e3690ca8
vim-patch:8.1.1049: when user tries to exit with CTRL-C message is confusing
...
Problem: When user tries to exit with CTRL-C message is confusing.
Solution: Only mention ":qa!" when there is a changed buffer. (closes vim/vim#4163 )
a84a3dd663
vim-patch:8.1.1052: test for CTRL-C message sometimes fails
Problem: test for CTRL-C message sometimes fails
Solution: Make sure there are no changed buffers.
553e5a5c56
vim-patch:8.1.1053: warning for missing return statement
Problem: Warning for missing return statement. (Dominique Pelle)
Solution: Add return statement.
d6c3f1fa2b
2019-07-28 22:19:11 -04:00
Björn Linse
c2b3cc970c
syntax: fix missing newlines in execute("syn list"). fixes #10467
2019-07-14 09:31:45 +02:00
Björn Linse
399eb49baf
highlight: show "hi Group" message correctly when not using the screen
...
ext_message doesn't set msg_col. Add a space and let client deal with
wrapping. When using silent redirect show the unwrapped message form.
Removed check is already part of msg_advance()
2019-07-05 15:52:59 +02:00
Björn Linse
e39d217592
messages: fix crash with msg_advance when using ext_messages
2019-06-16 11:31:35 +02:00
Björn Linse
41f31ca90d
messages: support shortmess-=S in ext_messages
2019-06-16 11:07:29 +02:00
erw7
2fbeea8326
Change to not test msg_puts_pirntf() in unix CI
2019-06-09 19:02:52 +09:00
erw7
da8f7141ce
Add msg_puts_printf() test for multibyte characters
2019-06-09 13:29:51 +09:00
Björn Linse
3d24bb48e7
test: don't detach screen just to change the size
2019-06-03 11:23:10 +02:00
Justin M. Keyes
c0134660ab
test: avoid some boilerplate
2019-06-03 00:08:32 +02:00
Ville Hakulinen
40218d1180
Make sure msg_clear is sent after confirm message ( #10065 )
2019-06-02 23:38:19 +02:00
Jit
b65a7b7f66
[RDY] Fix wildmode=list,full and display+=msgsep interaction ( #10103 )
...
* Fix wildmode=list and display+=msgsep interaction
* Add test to check ext_messages behaviour is unchanged
2019-06-02 21:38:34 +02:00
Justin M. Keyes
fb4d5a1846
UI/ext_messages: restore kind=quickfix #10067
...
Accidentally removed in 34f9e72af9
.
ref #6201
2019-05-27 00:01:41 +02:00
Björn Linse
8ed54bbec3
messages: use proper multiline error message for rpcrequest and API wrappers
2019-05-26 15:42:16 +02:00
Justin M. Keyes
3d1ed7c959
UI/ext_messages: learn more message kinds
...
ref #6201
2019-05-11 23:42:55 +02:00
Justin M. Keyes
698c4f662d
test: clear(): remove opts.headless
parameter
...
Callers can instead specify `args_rm={'--headless'}`.
TODO: should `nvim_argv` have "--headless" by default? Need to inspect
some uses of spawn(nvim_argv) ...
2019-04-27 16:31:26 +02:00
Björn Linse
be8ebba325
Allow using internal popupmenu or ext_popupmenu for wildmenu
...
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor
position), and will allow further expansion (info about items).
2019-03-16 19:53:21 +01:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com>
2019-02-10 13:36:46 +01:00