Björn Linse
d4938743e6
channel: refactor events, prevent recursive invocation of events
2019-06-18 10:49:38 +02:00
Daniel Hahler
25e04c1d98
gcov: use __gcov_flush instead of __gcov_dump ( #10260 )
...
This restores missing coverage again.
Move it to process_spawn in os/pty_process_unix.c, since it seems to
break printargs-test on Windows/AppVeyor otherwise (#10248 ).
2019-06-18 06:31:57 +02:00
Daniel Hahler
d0e1417254
vim-patch:8.0.1274: setbufline() fails when using folding
...
Problem: setbufline() fails when using folding.
Solution: Set "curwin" if needed. (Ozaki Kiichi, closes vim/vim#2293 )
0c4dc88a63
2019-06-18 00:51:08 +02:00
Daniel Hahler
d43cf02186
vim-patch:8.0.1055: bufline test hangs on MS-Windows
...
Problem: Bufline test hangs on MS-Windows.
Solution: Avoid message for writing file. Source shared.vim when running
test individually.
11aa62f8f9
2019-06-18 00:21:52 +02:00
Daniel Hahler
8db93d0d83
vim-patch:8.0.1053: setline() does not work on startup
...
Problem: setline() does not work on startup. (Manuel Ortega)
Solution: Do not check for ml_mfp to be set for the current buffer.
(Christian Brabandt)
9d954207e2
2019-06-18 00:18:52 +02:00
Daniel Hahler
9485061baa
vim-patch:8.0.1039: cannot change a line in not current buffer
...
Problem: Cannot change a line in a buffer other than the current one.
Solution: Add setbufline(). (Yasuhiro Matsumoto, Ozaki Kiichi, closes vim/vim#1953 )
b31cf2bb0b
2019-06-17 23:43:26 +02:00
Daniel Hahler
c6602df015
vim-patch:8.1.1546: in some tests 'tags' is set but not restored
...
Problem: In some tests 'tags' is set but not restored. (Daniel Hahler)
Solution: Restore 'tags'. (closes vim/vim#4535 )
0331faf712
2019-06-16 19:51:12 +02:00
Daniel Hahler
3d8e8cb889
tests: fix Test_tagfiles: use Vim's 'tags' setting
...
Otherwise it might fail with an existing `tags` file upwards, e.g. in
neovim's source directory (which should be rather common).
2019-06-16 19:51:12 +02:00
Daniel Hahler
d32b92e265
vim-patch:8.0.1845: various comment updates needed, missing white space ( #10203 )
...
Problem: Various comment updates needed, missing white space.
Solution: Update comments, add white space.
259f26ac2d
Ignored (partly) applied patch for src/nvim/po/it.po.
2019-06-16 19:49:23 +02:00
Daniel Hahler
491a3210a9
vim-patch:8.1.1003: playing back recorded key sequence mistakes key code ( #10155 )
...
Problem: Playing back recorded key sequence mistakes key code.
Solution: Insert a <Nop> after the <Esc>. (closes vim/vim#4068 )
6edbbd8114
2019-06-16 19:48:46 +02:00
Daniel Hahler
d792d4ec06
Merge pull request #10236 from janlazo/vim-8.1.1545
...
vim-patch:8.0.{1516,1549},8.1.{0044,1545}
2019-06-16 17:52:38 +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
Jan Edmund Lazo
cb01925eb4
vim-patch:8.0.1549: various small problems in test files
...
Problem: Various small problems in test files.
Solution: Include small changes.
5d7ead3bc8
2019-06-15 22:24:59 -04:00
Jan Edmund Lazo
b837c56576
vim-patch:8.0.1516: errors for job options are not very specific
...
Problem: Errors for job options are not very specific.
Solution: Add more specific error messages.
b3292fa2d3
2019-06-15 22:14:29 -04:00
Jan Edmund Lazo
c6c5754a86
vim-patch:8.1.0044: if a test function exists Vim this may go unnoticed
...
Problem: If a test function exists Vim this may go unnoticed.
Solution: Check for a test funtion quitting Vim. Fix tests that did exit
Vim.
8903676d3d
Restore test_assert.vim to run Test_zz_quit_detected().
2019-06-15 21:48:27 -04:00
Jan Edmund Lazo
1abfeff978
vim-patch:8.1.1545: when the screen is to small there is no message about that
...
Problem: When the screen is to small there is no message about that.
(Daniel Hahler)
Solution: Do not use :cquit. (closes vim/vim#4534 )
45aa07d3c1
2019-06-15 21:48:27 -04:00
Jan Edmund Lazo
b60c986a49
vim-patch:8.0.1245: when WaitFor() has a wrong expression it just waits a second ( #10233 )
...
Problem: When WaitFor() has a wrong expression it just waits a second,
which goes unnoticed. (James McCoy)
Solution: When WaitFor() times out throw an exception. Fix places where the
expression was wrong.
3e1c617d49
2019-06-15 18:56:55 +02:00
Daniel Hahler
d3d25f957d
Dump gcov coverage in process_spawn ( #10230 )
...
Fixes https://github.com/neovim/neovim/pull/3926#issuecomment-502343527 .
2019-06-15 18:30:04 +02:00
Björn Linse
64cdf9f78a
api/lua: add on_detach to nvim_buf_attach
2019-06-15 13:19:12 +02:00
Jan Edmund Lazo
18b031ea1d
vim-patch:8.0.0953: get "no write since last change" error in terminal window
...
Problem: Get "no write since last change" error in terminal window.
Solution: Use another message when closing a terminal window. Make ":quit!"
also end the job.
f5be7cd016
2019-06-13 22:40:12 -04:00
Jan Edmund Lazo
6efa3bff09
test/old: pass Test_statusline on Windows
2019-06-13 19:39:55 -04:00
Jan Edmund Lazo
47a5456670
vim-patch:8.0.0933: terminal test tries to start GUI when it's not possible
...
Problem: Terminal test tries to start GUI when it's not possible.
Solution: Check if the GUI can run. (James McCoy, closes vim/vim#1971 )
9f0139a2a8
2019-06-13 19:39:55 -04:00
Jan Edmund Lazo
e6a1bea1eb
vim-patch:8.0.0931: getwininfo() does not indicate a terminal window
...
Problem: getwininfo() does not indicate a terminal window.
Solution: Add "terminal" to the dictionary.
69905d108b
2019-06-13 19:39:55 -04:00
Björn Linse
21cf4b0ce6
screen: showcmd should never move the cursor
...
Also restore the symmetry between grid_puts_line_start and
grid_puts_line_flush.
2019-06-13 20:22:37 +02:00
Daniel Hahler
cc4d463cad
Merge pull request #10202 from blueyed/vim-8.0.1704
...
vim-patch:8.0.1704: 'backupskip' default doesn't work for Mac
Also aligns tests from two previous patched to the ones in upstream.
2019-06-13 14:20:51 +02:00
Harm te Hennepe
424ddd01f5
tui: support rgba background detection ( #10205 )
...
Fixes https://github.com/neovim/neovim/issues/10159 .
2019-06-13 14:14:41 +02:00
Daniel Hahler
66613ace48
vim-patch:8.0.1704: 'backupskip' default doesn't work for Mac
...
Problem: 'backupskip' default doesn't work for Mac.
Solution: Use "/private/tmp". (Rainer Müller, closes vim/vim#2793 )
b8e22a053b
2019-06-13 00:28:16 +02:00
Daniel Hahler
5db3be092a
tests: align tests in test_options to Vim (moved)
2019-06-12 23:08:27 +02:00
Daniel Hahler
6f27f5ef91
main: do event_init before early_init #10183
...
Fixes https://github.com/neovim/neovim/issues/10172
* move log_init to event_init
* move init_signs to end of early_init
2019-06-12 14:22:42 +02:00
Jan Edmund Lazo
22d58ab664
vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window
...
Problem: CTRL-W CR does not work properly in a quickfix window.
Solution: Split the window if needed. (Jason Franklin)
0a08c63da1
2019-06-12 00:22:16 -04:00
Jan Edmund Lazo
005316ae41
vim-patch:8.0.1689: no tests for xxd
...
Problem: No tests for xxd.
Solution: Add a test. (Christian Brabandt)
29f9ed20b4
2019-06-11 22:31:21 -04:00
Justin M. Keyes
f8d0e41b28
Merge #10163 from blueyed/vim-8.1.1292
...
vim-patch:8.1.1292: invalid command line arguments not tested
2019-06-11 14:01:09 +02:00
Daniel Hahler
432f69fc09
vim-patch:8.1.1211: test user command code #10162
...
Problem: Not all user command code is tested.
Solution: Add more tests.
e61e548dd6
2019-06-11 13:56:15 +02:00
Daniel Hahler
304861e0ee
adjust tests for nvim
2019-06-11 12:52:17 +02:00
Daniel Hahler
76506ca0a3
vim-patch:8.1.1292: invalid command line arguments not tested
...
Problem: Invalid command line arguments not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#4346 )
ba9ea91beb
2019-06-10 18:10:15 +02:00
erw7
ce90a19abd
TUI: set os/input.c:global_fd to input->in_fd #10174
...
Problem: When we changed startup to wait for the TUI (like a remote UI),
we forgot to set os/input.c:global_fd. That used to be done by
input_start().
Solution: Initialize os/input.c:global_fd before initializing libtermkey
(termkey_new_abstract) so that tui_get_stty_erase() and
friends can inspect the correct fd.
fixes #10134
close #10174
2019-06-10 16:43:52 +02:00
Justin M. Keyes
04e2ba85b1
doc [ci skip] #10129
...
- document lua vim.loop #10123
2019-06-10 15:53:42 +02:00
George Zhao
c83926cd0a
lua: introduce vim.loop (expose libuv event-loop) #10123
...
Co-authored-by: Andrey Popp <8mayday@gmail.com >
closes #9546
closes #10084
2019-06-10 14:13:18 +02:00
Jan Edmund Lazo
3e58e60568
vim-patch:8.0.1278: Add the "k" flag in 'guioptions' #10175
...
Problem: GUI window always resizes when adding/removing a scrollbar,
toolbar, etc.
Solution: Add the 'k' flag in 'guioptions' to keep the GUI window size and
change the number of lines/columns instead. (Ychin, closes vim/vim#703 )
8ac441576f
2019-06-10 12:18:59 +02:00
Jan Edmund Lazo
84ba37fbcb
lint
2019-06-09 16:25:10 -04:00
Jan Edmund Lazo
aecbbb0b11
vim-patch:8.1.1509: cmdline_row can become negative, causing a crash
...
Problem: Cmdline_row can become negative, causing a crash.
Solution: Make sure cmdline_row does not become negagive. (closes vim/vim#4102 )
954bb06363
2019-06-09 16:12:51 -04:00
Jan Edmund Lazo
1ce28d7d9b
vim-patch:8.0.1756: GUI: after prompting for a number the mouse shape is wrong
...
Problem: GUI: after prompting for a number the mouse shape is sometimes
wrong.
Solution: Call setmouse() after setting "State". (Hirohito Higashi,
closes vim/vim#2709 )
73658317ba
2019-06-09 16:02:35 -04:00
Santos Gallegos
6c96c3b3f5
search_stat: show "??/?" dual in right-to-left case #10170
...
Co-Authored-By: James McCoy <jamessan@jamessan.com >
2019-06-09 19:59:44 +02:00
Justin M. Keyes
b397a3f397
Merge #10142 from blueyed/vim-1fbfe7c48
...
vim-patch:8.1.013{0,1}
2019-06-09 16:20:09 +02:00
erw7
6cbcca775e
Change to use VV_PROGPATH instead os_exepath()
2019-06-09 19:01:08 +09:00
erw7
1fbc01f4ab
Fix problems with message catalog directory
...
- In appimage, the message catalog is not used because there is no
message catalog in LOCALE_INSTALL_DIR. Therefore, change to
exepath/../share/locale instead of LOCALE_INSTALL_DIR.
- The old vim style($runtime/lang) is no longer used. Thus all relevant
code is removed.
2019-06-09 13:28:10 +09:00
erw7
2d6e440877
Remove display_erros()
...
do_shell() in Nvim uses the Nvim UI, not the tty directly, so
display_errors() is not necessary anymore.
2019-06-09 13:28:10 +09:00
erw7
f66ffc64f6
Remove USE_MCH_ERRMSG
...
USE_MCH_ERRMSG has never been defined, so the dead code has been removed.
2019-06-09 13:28:10 +09:00
erw7
6fad1736fb
Change mch_errmsg and mch_msg from macro to function
2019-06-09 13:28:10 +09:00