Marco Hinz
3b63374b33
Dist: make icon a proper square ( #9716 )
...
The canvas was resized from 128x104 to 128x128 and centered via Gimp and further
optimized via optipng.
Fixes https://github.com/neovim/neovim/issues/9715
2019-03-11 21:00:12 +01:00
Justin M. Keyes
c0a29c3656
Merge #9708 from justinmk/tui-bg-detect
2019-03-11 09:25:39 +01:00
Justin M. Keyes
43184566aa
TUI/background detection: hook into VimEnter event
...
If terminal response is received during startup, set 'background' from
a nested "one-shot" (once) VimEnter autocmd.
The previous not-so-clever "self-rescheduling" approach could cause
a long delay at startup (event-loop does not make forward progress).
fixes #9675
ref #9509
2019-03-11 08:43:27 +01:00
Petter Wahlman
c99bff5f56
cleanup: rename menu_nable_recurse() #9707
2019-03-10 19:05:48 +01:00
Justin M. Keyes
ef5037e7f6
Merge #9706 from justinmk/aucmd-once
2019-03-10 13:10:09 +01:00
Justin M. Keyes
c12cf5bde7
autocmd: introduce "once" feature
...
Adds a new feature to :autocmd which sets the handler to be executed at
most one times.
Before:
augroup FooGroup
autocmd!
autocmd FileType foo call Foo() | autocmd! FooGroup * <buffer>
augroup END
After:
autocmd FileType foo once call Foo()
2019-03-10 04:58:30 +01:00
Jan Edmund Lazo
95ce1e5408
vim-patch:8.1.1002: "gf" on URL with port number #9705
...
Problem: "gf" does not always work when URL has a port number. (Jakob
Schöttl)
Solution: When a URL is recognized also accept ":". (closes vim/vim#4082 )
cbef8e1aa1
2019-03-10 04:53:51 +01:00
Justin M. Keyes
092e7e6c60
Merge #9703 from erw7/fix-executable-on-unix
2019-03-09 23:23:20 +01:00
erw7
7757ce1cb8
executable(): return false if user is not owner #9703
...
S_IXUSR does not check ownership. Test case:
touch test.txt
chmod 744 test.txt
sudo chown root:root test.txt
nvim -u NORC
:echo executable('./test.txt')
2019-03-09 23:18:03 +01:00
Justin M. Keyes
3cb89cafe3
vim-patch:8.1.0994: fix relative cursor position #9676
...
Problem: Relative cursor position is not calculated correctly.
Solution: Always set topline, also when window is one line only.
(Robert Webb) Add more info to getwininfo() for testing.
8fcb60f961
2019-03-09 23:12:33 +01:00
Justin M. Keyes
6eca56c6c5
Merge #9003 'vim-patch:8.0.1372'
2019-03-09 14:12:54 +01:00
erw7
f719247118
floating-window: fix crash setting cmdheight #9685
...
fixes #9680
2019-03-09 14:10:56 +01:00
Jan Edmund Lazo
c1ee5e0694
vim-patch:8.0.1372: profile log may be truncated halfway a character
...
Problem: Profile log may be truncated halfway a character.
Solution: Find the start of the character. (Ozaki Kiichi, closes vim/vim#2385 )
ac112f01a6
nvim does not support "--clean" yet but "-es" should suffice for the test.
2019-03-08 21:35:03 -05:00
Justin M. Keyes
4352d41db0
Merge #9662 'vim-patch:8.0.{0643-0646}'
2019-03-08 13:21:11 +01:00
Justin M. Keyes
0355c1ed9c
Merge #9695 'vim-patch:8.1.{739,826,998}'
2019-03-08 12:23:53 +01:00
Jan Edmund Lazo
e3d9945f7f
vim-patch:8.1.0826: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
29ddebef40
2019-03-08 03:12:57 -05:00
Jan Edmund Lazo
8bd194f98a
oldtests: set shellslash in Test_true_false_arg()
2019-03-08 02:30:22 -05:00
Jan Edmund Lazo
e428fc4b52
oldtests: set shellslash in Test_shellescape()
...
Value of "&shell" does not affect "shellescape()".
2019-03-08 02:12:12 -05:00
Jan Edmund Lazo
aa985f4a7c
vim-patch:8.1.0739: text objects in not sufficiently tested
...
Problem: Text objects in not sufficiently tested.
Solution: Add a few more test cases. (Dominique Pelle, closes vim/vim#3795 )
81b1ba4be5
2019-03-07 23:30:12 -05:00
Jan Edmund Lazo
72e304c349
vim-patch:8.1.0998: getcurpos() unexpectedly changes "curswant"
...
Problem: getcurpos() unexpectedly changes "curswant".
Solution: Save and restore "curswant". (closes vim/vim#4069 )
19a66858a5
2019-03-07 22:28:30 -05:00
Billy Su
96e2c3945f
lint: fix coding style
2019-03-08 00:08:16 +08:00
Billy Su
0a471e009a
vim-patch:8.0.0646: the hlsearch test fails on fast systems
...
Problem: The hlsearch test fails on fast systems.
Solution: Make the search pattern slower. Fix that the old regexp engine
doesn't timeout properly.
0946326580
2019-03-08 00:06:28 +08:00
Billy Su
fbd8209286
vim-patch:8.0.0645: no error for illegal back reference in NFA engine
...
Problem: The new regexp engine does not give an error for using a back
reference where it is not allowed. (Dominique Pelle)
Solution: Check the back reference like the old engine. (closes vim/vim#1774 )
1ef9bbe215
2019-03-07 23:48:53 +08:00
Billy Su
570e41fc08
vim-patch:8.0.0644: the timeout for 'hlsearch' is not tested
...
Problem: There is no test for 'hlsearch' timing out.
Solution: Add a test.
5b1affefd0
2019-03-07 23:48:53 +08:00
Billy Su
241b905b13
vim-patch:8.0.0643: when a pattern search is slow Vim becomes unusable
...
Problem: When 'hlsearch' is set and matching with the last search pattern
is very slow, Vim becomes unusable. Cannot quit search by
pressing CTRL-C.
Solution: When the search times out set a flag and don't try again. Check
for timeout and CTRL-C in NFA loop that adds states.
fbd0b0af68
2019-03-07 23:27:19 +08:00
Jan Edmund Lazo
5f84b1dc41
vim-patch:8.1.0935: old regexp engine may use invalid buffer #9692
...
Problem: Old regexp engine may use invalid buffer for 'iskeyword' or
uninitialized buffer pointer. (Kuang-che Wu)
Solution: Set rex.reg_buf when compiling the pattern. (closes vim/vim#3972 )
8bfd9469ce
2019-03-07 12:05:22 +01:00
Boskovits
b51e5d8b8d
tui_tk_ti_getstr: handle weird value #9688
...
tigetstr (used by libtermkey/driver-ti.c) may return -1 as a pointer.
Documented in man 3 tigetstr. https://linux.die.net/man/3/tigetstr
> The tigetstr routine returns the value (char *)-1 if capname is not a string
> capability, or 0 if it is canceled or absent from the terminal description.
Fixed #9687
2019-03-07 11:42:58 +01:00
Justin M. Keyes
980dd7c011
Merge #9638 from mhinz/update-libtermkey
2019-03-07 00:57:21 +01:00
Billy SU
299f32dc01
PVS/V560: window.c: fix always true condition #9682
2019-03-05 22:48:52 +01:00
Justin M. Keyes
5d2e4a5021
Merge #9679 from janlazo/vim-8.1.0891
2019-03-05 22:47:19 +01:00
Björn Linse
e386e51d9e
Merge pull request #9674 from bfredl/bufapi-fix
...
api/buffer: use aucmd_prepbuf() to manipulate invisible buffer, fix some issues
2019-03-05 19:39:15 +01:00
Björn Linse
f5d5da3917
buffer: use aucmd_prepbuf() instead of switch_to_win_for_buf()
2019-03-05 15:05:23 +01:00
Jan Edmund Lazo
04059312b0
vim-patch:8.1.0875: not all errors of marks and findfile()/finddir() are tested
...
Problem: Not all errors of marks and findfile()/finddir() are tested.
Solution: Add more test coverage. (Dominique Pelle)
71b13e92ae
2019-03-05 00:09:30 -05:00
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