Jan Edmund Lazo
cbab746fd8
vim-patch:8.1.0891: substitute command inssuficiently tested
...
Problem: Substitute command inssuficiently tested.
Solution: Add more test coverage. (Dominique Pelle)
d77aa4d22e
2019-03-05 00:04:48 -05:00
Billy SU
7e6fce0698
PVS/V501: ui_compositor.c: identical sub-expressions #9673
2019-03-05 01:33:40 +01:00
Justin M. Keyes
2816bc8620
Merge #8349 from lePerdu/completion-indent-adjust
2019-03-04 00:27:18 +01:00
lePerdu
f288a64264
edit.c: Disable indent during completion
...
closes #8345
2019-03-03 23:08:08 +01:00
Björn Linse
bcbb96e31b
Merge pull request #9667 from bfredl/winclose
...
api: add nvim_win_close() to close window by id
2019-03-03 17:30:58 +01:00
Justin M. Keyes
8e54847fdf
Merge #9666 'Fix completion of multibyte env var names'
2019-03-03 13:45:38 +01:00
Björn Linse
c8f310825c
api: add nvim_win_close() to close window by id
2019-03-03 13:09:43 +01:00
Justin M. Keyes
bb8ea83d75
test: multibyte env var names #9655
2019-03-03 11:23:12 +01:00
erw7
cef0107c14
os/env: Fix completion of multibyte env var names
...
fixes #9655
2019-03-03 11:22:59 +01:00
Pierre
14c53e4cbe
vim-patch:8.1.0971: failure to select quoted text obj moves cursor #9658
...
closes #9640
Problem: Failure for selecting quoted text object moves cursor.
Solution: Restore the Visual selection on failure. (Christian Brabandt,
closes vim/vim#4024 )
55d3bdbbe2
2019-03-03 11:04:32 +01:00
Björn Linse
7a6da502b9
Merge pull request #6619 from bfredl/floating
...
Floating windows in TUI and Remote UI
2019-03-02 17:26:50 +01:00
Björn Linse
9a1675b065
floats: implement floating windows
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com>
2019-03-02 16:29:50 +01:00
Zach Gleason
0aba4d825a
ops.c: do_join expects count
of 2 or greater #6855
...
test_normal.vim fails if we assert >= 2, so we only check >= 1. That at
least avoids invalid pointers.
TEST_FILE=test_normal.res make oldtest
2019-03-02 04:52:03 +01:00
Billy Su
8ba484ab69
vim-patch.sh: mention URL for hub
tool #9659
...
closes #9659
2019-03-02 03:26:11 +01:00
Justin M. Keyes
d44ab5fdea
search.c: remove dead code #5307
...
has_mbyte is always true.
2019-03-02 03:13:00 +01:00
Justin M. Keyes
ed4132d7e9
cleanup: remove legacy enc_dbcs
global #9660
2019-03-02 02:33:36 +01:00
Justin M. Keyes
708176aea1
screen.c: remove dead code #6609
...
enc_utf8, enc_dbcs, has_mbyte are always true, so the false branches are
never taken.
2019-03-02 01:23:15 +01:00
KillTheMule
018e0d5a19
API/buffer-updates: always detach on buf-reload #9643
...
Independently of the 'undoreload' option and the length of the file.
closes #9642
closes #9643
2019-03-01 20:01:50 +01:00
Justin M. Keyes
6cd4ff2ab7
os: remove uv_translate_sys_error impl #9652
...
Since libuv minimum version is now v1.12, we can use libuv's impl.
2019-03-01 02:34:32 +01:00
Justin M. Keyes
085f0f1b1b
Merge #9653 from justinmk/vim-8.1.0985
2019-03-01 02:32:13 +01:00
Justin M. Keyes
e7bd49d835
Merge #7920 'env: use libuv v1.12 getenv/setenv API'
2019-03-01 02:30:05 +01:00
Justin M. Keyes
e116b0f61f
vim-patch:8.1.0973: pattern with syntax error gives threee error messages
...
Problem: Pattern with syntax error gives threee error messages. (Kuang-che
Wu)
Solution: Remove outdated internal error. Don't fall back to other engine
after an error.
cd62512c55
2019-03-01 01:56:17 +01:00
Justin M. Keyes
ff98f61601
vim-patch:8.1.0965: search test fails
...
Problem: Search test fails.
Solution: Wait a bit longer for the 'ambiwidth' redraw.
e86ecbd922
2019-03-01 01:56:17 +01:00
Justin M. Keyes
1a0ee090ab
vim-patch:8.1.0963: illegal memory access when using 'incsearch'
...
Problem: Illegal memory access when using 'incsearch'.
Solution: Reset highlight_match when changing text. (closes vim/vim#4022 )
4a7d2d3b40
2019-03-01 01:56:17 +01:00
Justin M. Keyes
b183534c81
vim-patch:8.1.0968: crash when using search pattern \%Ufffffc23
...
Problem: Crash when using search pattern \%Ufffffc23.
Solution: Limit character to INT_MAX. (closes vim/vim#4009 )
527a2d86fb
2019-03-01 01:56:17 +01:00
Justin M. Keyes
403922b1b4
test: fix isCI() for Quickbuild
2019-03-01 01:48:46 +01:00
erw7
67535b5940
test/env: multibyte env var to child process
...
Note: the test fails on non-Windows CI (Travis linux, Quickbuild bsd):
even on master before the env.c changes in this patch-series.
Maybe the unix part of printenv-test.c needs to be revisited.
Signed-off-by: Justin M. Keyes <justinkz@gmail.com>
2019-02-28 22:40:11 +01:00
Justin M. Keyes
900e96781f
clint: check env functions
2019-02-28 12:48:21 +01:00
Justin M. Keyes
a66b1d4615
vim-patch:8.1.0985: crash with large number in regexp
...
Problem: Crash with large number in regexp. (Kuang-che Wu)
Solution: Check for long becoming negative int. (closes #)
ab350f89f9
2019-02-28 12:07:25 +01:00
Justin M. Keyes
89515304e4
os/env: use libuv v1.12 getenv/setenv API
...
- Minimum required libuv is now v1.12
- Because `uv_os_getenv` requires allocating, we must manage a map
(`envmap` in `env.c`) to maintain the old behavior of `os_getenv` .
- free() map-items after removal. khash.h does not make copies of
anything, so even its keys must be memory-managed by the caller.
closes #8398
closes #9267
2019-02-27 23:29:07 +01:00
Justin M. Keyes
1d8e768360
os_getenv, os_setenv: revert "widechar" impl
...
It's reported that the Windows widechar variants do automatically
convert from the current codepage to UTF16, which is very helpful. So
the "widechar" impls are a good direction. But libuv v1.12 does that
for us, so the next commit will use that instead.
ref #8398
ref #9267
2019-02-26 22:38:52 +01:00
Justin M. Keyes
865584dd0c
win: os_getenv(): use _wgetenv()
2019-02-25 23:47:54 +01:00
Justin M. Keyes
76562fa192
utf16_to_utf8: minor fixes
2019-02-25 23:47:54 +01:00
Justin M. Keyes
9153062095
os_setenv: use _wputenv_s; remove vestigial code #7920
...
_putenv_s variant was left over from 810d31a430
, should have been
removed in cd5b131575
.
2019-02-25 23:47:54 +01:00
Justin M. Keyes
533d4a36ec
TUI: do not resize host-terminal on startup ( #9645 )
...
...unless the 'lines' and/or 'columns' options were set.
ref 5732340c20
fixes #5843
2019-02-25 23:30:12 +01:00
Jan Edmund Lazo
88652c49a8
vim-patch:8.1.0980: extend() insufficiently tested ( #9646 )
...
Problem: extend() insufficiently tested.
Solution: Add more tests. (Dominique Pelle, closes vim/vim#4040 )
58d63a0a23
2019-02-25 11:34:55 +01:00
Justin M. Keyes
3b2d5317a5
vim-patch:8.1.0225: mode() does not indicate using CTRL-O from Insert mode ( #9644 )
...
Problem: Mode() does not indicate using CTRL-O from Insert mode.
Solution: Add "niI", "niR" and "niV" to mode() result. (closes vim/vim#3000 )
612cc3888b
2019-02-24 21:44:31 +01:00
Jan Edmund Lazo
9327ea3e5a
vim-patch:8.1.0959: sorting large numbers is not tested ( #9641 )
...
Problem: Sorting large numbers is not tested and does not work properly.
Solution: Add test. Fix comparing lines with and without a number.
(Dominique Pelle, closes vim/vim#4017 )
a25e3d0695
2019-02-23 11:54:41 +01:00
Justin M. Keyes
246408621c
Merge #9509 'TUI: detect background color'
2019-02-22 22:14:38 +01:00
Justin M. Keyes
d3dc946155
TUI: rework background-color detection
...
- Like Vim, use set_option_value() followed by reset_option_was_set().
- Do not use set_string_default(), so the default is predictable.
This affects `:set bg&`.
- Wait until end-of-startup (VimEnter) to handle the response. The
response is racey anyways, so timing is irrelevant. This allows
OptionSet to be triggered, unlike during startup.
2019-02-22 21:15:16 +01:00
Justin M. Keyes
4f453830f7
Merge #9637 from justinmk/win-libuv-update
...
win/deps: update to (forked) libuv v1.26.0
2019-02-21 23:16:32 +01:00
Justin M. Keyes
6784ed206a
win/deps: update to (forked) libuv v1.26.0
...
ref c59aa771a6
2019-02-21 19:43:10 +01:00
Justin M. Keyes
0be6d3c86f
Merge #9634 'fsync: Ignore ENOTSUP. Fix writing to SMB.'
2019-02-21 19:38:24 +01:00
Justin M. Keyes
996916277d
I/O: ignore ENOTSUP for failed fsync()
...
Suggested by ZyX in https://github.com/neovim/neovim/issues/6725#issuecomment-312197691 :
> There already is an exception if writing to a “device” (e.g. FIFO).
> It makes sense to ignore certain errors like ENOTSUP or EOPNOTSUPP
> since it is not something we or user can do anything about.
ref #6725
2019-02-21 02:00:51 +01:00
Justin M. Keyes
c59aa771a6
deps: update to libuv v1.26.0
...
Notable changes since v1.23.2:
- v1.26.0
- uv_os_uname()
- unix: don't attempt to invalidate invalid fd
1ce6393a57
- v1.25.0
- unix: better handling of unsupported F_FULLFSYNC (fixes #6725 )
6fc797c3fe
- tty,win: fix Alt+key under WSL
d2e59bb600
- fsevents: really watch files with fsevents on macos 10.7+
2d2af382ce
- win: fix duplicate tty vt100 fn key
- v1.24.0
- win,fs: retry if uv_fs_rename fails
e94c184c7c
- later [reverted](https://github.com/libuv/libuv/issues/2098 ) but may be useful reference
- win: support more fine-grained windows hiding
4c2dcca27b
2019-02-21 02:00:51 +01:00
Justin M. Keyes
0e97d3d4ee
fix "E667: Fsync failed" on macOS
...
macOS: Try direct fsync() if F_FULLFSYNC fails.
closes #6725
ref https://github.com/vim/vim/pull/4016
vim-patch:8.1.0957
> on macOS F_FULLFSYNC fails with ENOTSUP for unsupported storage systems
> (e.g. SMB), though this is not documented in the Apple fcntl man page.
libuv fixed this in v1.25.0:
6fc797c3fe
2019-02-21 02:00:51 +01:00
Curtis McEnroe
40f5a6c4da
man.vim: g:man_hardwrap #9633
...
This option allows restoring the behaviour prior to #9023 .
Fixes #9583
Closes #9633
2019-02-21 00:06:26 +01:00
Justin M. Keyes
ece19b459c
Merge #9626 from janlazo/vim-8.1.0926
2019-02-18 10:40:33 +01:00
Justin M. Keyes
9cf600e702
Merge #9625 from janlazo/vim-8.1.0945
2019-02-18 10:37:56 +01:00
Jan Edmund Lazo
d595ca021d
vim-patch:8.1.0276: no test for 'incsearch' highlighting with :s
...
Problem: No test for 'incsearch' highlighting with :s.
Solution: Add a screendump test.
164251ff80
2019-02-17 21:59:49 -05:00