geekodour
1e71978cf0
events: VimSuspend, VimResume #8280
...
closes #3648
ref #5959
2018-04-15 15:05:02 +02:00
Justin M. Keyes
1e7d5e8cdf
Merge #6272 'stdpath()'
2018-04-15 04:09:30 +02:00
Jan Edmund Lazo
5abfa94ed2
test: win: use "start" to test backgrounded job ( #8171 )
2018-04-15 02:43:18 +02:00
Justin M. Keyes
a7e7f7bd83
Merge #8160 'win: oldtests: prefer cmd.exe'
2018-04-15 02:37:22 +02:00
b-r-o-c-k
ee4e1fd8ec
win: Fix reading content from stdin ( #8267 )
...
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] e7499ddc33/src/fileio.c (L2397-L2398)
[2] e7499ddc33/src/os_win32.c (L1703-L1714)
2018-04-14 21:59:07 +02:00
Justin M. Keyes
ef4feab0e7
version: rename "0.2.3" to "0.3.0" ( #8268 )
...
0.2.1 was a big release, it should have been renamed to 0.3.0.
0.2.3 also has significant changes, so rename it.
2018-04-13 22:15:52 +02:00
Jan Edmund Lazo
51b9d85bb4
ci/win: redirect stderr to fix mingw build
2018-04-13 13:42:12 -04:00
Jan Edmund Lazo
ad30907814
Revert "ci/win: don't use lastexitcode hack on mingw build"
...
This reverts commit bc43d2559f
.
stderr redirection should make the workaround work for mingw builds.
2018-04-13 13:38:31 -04:00
Jan Edmund Lazo
8e87d89a99
oldtests: win: skip test49
...
Vim doesn't test it on Windows.
See https://github.com/vim/vim/blob/master/src/testdir/Make_all.mak
2018-04-12 21:11:55 -04:00
John Szakmeister
27e26b10a2
tui: abort on unexpected enum value ( #8266 )
...
ref #8261
2018-04-13 01:03:00 +02:00
Justin M. Keyes
1c3a849881
API/nvim_command_output: handle :echon capture ( #8265 )
...
ref https://github.com/neovim/python-client/pull/290
2018-04-13 00:49:37 +02:00
Justin M. Keyes
5e18550ddd
Merge #7813 'channels: delay free'
...
fix #7699
2018-04-13 00:35:50 +02:00
Björn Linse
0865adbbc2
channels: cleanup channel freeing code
2018-04-12 22:33:05 +02:00
Björn Linse
aea079a25d
channels: delay free so that libuv can cleanup handles
...
add test for a crash this caused
2018-04-12 18:22:47 +02:00
Justin M. Keyes
2cbeb7ca56
ui_set_option: pass String.data, not String
2018-04-12 12:58:27 +02:00
John Szakmeister
f44fb5b1a5
build/freebsd: set CMAKE_MAKE_PROGRAM iff "Unix Makefiles" ( #8260 )
...
It's only appropriate to set CMAKE_MAKE_PROGRAM to gmake when we're
using the "Unix Makefiles" generator. On QB, the nodes have Ninja
available and will use it, which means CMAKE_GENERATOR is set to
"Ninja". Setting CMAKE_MAKE_PROGRAM was forcing the build to use gmake
instead of ninja, which was causing the build failure.
2018-04-12 12:51:38 +02:00
John Szakmeister
d48df146d1
tui: fix uninitialize variable usage ( #8261 )
...
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).
2018-04-12 12:50:01 +02:00
Jan Edmund Lazo
714e0f8bf0
oldtests: win: keep set dir=/
...
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).
2018-04-12 02:44:06 -04:00
Jan Edmund Lazo
bc43d2559f
ci/win: don't use lastexitcode hack on mingw build
...
The heck is for MSVC builds to workaround msbuild error detection for cmake.
2018-04-12 02:39:25 -04:00
Jan Edmund Lazo
7c8122f36d
win: getftype(symlink) returns 'link'
...
Vim doesn't detect symlinks correctly so stick with Neovim's behaviour.
2018-04-12 02:28:38 -04:00
Jan Edmund Lazo
49e86cebf0
oldtests: check +iconv for makeencoding
...
MSVC builds don't include it.
Test utf8 and latin only if +iconv is missing.
2018-04-12 02:27:10 -04:00
Jan Edmund Lazo
4bbe51b79e
oldtests: win: help sp?it opens split()
...
Vim 8 and Neovim 0.2.3 open the same target on Windows.
2018-04-12 02:24:46 -04:00
Jan Edmund Lazo
6245b4873d
oldtests: win: shellslash for cdpath,tags,:find
2018-04-12 02:24:29 -04:00
Jan Edmund Lazo
fa0e32fba2
oldtests: win: cmd.exe echo has trailing CR
2018-04-12 02:23:53 -04:00
Jan Edmund Lazo
e3687165a7
oldtests: use expand() to fix pathsep
...
Fix failing oldtests because of noshellslash.
2018-04-12 02:22:33 -04:00
Jan Edmund Lazo
979569356f
ci/win: prefer msys find.exe
...
runnvim.sh depends on it for file glob patterns.
2018-04-12 02:19:03 -04:00
Jan Edmund Lazo
79a8d905ab
oldtests: newstyle: win: reset shell to cmd.exe
...
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.
2018-04-12 02:18:18 -04:00
Justin M. Keyes
87f4d2592c
test/util: expect_err() ( #8257 )
...
other cleanup, ref #8245
2018-04-11 22:07:00 +02:00
Justin M. Keyes
f96d99ad11
Merge #8247 'server: introduce --listen'
2018-04-11 03:29:18 +02:00
Justin M. Keyes
777d34ec37
lint
2018-04-11 02:41:05 +02:00
Justin M. Keyes
704ba4151e
server: init v:servername if $NVIM_LISTEN_ADDRESS is invalid
...
Before this change, if $NVIM_LISTEN_ADDRESS was invalid, v:servername
was left empty.
2018-04-11 02:41:05 +02:00
Justin M. Keyes
507bda1c95
server: introduce --listen, deprecate $NVIM_LISTEN_ADDRESS
2018-04-11 02:41:05 +02:00
Justin M. Keyes
7362ca4430
cleanup: remove main_start_gui()
2018-04-11 01:58:42 +02:00
Justin M. Keyes
9f598e5765
serverstop(): return FALSE for invalid address
2018-04-11 01:58:41 +02:00
Justin M. Keyes
b11b681289
test/util: matches()
2018-04-11 01:58:41 +02:00
Justin M. Keyes
f19db1b9ba
remove scripts/run-api-tests.exp
...
Usage of this script was removed 0c2ec77ae0
.
2018-04-11 00:56:36 +02:00
Björn Linse
84bac9f507
Merge pull request #8250 from bfredl/shellscreen
...
remove last usages of screen functions in os/shell.c
2018-04-09 11:39:03 +02:00
Björn Linse
d4688add96
os/shell: use msg functions instead of screen when throttling
2018-04-09 10:34:31 +02:00
Björn Linse
c28dbede27
os/shell: remove dead calls to screen functions
2018-04-09 10:30:24 +02:00
Justin M. Keyes
fa6415f13f
test/API: validate channel arg ( #8245 )
2018-04-08 03:01:15 +02:00
Marco Hinz
929a732d00
build/clang 6.0.0: fix type conversion warnings ( #8235 )
2018-04-07 16:20:31 +02:00
Utkarsh Anand
1ca138f236
build/OpenBSD: force gmake ( #8222 )
...
fix #8216
2018-04-07 16:10:01 +02:00
Justin M. Keyes
2ec94eb23f
win/install: xxd.exe ( #8241 )
2018-04-07 04:09:43 +02:00
Björn Linse
7034feb666
Merge pull request #8236 from bfredl/tuishape
...
TUI: clean up handling of CursorShape enum
2018-04-06 12:51:19 +02:00
Björn Linse
de0d1a0d2a
TUI: EMSG2 must not be used from TUI thread
2018-04-06 11:50:11 +02:00
Justin M. Keyes
d49c1dda8b
Merge #8228 from mhinz/fix-fgets
2018-04-05 00:54:58 +02:00
Marco Hinz
1fd54f29c1
Make vim_fgets() return the same values as in Vim
...
The implementation of vim_fgets() differs between Neovim and Vim.
Vim says that it only returns `true` for EOF. But it always returns `true` when
fgets() returns NULL. This happens for EOF _or_ errors.
That probably misguided the author of Neovim's vim_fgets(), which does NOT
return `true` for errors.
Since all the callers of vim_fgets() probably expect it to work as it does in
Vim (and not as it says), it now returns the same values as the Vim
implementation.
Fixes #8227
2018-04-04 21:13:14 +02:00
Justin M. Keyes
e8c39f72fd
Merge #8226 from justinmk/insert-mode-meta
2018-04-04 04:36:13 +02:00
Justin M. Keyes
224ebc0078
insert-mode: interpret unmapped META as ESC
...
closes #2454
closes #8213
ref #7972
2018-04-04 03:23:15 +02:00
Justin M. Keyes
8b8a75b2cf
Merge #7524 from justinmk/vim-8.0.1281
2018-04-04 01:29:56 +02:00