aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | Merge #8276 'startup: Make -s - read from stdin'Justin M. Keyes2018-04-17
|\ \ \ \
| * | | | win: Fix reading from stdinb-r-o-c-k2018-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reading from stdin on Windows is fixed in the same way as it was in #8267. * The file_read function was returning without filling the destination buffer when it was called with a non-blocking file descriptor.
| * | | | Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
| |\ \ \ \
| * | | | | getchar: Move REMAP_… values into a enumZyX2017-12-03
| | | | | |
| * | | | | Merge branch 'master' into s-dash-stdinZyX2017-12-03
| |\ \ \ \ \
| * | | | | | main: Translate full -s error message, not part of itZyX2017-03-19
| | | | | | |
| * | | | | | os/fileio: Fix QB failureZyX2017-03-19
| | | | | | |
| * | | | | | *: Fix linter errorsZyX2017-03-19
| | | | | | |
| * | | | | | fileio,main: Do not restart syscall at EAGAIN when reading for -sZyX2017-03-19
| | | | | | |
| * | | | | | getchar: Use fileio instead of fdopenZyX2017-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: as fileio is cached and reads blocks this is going to wait until either EOF or reading enough characters to fill rbuffer. This is not good when reading user input from stdin as script.
| * | | | | | main: Temporary fix assertion errorZyX2017-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This variant uses `fdopen()` which is not standard, but it fixes problem on my system. In next commit `scriptin` will use `FileDescriptor*` from os/fileio in place of `FILE*`.
| * | | | | | main: Make `-s -` read from stdinZyX2017-03-19
| | | | | | |
* | | | | | | startup: ignore -XJustin M. Keyes2018-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #8285
* | | | | | | terminal: resize to the max dimensions (#8249)Andrew Pyatkov2018-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #8096
* | | | | | | job-control: children_kill_cb(): do not check elapsed timeJustin M. Keyes2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't check elapsed time in children_kill_cb(), it's already implied by the start-time of the timer itself. 2. Restart timer from children_kill_cb() for PTY jobs, to send SIGKILL after SIGTERM. There is an edge case where SIGKILL might follow SIGTERM too quickly, if jobstop() is called near the 2-second timer window. But this edge case is not worth code complication.
* | | | | | | job-control: one-shot timer instead of repeatingJustin M. Keyes2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before f31c26f1afb5 the timer was used to try SIGTERM *and* SIGKILL, so a repeating timer was needed. After f31c26f1afb5 process_stop() sends SIGTERM immediately, and the timer only sends SIGKILL. So we don't need a repeating timer. - Simplifies the logic: don't need to call uv_timer_stop() explicitly. - Avoids a problem: if process_stop() is called more than once in the 2-second window, the first on_process_exit() would call uv_timer_stop() which stops the timer for all stopped processes.
* | | | | | | job-control: mitigate process-kill raceJustin M. Keyes2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | children_kill_cb() is racey. One obvious problem is that process_close_handles() is *queued* by on_process_exit(), so when children_kill_cb() is invoked, the dead process might still be in the `loop->children` list. If the OS already reclaimed the dead PID, Nvim may try to SIGKILL it. Avoid that by checking `proc->status`. Vim doesn't have this problem because it doesn't attempt to kill processes that ignored SIGTERM after a timeout. closes #8269
* | | | | | | loop: remove `children_stop_requests`Justin M. Keyes2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It serves no purpose because process_stop() is already guarded by `proc->stopped_time`.
* | | | | | | events: VimSuspend, VimResume #8280geekodour2018-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #3648 ref #5959
* | | | | | | Merge #6272 'stdpath()'Justin M. Keyes2018-04-15
|\ \ \ \ \ \ \
| * | | | | | | eval: Add stdpath() method (#5297)Christian Höltje2018-03-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the :stdpath method for fetching XDG standard directories. Fixes #5297
* | | | | | | | Merge #8160 'win: oldtests: prefer cmd.exe'Justin M. Keyes2018-04-15
|\ \ \ \ \ \ \ \
| * | | | | | | | oldtests: win: skip test49Jan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vim doesn't test it on Windows. See https://github.com/vim/vim/blob/master/src/testdir/Make_all.mak
| * | | | | | | | oldtests: win: keep set dir=/Jan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any user can create a directory on root. Creating a directory on root allows any user to write files within that directory. Test_recover_root_dir() passes when run locally as a regular user (not admin).
| * | | | | | | | win: getftype(symlink) returns 'link'Jan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vim doesn't detect symlinks correctly so stick with Neovim's behaviour.
| * | | | | | | | oldtests: check +iconv for makeencodingJan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSVC builds don't include it. Test utf8 and latin only if +iconv is missing.
| * | | | | | | | oldtests: win: help sp?it opens split()Jan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vim 8 and Neovim 0.2.3 open the same target on Windows.
| * | | | | | | | oldtests: win: shellslash for cdpath,tags,:findJan Edmund Lazo2018-04-12
| | | | | | | | |
| * | | | | | | | oldtests: win: cmd.exe echo has trailing CRJan Edmund Lazo2018-04-12
| | | | | | | | |
| * | | | | | | | oldtests: use expand() to fix pathsepJan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix failing oldtests because of noshellslash.
| * | | | | | | | oldtests: newstyle: win: reset shell to cmd.exeJan Edmund Lazo2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unset $SHELL so that child nvim use cmd.exe as default shell. Unset $TERM so that child nvim don't segfault with negative exit code. sh/bash use TERM=cygwin by default if it is unset. mintty sets TERM to xterm.
* | | | | | | | | win: Fix reading content from stdin (#8267)b-r-o-c-k2018-04-14
| |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #6890 by reading from the Windows console input buffer after stdin has been closed. Vim defines HAVE_DUP for Windows and does the close-dup dance[1]: close(0); dup(2); which always fails, then falls back to reading from the Windows console input buffer[2]. [1] https://github.com/vim/vim/blob/e7499ddc33508d3d341e96f84a0e7b95b2d6927c/src/fileio.c#L2397-L2398 [2] https://github.com/vim/vim/blob/e7499ddc33508d3d341e96f84a0e7b95b2d6927c/src/os_win32.c#L1703-L1714
* | | | | | | | tui: abort on unexpected enum value (#8266)John Szakmeister2018-04-13
| | | | | | | | | | | | | | | | | | | | | | | | ref #8261
* | | | | | | | API/nvim_command_output: handle :echon capture (#8265)Justin M. Keyes2018-04-13
| | | | | | | | | | | | | | | | | | | | | | | | ref https://github.com/neovim/python-client/pull/290
* | | | | | | | channels: cleanup channel freeing codeBjörn Linse2018-04-12
| | | | | | | |
* | | | | | | | channels: delay free so that libuv can cleanup handlesBjörn Linse2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add test for a crash this caused
* | | | | | | | ui_set_option: pass String.data, not StringJustin M. Keyes2018-04-12
| | | | | | | |
* | | | | | | | tui: fix uninitialize variable usage (#8261)John Szakmeister2018-04-12
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue with compiles failing in release mode due to shape having the possibility of being used uninitialized (since the default case was missing).
* | | | | | | test/util: expect_err() (#8257)Justin M. Keyes2018-04-11
| | | | | | | | | | | | | | | | | | | | | other cleanup, ref #8245
* | | | | | | Merge #8247 'server: introduce --listen'Justin M. Keyes2018-04-11
|\ \ \ \ \ \ \
| * | | | | | | lintJustin M. Keyes2018-04-11
| | | | | | | |
| * | | | | | | server: init v:servername if $NVIM_LISTEN_ADDRESS is invalidJustin M. Keyes2018-04-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, if $NVIM_LISTEN_ADDRESS was invalid, v:servername was left empty.
| * | | | | | | server: introduce --listen, deprecate $NVIM_LISTEN_ADDRESSJustin M. Keyes2018-04-11
| | | | | | | |
| * | | | | | | cleanup: remove main_start_gui()Justin M. Keyes2018-04-11
| | | | | | | |
| * | | | | | | serverstop(): return FALSE for invalid addressJustin M. Keyes2018-04-11
| | | | | | | |
* | | | | | | | os/shell: use msg functions instead of screen when throttlingBjörn Linse2018-04-09
| | | | | | | |
* | | | | | | | os/shell: remove dead calls to screen functionsBjörn Linse2018-04-09
|/ / / / / / /
* | | | | | | test/API: validate channel arg (#8245)Justin M. Keyes2018-04-08
| | | | | | |
* | | | | | | build/clang 6.0.0: fix type conversion warnings (#8235)Marco Hinz2018-04-07
| | | | | | |
* | | | | | | win/install: xxd.exe (#8241)Justin M. Keyes2018-04-07
| | | | | | |