Daniel Hahler
47d74bf32f
doc: test/README.md ( #9020 )
...
- testdir location
- no old style tests are left in the fixed list in the Makefile
[ci skip]
2018-09-20 09:37:53 +02:00
Justin M. Keyes
8b60253ce7
cleanup/TUI: remove old unused code #9013
...
- Checks for ECHOE, ICANON were left over from Vim code. We already
reference the symbols elsewhere without checking.
- newline_on_exit, intr_char: Both are vestigial remnants of Vim 4.x,
not implemented in Nvim. intr_char is a termios/stty feature, it's
probably not useful because users have other ways to configure their
terminals.
2018-09-19 07:59:09 +02:00
Justin M. Keyes
d0401e827b
Merge #9014 from justinmk/log-more
2018-09-19 07:55:46 +02:00
Justin M. Keyes
7c00b9efca
log: RPC, input, other events
2018-09-19 01:11:09 +02:00
Justin M. Keyes
b9bcfa9bc8
log: rename do_log to logmsg
2018-09-19 00:58:25 +02:00
Justin M. Keyes
a316258d2c
test: system_spec: remove redundant clear()
2018-09-19 00:49:18 +02:00
Björn Linse
809fff94e6
Merge pull request #8754 from bfredl/embed_ui
...
startup: make --embed wait for first request so embedding UI can display startup messages
2018-09-18 20:52:13 +02:00
Björn Linse
bd8d43c6fe
startup: wait for embedder before executing startup commands and files
...
Give embeders a chance to set up nvim, by processing a request before
startup. This allows an external UI to show messages and prompts from
--cmd and buffer loading (e.g. swap files)
2018-09-18 19:22:16 +02:00
Justin M. Keyes
32ad52ae04
TUI: Skip redundant "stop" event (macOS kernel panic) ( #9007 )
...
When the TUI suspends (:suspend, CTRL-z) it calls tui_terminal_stop (but
does NOT set `ui->data=NULL`, so `tui_is_stopped` returns false). If the
host terminal dies, it sends SIGCONT, SIGHUP (usually in that order):
ERROR 2018-09-16T19:30:17.065 25821 suspend_event:1153: SIGCONT
ERROR 2018-09-16T19:30:17.065 25821 on_signal:162: SIGHUP
ERROR 2018-09-16T19:30:17.155 25821 on_signal:162: SIGHUP
Race: if SIGHUP is handled before SIGCONT, it calls ui_builtin_stop()
which schedules tui_stop before the TUI was resumed?
libuv uv_close() aborts if the handle is already closed/closing.
Somehow that causes macOS to panic. #8075
Assertion failed: (!uv__is_closing(handle)), function uv_close, file src/unix/core.c, line 117.
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff67d69ec2 kevent + 10
1 libuv.1.dylib 0x000000010609304d uv__io_poll + 892
2 libuv.1.dylib 0x0000000106083904 uv_run + 339
3 nvim 0x0000000105e76f7b loop_poll_events + 74
4 nvim 0x0000000105fa5f51 ui_bridge_stop + 206
5 nvim 0x0000000105fa4c00 ui_builtin_stop + 50
6 nvim 0x0000000105f26ee9 mch_exit + 29
7 nvim 0x0000000105eda84a getout + 518
8 nvim 0x0000000105e778b3 multiqueue_process_events + 77
9 nvim 0x0000000105f24c5a os_breakcheck + 49
10 nvim 0x0000000105eb7ea3 auto_next_pat + 463
11 nvim 0x0000000105eb7603 apply_autocmds_group + 1289
12 nvim 0x0000000105eb0e8d apply_autocmds + 36
13 nvim 0x0000000105f5a412 screenalloc + 1892
14 nvim 0x0000000105f5b223 screen_resize + 190
15 nvim 0x0000000105fa52e3 ui_refresh + 257
16 nvim 0x0000000105e8c3d9 do_cmdline + 6614
17 nvim 0x0000000105f03a72 normal_execute + 3996
18 nvim 0x0000000105f89925 state_enter + 164
19 nvim 0x0000000105efe08d normal_enter + 125
20 nvim 0x0000000105ed9ffd main + 6858
21 libdyld.dylib 0x00007fff67c19115 start + 1
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x00007fff67d68e3e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff67ea7150 pthread_kill + 333
2 libsystem_c.dylib 0x00007fff67cc5312 abort + 127
3 libsystem_c.dylib 0x00007fff67c8d368 __assert_rtn + 320
4 libuv.1.dylib 0x00000001060835bf uv_close + 247
5 nvim 0x0000000105fa0ebb tui_terminal_stop + 221
6 nvim 0x0000000105f9ff3d tui_stop + 14
7 nvim 0x0000000105e778b3 multiqueue_process_events + 77
8 nvim 0x0000000105fa0c89 tui_main + 302
9 libsystem_pthread.dylib 0x00007fff67ea46c1 _pthread_body + 340
10 libsystem_pthread.dylib 0x00007fff67ea456d _pthread_start + 377
11 libsystem_pthread.dylib 0x00007fff67ea3c5d thread_start + 13
TODO:
- Set `ui->data = NULL` to flag UI as "stopped"? But loop_poll_events
drains *all* fast_events, so could skip some events...
2018-09-18 08:16:38 +02:00
Justin M. Keyes
0a4d7ce669
Merge pull request #9011 from janlazo/vim-8.0.1428
...
vim-patch:8.0.{1428,1443}
2018-09-18 07:21:24 +02:00
Jan Edmund Lazo
58559a2249
vim-patch:8.0.1443: compiler complains about uninitialized variable
...
Problem: Compiler complains about uninitialized variable. (Tony Mechelynck)
Solution: Assign a value to the variable.
059fd01021
2018-09-17 22:40:29 -04:00
Jan Edmund Lazo
a00247e147
vim-patch:8.0.1428: compiler warning on 64 bit MS-Windows system
...
Problem: Compiler warning on 64 bit MS-Windows system.
Solution: Change type from "int" to "size_t". (Mike Williams)
200ea8ffaa
2018-09-17 22:38:10 -04:00
Björn Linse
8de87c7b1c
Merge pull request #8180 from bfredl/eol_text
...
support "virtual text" annotations (currently after EOL only)
2018-09-17 15:36:10 +02:00
Björn Linse
45f53b370b
buffer: add support for virtual text annotations
2018-09-17 10:41:29 +02:00
Justin M. Keyes
398b9fde85
Merge #9008 from janlazo/vim-8.0.1416
2018-09-17 10:40:48 +02:00
Jan Edmund Lazo
a0ada7dac4
lint
2018-09-16 20:55:59 -04:00
Jan Edmund Lazo
0b60372792
vim-patch:8.0.1417: test doesn't search for a sentence
...
Problem: Test doesn't search for a sentence. Still fails when searching for
start of sentence. (Dominique Pelle)
Solution: Add paren. Check for MAXCOL in dec().
1bd999f982
2018-09-16 20:55:46 -04:00
Jan Edmund Lazo
91352b36b7
vim-patch:8.0.1416: crash when searching for a sentence
...
Problem: Crash when searching for a sentence.
Solution: Return NUL when getting character at MAXCOL. (closes vim/vim#2468 )
8ada6aa929
2018-09-16 20:46:06 -04:00
Justin M. Keyes
9f1401e25c
Merge #9004 from janlazo/vim-8.0.1374
2018-09-17 00:12:31 +02:00
Justin M. Keyes
17ab6dc12b
Merge #9005 from janlazo/vim-8.0.1395
2018-09-16 23:44:29 +02:00
Jan Edmund Lazo
6beb5cf439
oldtests: set nrformats to Vim default
2018-09-16 17:39:50 -04:00
Jan Edmund Lazo
567c0e6cd7
runtime/colors: move check_colors.vim to runtime/tools
2018-09-16 17:08:23 -04:00
Jan Edmund Lazo
9c98e4845a
vim-patch:8.0.1400: color scheme check script shows up as color scheme
...
Problem: Color scheme check script shows up as color scheme.
Solution: Move it to the "tools" subdirectory. (closes vim/vim#2457 )
8ee2d36e21
2018-09-16 10:56:53 -04:00
Jan Edmund Lazo
7f762a2e09
vim-patch:8.0.1395: it is not easy to see if a colorscheme is well written
...
Problem: It is not easy to see if a colorscheme is well written.
Solution: Add a script that checks for common mistakes. (Christian Brabandt)
200d0e36bc
2018-09-16 10:54:44 -04:00
Jan Edmund Lazo
3c3c733c3c
vim-patch:8.0.1374: CTRL-A does not work with an empty line
...
Problem: CTRL-A does not work with an empty line. (Alex)
Solution: Decrement the end only once. (Hirohito Higashi, closes vim/vim#2387 )
5fe6bdf858
2018-09-16 10:24:59 -04:00
Justin M. Keyes
b2d7b70f4d
loop_close: Drain thread_events ( #8990 )
...
loop_schedule_deferred may leak its allocated Event if the Event does
not get processed (when Nvim exits).
It only happens on exit, so we tried to ignore it in .asan-blacklist,
but for that isn't working for unknown reasons.
= ==22007==ERROR: LeakSanitizer: detected memory leaks
= Direct leak of 88 byte(s) in 1 object(s) allocated from:
= 0 0x4ef7a3 in malloc /local/mnt/workspace/tmp/ubuntu_rel/llvm/utils/release/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:67:3
= 1 0xfcafc1 in try_malloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:88:15
= 2 0xfcb1e9 in xmalloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:122:15
= 3 0xa6e75f in loop_schedule_deferred /home/travis/build/neovim/neovim/build/../src/nvim/event/loop.c:91:19
= 4 0x18ab048 in tui_main /home/travis/build/neovim/neovim/build/../src/nvim/tui/tui.c:377:5
= 5 0x18fe120 in ui_thread_run /home/travis/build/neovim/neovim/build/../src/nvim/ui_bridge.c:102:3
= 6 0x7f09e5e58183 in start_thread /build/eglibc-ripdx6/eglibc-2.19/nptl/pthread_create.c:312
= SUMMARY: AddressSanitizer: 88 byte(s) leaked in 1 allocation(s).
2018-09-16 11:22:32 +02:00
Ronan Pigott
9ed46a77e6
vim-patch:8.1.0355 Incorrect adjusting the popup menu ( #8996 )
...
Problem: Incorrect adjusting the popup menu for the preview window.
Solution: Compute position and height properl. (Ronan Pigott) Also show at
least ten items. (closes vim/vim#3414 )
2018-09-16 11:15:46 +02:00
Jan Edmund Lazo
3bce5207cf
vim-patch:8.0.1363: recover swap file ending with .stz #9002
...
Problem: Recovering does not work when swap file ends in .stz.
Solution: Check for all possible swap file names. (Elfling, closes vim/vim#2395 ,
closes vim/vim#2396 )
af903e5d49
2018-09-16 11:12:20 +02:00
Justin M. Keyes
dadcfe22ca
Merge #8998 from janlazo/vim-8.0.1275
2018-09-14 19:21:09 +02:00
Jan Edmund Lazo
c03e8307d2
vim-patch:8.0.1201: "yL" is affected by 'scrolloff' ( #8997 )
...
Problem: "yL" is affected by 'scrolloff'. (Eli the Bearded)
Solution: Don't use 'scrolloff' when an operator is pending.
44cc4cf72f
2018-09-14 19:16:30 +02:00
Justin M. Keyes
1bc44a805a
Merge #8993 from janlazo/vim-8.0.1184
2018-09-14 19:12:18 +02:00
Jan Edmund Lazo
a6d4a2fb8d
lint
2018-09-14 01:02:34 -04:00
Jan Edmund Lazo
db90c0c9bf
globals: KeyTyped is bool
2018-09-14 01:01:00 -04:00
Jan Edmund Lazo
20354dbd75
vim-patch:8.0.1275: CmdlineLeave autocmd prevents fold from opening
...
Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek)
Solution: Save and restore KeyTyped. (closes vim/vim#2305 )
c9e9c71409
2018-09-13 23:08:16 -04:00
Jan Edmund Lazo
315a8d2217
vim-patch:8.1.0175: marks test fails in very wide window
...
Problem: Marks test fails in very wide window. (Vladimir Lomov)
Solution: Extend the text to match 'columns'. (closes vim/vim#3180 , closes vim/vim#3181 )
bde14d8e24
2018-09-13 20:13:02 -04:00
Jan Edmund Lazo
64e74dc784
vim-patch:8.1.0168: output of :marks is too short with multi-byte chars
...
Problem: Output of :marks is too short with multi-byte chars. (Tony
Mechelynck)
Solution: Get more bytes from the text line.
9d5185bf9d
2018-09-13 20:13:02 -04:00
Jan Edmund Lazo
a78d465927
vim-patch:8.0.1184: the :marks command is not tested
...
Problem: The :marks command is not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#2197 )
9b69f22e66
2018-09-13 20:13:02 -04:00
Björn Linse
ae8515a544
Merge pull request #8995 from wsdjeg/patch-1
...
Make neovim timer ID start from 1
2018-09-13 21:17:42 +02:00
Wang Shidong
f6d5426fc8
Update eval.c
2018-09-13 21:55:20 +08:00
Björn Linse
949bcd7810
Merge pull request #8992 from bfredl/cmd-snr
...
getchar: allow <SID> in <Cmd> mapping
2018-09-13 14:45:43 +02:00
Björn Linse
5056d40b16
getchar: allow <SID> in <Cmd> mapping
2018-09-13 11:02:24 +02:00
Kwon-Young
d0c8dfc578
vim-patch:8.0.1089: range count in user command
...
Problem: Cannot get range count in user command.
Solution: Add <range> argument.
c168bd4bd3
close #8946
2018-09-13 10:20:34 +02:00
Jan Edmund Lazo
ea5337d9b5
vim-patch:8.0.1172: when E734 is given option is still set ( #8988 )
...
Problem: When E734 is given option is still set.
Solution: Assign NULL to "s". (Christian Brabandt)
2a6a6c3014
2018-09-13 07:52:31 +02:00
Justin M. Keyes
d5702a4534
Merge #8987 from justinmk/vim-8.1.0373
2018-09-13 01:51:17 +02:00
Justin M. Keyes
021f67df12
style: indent, then lint
2018-09-13 01:18:12 +02:00
Justin M. Keyes
ba27284f07
vim-patch:8.1.0374: moving the cursor is slow when 'relativenumber' is set
...
Problem: Moving the cursor is slow when 'relativenumber' is set.
Solution: Only redraw the number column, not all lines.
bd9a53c06c
2018-09-13 01:08:12 +02:00
Justin M. Keyes
e7a9c76ab0
vim-patch:8.1.0373: screen updating still slow when 'cursorline' is set
...
Problem: Screen updating still slow when 'cursorline' is set.
Solution: Fix setting last_cursorline.
1b7fefcbce
2018-09-13 00:32:14 +02:00
Justin M. Keyes
656648d855
Merge #8913 'popupmenu placement'
...
close #8913
2018-09-13 00:29:00 +02:00
rpigott
59c5c4f006
test: popupmenu placement
2018-09-13 00:27:42 +02:00
rpigott
a5fe6d34a9
vim-patch:8.0.1161
2018-09-13 00:27:32 +02:00