aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | Merge #9022 from janlazo/vim-8.0.1215Justin M. Keyes2018-09-21
|\ \
| * | lintJan Edmund Lazo2018-09-21
| | |
| * | replace fallthrough comment with macroJan Edmund Lazo2018-09-21
| | | | | | | | | | | | Follow-up of vim-patch:8.0.1215
| * | vim-patch:8.0.1215: newer gcc warns for implicit fallthroughJan Edmund Lazo2018-09-20
| | | | | | | | | | | | | | | | | | Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt) https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
* | | startup: don't erase screen on `:hi Normal` during startupBjörn Linse2018-09-20
|/ / | | | | | | | | | | | | | | | | NB: existing `color default` test was actually enough to trigger the bug, when ext_newgrid=false is used. I created the `:hi Normal` test as I thought the builtin colors wouldn't set Normal (unless 'bg' is changed) But as the root cause actually comes from `:hi Normal`, it makes sense to still add the separate test (if `color default` here gets optimized to become a no-op, or something).
* | cleanup/TUI: remove old unused code #9013Justin M. Keyes2018-09-19
| | | | | | | | | | | | | | | | - 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.
* | log: RPC, input, other eventsJustin M. Keyes2018-09-19
| |
* | log: rename do_log to logmsgJustin M. Keyes2018-09-19
| |
* | startup: wait for embedder before executing startup commands and filesBjörn Linse2018-09-18
| | | | | | | | | | | | 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)
* | TUI: Skip redundant "stop" event (macOS kernel panic) (#9007)Justin M. Keyes2018-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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...
* | vim-patch:8.0.1443: compiler complains about uninitialized variableJan Edmund Lazo2018-09-17
| | | | | | | | | | | | Problem: Compiler complains about uninitialized variable. (Tony Mechelynck) Solution: Assign a value to the variable. https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e
* | vim-patch:8.0.1428: compiler warning on 64 bit MS-Windows systemJan Edmund Lazo2018-09-17
| | | | | | | | | | | | Problem: Compiler warning on 64 bit MS-Windows system. Solution: Change type from "int" to "size_t". (Mike Williams) https://github.com/vim/vim/commit/200ea8ffaa90e1ccc156b24ee097be87acdd5214
* | Merge pull request #8180 from bfredl/eol_textBjörn Linse2018-09-17
|\ \ | | | | | | support "virtual text" annotations (currently after EOL only)
| * | buffer: add support for virtual text annotationsBjörn Linse2018-09-17
| | |
* | | lintJan Edmund Lazo2018-09-16
| | |
* | | vim-patch:8.0.1417: test doesn't search for a sentenceJan Edmund Lazo2018-09-16
| | | | | | | | | | | | | | | | | | | | | 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(). https://github.com/vim/vim/commit/1bd999f982e783219a06e6c8f219df1d53ac7e77
* | | vim-patch:8.0.1416: crash when searching for a sentenceJan Edmund Lazo2018-09-16
| | | | | | | | | | | | | | | | | | Problem: Crash when searching for a sentence. Solution: Return NUL when getting character at MAXCOL. (closes vim/vim#2468) https://github.com/vim/vim/commit/8ada6aa9298b4764d9ca0024dd21b17e815595ce
* | | oldtests: set nrformats to Vim defaultJan Edmund Lazo2018-09-16
| | |
* | | vim-patch:8.0.1374: CTRL-A does not work with an empty lineJan Edmund Lazo2018-09-16
|/ / | | | | | | | | | | Problem: CTRL-A does not work with an empty line. (Alex) Solution: Decrement the end only once. (Hirohito Higashi, closes vim/vim#2387) https://github.com/vim/vim/commit/5fe6bdf858a7f2f288d599ffb5efb3c08449c817
* | loop_close: Drain thread_events (#8990)Justin M. Keyes2018-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | vim-patch:8.1.0355 Incorrect adjusting the popup menu (#8996)Ronan Pigott2018-09-16
| | | | | | | | | | 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)
* | vim-patch:8.0.1363: recover swap file ending with .stz #9002Jan Edmund Lazo2018-09-16
| | | | | | | | | | | | | | 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) https://github.com/vim/vim/commit/af903e5d490ec9c6c49079f67de7e92e3c35a725
* | Merge #8998 from janlazo/vim-8.0.1275Justin M. Keyes2018-09-14
|\ \
| * | lintJan Edmund Lazo2018-09-14
| | |
| * | globals: KeyTyped is boolJan Edmund Lazo2018-09-14
| | |
| * | vim-patch:8.0.1275: CmdlineLeave autocmd prevents fold from openingJan Edmund Lazo2018-09-13
| | | | | | | | | | | | | | | | | | Problem: CmdlineLeave autocmd prevents fold from opening. (Waivek) Solution: Save and restore KeyTyped. (closes vim/vim#2305) https://github.com/vim/vim/commit/c9e9c7140994154bb4a29764491d42c001b24596
* | | vim-patch:8.0.1201: "yL" is affected by 'scrolloff' (#8997)Jan Edmund Lazo2018-09-14
| | | | | | | | | | | | | | | Problem: "yL" is affected by 'scrolloff'. (Eli the Bearded) Solution: Don't use 'scrolloff' when an operator is pending. https://github.com/vim/vim/commit/44cc4cf72fdd12cd9a779031d443aac4254d51ae
* | | vim-patch:8.1.0175: marks test fails in very wide windowJan Edmund Lazo2018-09-13
| | | | | | | | | | | | | | | | | | 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) https://github.com/vim/vim/commit/bde14d8e24f6b8ca409290733dbf11cb6fee5751
* | | vim-patch:8.1.0168: output of :marks is too short with multi-byte charsJan Edmund Lazo2018-09-13
| | | | | | | | | | | | | | | | | | | | | Problem: Output of :marks is too short with multi-byte chars. (Tony Mechelynck) Solution: Get more bytes from the text line. https://github.com/vim/vim/commit/9d5185bf9dfaef59e47c573a60044a21d5e29c0c
* | | vim-patch:8.0.1184: the :marks command is not testedJan Edmund Lazo2018-09-13
|/ / | | | | | | | | | | Problem: The :marks command is not tested. Solution: Add a test. (Dominique Pelle, closes vim/vim#2197) https://github.com/vim/vim/commit/9b69f22e66d51d764e9ade87ae8a57ac13ab7348
* | Update eval.cWang Shidong2018-09-13
| |
* | getchar: allow <SID> in <Cmd> mappingBjörn Linse2018-09-13
| |
* | vim-patch:8.0.1089: range count in user commandKwon-Young2018-09-13
| | | | | | | | | | | | | | | | Problem: Cannot get range count in user command. Solution: Add <range> argument. https://github.com/vim/vim/commit/c168bd4bd3a9b856fc410fc4515dcca1d10d7461 close #8946
* | vim-patch:8.0.1172: when E734 is given option is still set (#8988)Jan Edmund Lazo2018-09-13
| | | | | | | | | | Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt) https://github.com/vim/vim/commit/2a6a6c3014e728cd01c750b0f60484d4eaf22a8c
* | style: indent, then lintJustin M. Keyes2018-09-13
| |
* | vim-patch:8.1.0374: moving the cursor is slow when 'relativenumber' is setJustin M. Keyes2018-09-13
| | | | | | | | | | | | Problem: Moving the cursor is slow when 'relativenumber' is set. Solution: Only redraw the number column, not all lines. https://github.com/vim/vim/commit/bd9a53c06c8869ad811cb3dd01a309c9be7d7a63
* | vim-patch:8.1.0373: screen updating still slow when 'cursorline' is setJustin M. Keyes2018-09-13
| | | | | | | | | | | | Problem: Screen updating still slow when 'cursorline' is set. Solution: Fix setting last_cursorline. https://github.com/vim/vim/commit/1b7fefcbce5dd2fd337e217d4857b941da3f8bed
* | vim-patch:8.0.1161rpigott2018-09-13
| |
* | popupmnu.c: Fix popup placement when preview window is belowrpigott2018-09-13
| |
* | vim-patch:8.1.0372: screen updating slow when 'cursorline' is set (#8986)Justin M. Keyes2018-09-12
| | | | | | | | | | Problem: Screen updating slow when 'cursorline' is set. Solution: Only redraw the old and new cursor line, not all lines. https://github.com/vim/vim/commit/90a997987dbbe43af3c15118a35f658f0f037d1d
* | do_shell, do_filter: Remove "clear screen", "wait for return" callsJustin M. Keyes2018-09-12
| | | | | | | | | | The output from shell commands is already handled by the messages.c/UI layer.
* | UI/cleanup: Remove most redraw_later_clear() callsJustin M. Keyes2018-09-12
| | | | | | | | | | | | Vim :! may "mess up the screen" because of e.g. switching between cooked mode, but Nvim just uses pipes. So maybe we can avoid these redraw_later_clear() CYA calls.
* | lintJan Edmund Lazo2018-09-11
| |
* | vim-patch:8.0.1809: various typosJan Edmund Lazo2018-09-11
| | | | | | | | | | | | Problem: Various typos. Solution: Correct the mistakes, change "cursur" to "cursor". (closes vim/vim#2887) https://github.com/vim/vim/commit/b9464821901623f983528acaed9e4dc2cea7387b
* | vim-patch:8.1.0219: expanding ## fails to escape backtickJan Edmund Lazo2018-09-11
| | | | | | | | | | | | Problem: Expanding ## fails to escape backtick. Solution: Escape a backtick in a file name. (closes vim/vim#3257) https://github.com/vim/vim/commit/2c8c681bfcd5138a0ec8ce018216dc2dc69a11a0
* | vim-patch:8.1.0034: cursor not restored with ":edit #"Jan Edmund Lazo2018-09-11
| | | | | | | | | | | | | | Problem: Cursor not restored with ":edit #". Solution: Don't assume autocommands moved the cursor when it was moved to the first non-blank. https://github.com/vim/vim/commit/adb8fbec4f4059d214fe6acf2485ffd35e803450
* | vim-patch:8.0.1154: 'indentkeys' does not work properly (#8980)Jan Edmund Lazo2018-09-11
| | | | | | | | | | Problem: 'indentkeys' does not work properly. (Gary Johnson) Solution: Get the cursor line again. (Christian Brabandt, closes vim/vim#2151) https://github.com/vim/vim/commit/1b38344e00af65df12946fffda7f3201621c35ef
* | Merge pull request #8945 from ZviRackover/fix-7401-step5Björn Linse2018-09-11
|\ \ | | | | | | mbyte: remove mb_char2bytes
| * | lint: clean-up after parent commitsZviRackover2018-09-09
| | |
| * | Remove has_mbytes local to lines changed in parent commitZviRackover2018-09-09
| | |