Commit Graph

13325 Commits

Author SHA1 Message Date
Harm te Hennepe
424ddd01f5 tui: support rgba background detection (#10205)
Fixes https://github.com/neovim/neovim/issues/10159.
2019-06-13 14:14:41 +02:00
Daniel Hahler
6f27f5ef91 main: do event_init before early_init #10183
Fixes https://github.com/neovim/neovim/issues/10172

* move log_init to event_init
* move init_signs to end of early_init
2019-06-12 14:22:42 +02:00
Justin M. Keyes
babcf641ef
Merge #10192 from janlazo/vim-8.0.1689
vim-patch:8.0.1689,8.1.0213
2019-06-12 08:21:31 +02:00
Jan Edmund Lazo
22d58ab664 vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window
Problem:    CTRL-W CR does not work properly in a quickfix window.
Solution:   Split the window if needed. (Jason Franklin)
0a08c63da1
2019-06-12 00:22:16 -04:00
Jan Edmund Lazo
005316ae41 vim-patch:8.0.1689: no tests for xxd
Problem:    No tests for xxd.
Solution:   Add a test. (Christian Brabandt)
29f9ed20b4
2019-06-11 22:31:21 -04:00
Justin M. Keyes
f8d0e41b28
Merge #10163 from blueyed/vim-8.1.1292
vim-patch:8.1.1292: invalid command line arguments not tested
2019-06-11 14:01:09 +02:00
Daniel Hahler
432f69fc09 vim-patch:8.1.1211: test user command code #10162
Problem:    Not all user command code is tested.
Solution:   Add more tests.
e61e548dd6
2019-06-11 13:56:15 +02:00
Daniel Hahler
304861e0ee adjust tests for nvim 2019-06-11 12:52:17 +02:00
Daniel Hahler
76506ca0a3 vim-patch:8.1.1292: invalid command line arguments not tested
Problem:    Invalid command line arguments not tested.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#4346)
ba9ea91beb
2019-06-10 18:10:15 +02:00
Daniel Hahler
6fe430f582 local.mk.example: add example for -Werror [ci skip] #10178 2019-06-10 17:20:41 +02:00
erw7
ce90a19abd TUI: set os/input.c:global_fd to input->in_fd #10174
Problem: When we changed startup to wait for the TUI (like a remote UI),
         we forgot to set os/input.c:global_fd.  That used to be done by
         input_start().

Solution: Initialize os/input.c:global_fd before initializing libtermkey
          (termkey_new_abstract) so that tui_get_stty_erase() and
          friends can inspect the correct fd.

fixes #10134
close #10174
2019-06-10 16:43:52 +02:00
Justin M. Keyes
04e2ba85b1
doc [ci skip] #10129
- document lua vim.loop #10123
2019-06-10 15:53:42 +02:00
George Zhao
c83926cd0a lua: introduce vim.loop (expose libuv event-loop) #10123
Co-authored-by: Andrey Popp <8mayday@gmail.com>

closes #9546
closes #10084
2019-06-10 14:13:18 +02:00
Jan Edmund Lazo
3e58e60568 vim-patch:8.0.1278: Add the "k" flag in 'guioptions' #10175
Problem:    GUI window always resizes when adding/removing a scrollbar,
            toolbar, etc.
Solution:   Add the 'k' flag in 'guioptions' to keep the GUI window size and
            change the number of lines/columns instead. (Ychin, closes vim/vim#703)
8ac441576f
2019-06-10 12:18:59 +02:00
Justin M. Keyes
7612dd3f8a
Merge #10173 from janlazo/vim-8.0.1756
vim-patch:8.0.1756,8.1.1509
2019-06-09 22:52:03 +02:00
Jan Edmund Lazo
84ba37fbcb lint 2019-06-09 16:25:10 -04:00
Jan Edmund Lazo
aecbbb0b11 vim-patch:8.1.1509: cmdline_row can become negative, causing a crash
Problem:    Cmdline_row can become negative, causing a crash.
Solution:   Make sure cmdline_row does not become negagive. (closes vim/vim#4102)
954bb06363
2019-06-09 16:12:51 -04:00
Jan Edmund Lazo
1ce28d7d9b vim-patch:8.0.1756: GUI: after prompting for a number the mouse shape is wrong
Problem:    GUI: after prompting for a number the mouse shape is sometimes
            wrong.
Solution:   Call setmouse() after setting "State". (Hirohito Higashi,
            closes vim/vim#2709)
73658317ba
2019-06-09 16:02:35 -04:00
Santos Gallegos
6c96c3b3f5 search_stat: show "??/?" dual in right-to-left case #10170
Co-Authored-By: James McCoy <jamessan@jamessan.com>
2019-06-09 19:59:44 +02:00
Justin M. Keyes
b397a3f397
Merge #10142 from blueyed/vim-1fbfe7c48
vim-patch:8.1.013{0,1}
2019-06-09 16:20:09 +02:00
Daniel Hahler
b74da2ff3e vim-patch.sh: git-for-each-ref: use strip [ci skip] #10169
- It is a synonym for lstrip, which works with older Git versions also
  (2.7.4, Ubuntu Xenial).
- exit in case of errors from git-foreach-ref
- msg_err: echo to stderr

Ref: https://github.com/neovim/neovim/pull/10165#issuecomment-500164356
2019-06-09 16:13:06 +02:00
Daniel Hahler
a2bb63c182 vim-patch.sh: improve performance with -l [ci skip] #10165
Down to < 1s now also (without get_vim_sources).
2019-06-09 16:01:18 +02:00
Jan Edmund Lazo
0b4c53fc23 vim-patch:8.0.1305: writefile() never calls fsync() #10153
Problem:    Writefile() never calls fsync().
Solution:   Follow the 'fsync' option with override to enable or disable.
7567d0b115
2019-06-09 00:12:28 +02:00
Daniel Hahler
93afb34712 vim-patch:8.1.1191: test debug commands #10158
Problem:    Not all debug commands are covered by a test.
Solution:   Add more tests. (Yegappan Lakshmanan, closes vim/vim#4282)
0fdd943595
2019-06-09 00:10:33 +02:00
Daniel Hahler
bf3e12ac85 vim-patch:8.1.0769: :stop is covered in two tests #10157
Problem:    :stop is covered in two tests.
Solution:   Remove Test_stop_in_terminal().  Make other test exit Vim cleanly.
            (Ozaki Kiichi, closes vim/vim#3814)
3020ccb113
2019-06-09 00:09:35 +02:00
Justin M. Keyes
644a725725
Merge #10135 from janlazo/vim-8.1.0406
vim-patch:8.1.{406,409,417,426}

close #10148
2019-06-09 00:08:44 +02:00
Daniel Hahler
3dd31b2b65 vim-patch:8.1.1491: fix skipping after exception #10164
Problem:    When skipping over code after an exception was thrown expression
            evaluation is aborted after a function call. (Ingo Karkat)
Solution:   Do not fail if not executing the expression. (closes vim/vim#4507)
6064073841
2019-06-08 19:57:54 +02:00
Daniel Hahler
7d70166e77 vim-patch:8.1.0131: :profdel is not tested
Problem:    :profdel is not tested.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#3123)
1fbfe7c48c
2019-06-08 16:40:32 +02:00
Daniel Hahler
7823b35781 vim-patch:8.1.0130: ":profdel func" does not work if func was called already
Problem:    ":profdel func" does not work if func was called already.
            (Dominique Pelle)
Solution:   Reset uf_profiling and add a flag to indicate initialization was
            done.
ad64809610
2019-06-08 16:40:32 +02:00
Jan Edmund Lazo
0206f279ba vim-patch:8.1.0426: accessing invalid memory in SmcOpenConnection()
Problem:    Accessing invalid memory in SmcOpenConnection().
Solution:   Reduce size of errorstring by one. (Dominique Pelle, closes vim/vim#3469)
4841a7ccae
2019-06-08 10:25:12 -04:00
Jan Edmund Lazo
b868f87310 test/old: ignore defaults.vim assertion 2019-06-08 10:25:12 -04:00
Jan Edmund Lazo
a64e0e6a58 vim-patch:8.1.0417: several command line arguments are not tested
Problem:    Several command line arguments are not tested.
Solution:   Add tests for -m, -M, -R and -Vfile. (Dominique Pelle,
            closes vim/vim#3458)
036b09ca78
2019-06-08 10:25:12 -04:00
Jan Edmund Lazo
a597ea7bcc vim-patch:8.1.0409: startup test fails on MS-Windows
Problem:    Startup test fails on MS-Windows.
Solution:   Do the Arabic test in silent Ex mode.  Loosen the check for -V2.
4b1c9a91b5
2019-06-08 10:25:12 -04:00
Jan Edmund Lazo
de16b6dc7a vim-patch:8.1.0406: several command line arguments are not tested
Problem:    Several command line arguments are not tested.
Solution:   Add tests for -A, -F, -H, -p and -V. (Dominique Pelle,
            closes vim/vim#3446)
9e81db9742
2019-06-08 10:25:12 -04:00
Daniel Hahler
b398b1eedd vim-patch.sh: use --no-backup-if-mismatch [ci skip] #10156 2019-06-08 15:06:16 +02:00
Daniel Hahler
a11fb248ef vim-patch:8.1.0830: test leaves directory behind #10152
Problem:    Test leaves directory behind on MS-Windows.
Solution:   Close buffer before deleting directory.
e3d0654544
2019-06-08 14:57:20 +02:00
Jaskaran Singh
d646fe73ac vim-patch:8.1.1199: no test for :abclear #9936
Problem:    No test for :abclear.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#4292)
8485be4e49
2019-06-08 14:53:32 +02:00
Justin M. Keyes
d486ea37b2
Merge #10151 from blueyed/vim-8.1.0807
vim-patch:8.1.{0807,0813}
2019-06-08 14:46:16 +02:00
Daniel Hahler
766657320a vim-patch.sh: improve patching [ci skip] #10154
(fuzz, unified, exit)

Fixes https://github.com/neovim/neovim/issues/10143
2019-06-08 14:42:17 +02:00
Justin M. Keyes
230e75b63f
Merge #10149 from blueyed/vim-8.1.0430
vim-patch:8.1.{0430,0529}
2019-06-08 14:19:35 +02:00
Daniel Hahler
bf16b14f46 vim-patch.sh: improve performance #10137
`vim-patch.sh -L`: down to ~0.5s from ~85s.
`vim-patch.sh -l`: down to ~6s from ~90s.

    % diff old new:
    193c193
    <   • v8.0.1366
    ---
    >   • v8.0.1367
    354d353
    <   • v8.0.1738

This is due to duplicate tags for Vim commits
(https://github.com/vim/vim/issues/4510):

  - vim/vim@1ad022a9b: tagged as v8.0.1367, v8.0.1366
  - vim/vim@5d69da462: tagged as v8.0.1739, v8.0.1738
2019-06-08 14:18:35 +02:00
Daniel Hahler
25ec0c8805 vim-patch.sh: fix shellcheck issues [ci skip] #10138 2019-06-08 14:02:30 +02:00
Daniel Hahler
192460e6b6 vim-patch:8.1.0813: FileChangedShell not sufficiently tested
Problem:    FileChangedShell not sufficiently tested.
Solution:   Add a more comprehensive test case.
0566e891f7
2019-06-08 13:59:19 +02:00
Daniel Hahler
40dee0c82e vim-patch:8.1.0807: session test fails on MS-Windows
Problem:    Session test fails on MS-Windows.
Solution:   Don't try creating file with illegal name.
9e79ccbe9c
2019-06-08 13:55:13 +02:00
Daniel Hahler
7810c7ab76 vim-patch:8.1.0529: flaky test sometimes fails in different ways
Problem:    Flaky test sometimes fails in different ways.
Solution:   When the second run gives a different error, try running the test
            again, up to five times.
f77af0e613
2019-06-08 13:49:56 +02:00
Daniel Hahler
ce1b4f95fe vim-patch:8.1.0430: Xargadd file left behind after running test
Problem:    Xargadd file left behind after running test.
Solution:   Delete the file. (Dominique Pelle)
d339828b4b
2019-06-08 13:46:16 +02:00
Justin M. Keyes
faec6fcc6a
Merge #10141 from blueyed/vim-8.0.1335
vim-patch:8.0.{1335,1339,1744}
2019-06-08 13:09:35 +02:00
Daniel Hahler
78df9eb51d vim-patch:1ebff3dc9 #10144
patch 8.1.0158: GUI: input() fails if CTRL-C was pressed before

Problem:    GUI: input() fails if CTRL-C was pressed before. (Michael Naumann)
Solution:   call vpeekc() to drop the CTRL-C from the input stream.
1ebff3dc93
2019-06-08 13:02:26 +02:00
Daniel Hahler
7d542b5900 Test_writefile_sync_dev_stdout: use s for sync explicitly 2019-06-08 10:56:06 +02:00
Daniel Hahler
b6eeb40d19 vim-patch:9980b37a80
patch 8.0.1744: on some systems /dev/stdout isn't writable

Problem:    On some systems /dev/stdout isn't writable.
Solution:   Skip test if writing is not possible. (James McCoy, closes vim/vim#2830)
9980b37a80
2019-06-08 10:56:06 +02:00