Björn Linse
520ec3dbfd
UI/TUI: improvements and cleanups for scrolling and clearing
...
- TUI: _never_ rely on BCE for implicit clearing, only explicit commands.
- TUI: use unibi_erase_chars when possible.
- TUI: use end-exclusive ranges for invalid and cleared areas
- screen: scrolling leaves scrolled in aree undefined. This is a
conservative change, a client assuming the old semantics will still
behave correctly.
- screen: factor out vsep handling from line drawing. This is needed
anyway for the multigrid refactor.
- screen: simplifications of win_do_lines
2018-11-11 09:54:03 +01:00
Justin M. Keyes
f8639dc99c
test: adjust time-sensitive tests ( #9220 )
...
- window_split_tab_spec.lua: Put cursor at bottom of :terminal buffer so
that it follows output.
- inccommand_spec.lua: Increase timeout to allow 2nd retry.
- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
ref #6829
ref e39dade80b
ref de13113dc1
ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
> We don't guarantee that a X ms timer is triggered during Y ms sleep
> for any X<Y, though I would expect the load to be really bad for this
> to happen with X=10ms, Y=40ms.
2018-11-10 11:12:04 +01:00
Jan Edmund Lazo
18435a2534
vim-patch:8.1.0337: :file fails in quickfix command ( #9215 )
...
Problem: :file fails in quickfix command.
Solution: Allow :file without argument when curbuf_lock is set. (Jason
Franklin)
379fb76b08
2018-11-09 09:33:28 +01:00
Björn Linse
16bc1e9c17
Merge pull request #9218 from bfredl/termbuf
...
channel: avoid buffering output when only terminal and no callbacks are active
2018-11-08 23:48:34 +01:00
Björn Linse
312afd8e2e
channel: avoid buffering output when only terminal and no callbacks are active
2018-11-08 19:06:55 +01:00
Björn Linse
d36afafc8d
Merge pull request #9211 from bfredl/init_options
...
ui_options: also send when starting in --embed mode
2018-11-08 15:15:36 +01:00
Björn Linse
348adbcc7a
ui_options: also send when starting or from OptionSet
...
needed after #9024 to receive options from init.vim
2018-11-08 14:12:54 +01:00
Tommy Allen
c4c74c3883
jobstart(): Fix hang on non-executable cwd #9204
...
* os/fs.c: add os_isdir_executable()
* eval.c: fix hang on job start caused by non-executable cwd option
* channel.c: assert cwd is an executable directory
* test: jobstart() produces error when using non-executable cwd
2018-11-07 10:31:25 +01:00
Justin M. Keyes
769d164c70
Merge pull request #9206 from janlazo/vim-8.1.0510
...
vim-patch:8.1.{510,512}
2018-11-06 13:58:22 +01:00
Jan Edmund Lazo
f08869cff2
vim-patch:8.1.0511: ml_get error when calling a function with a range ( #9207 )
...
Problem: ml_get error when calling a function with a range.
Solution: Don't position the cursor after the last line.
9e353b5265
2018-11-06 13:49:20 +01:00
Jan Edmund Lazo
e0d6894a54
vim-patch:8.1.0512: 'helplang' default is inconsistent for C and C.UTF-8
...
Problem: 'helplang' default is inconsistent for C and C.UTF-8.
Solution: Don't accept a value unless it starts with two letters.
389ab7122b
2018-11-05 21:08:23 -05:00
Jan Edmund Lazo
bd6866f90b
vim-patch:8.1.0510: filter test fails when $LANG is C.UTF-8
...
Problem: Filter test fails when $LANG is C.UTF-8.
Solution: Set 'helplang' to "en" for any C language. (Christian Brabandt,
closes vim/vim#3577 )
dcd71cbaed
2018-11-05 20:08:47 -05:00
Justin M. Keyes
5320eb57df
build: relax find_package() version spec
...
We need a way to say "Lua 5.1.x" is required.
"5.1 EXACT" does not match 5.1.5, so it's useless.
https://github.com/neovim/neovim/pull/9197#discussion_r230962070
2018-11-06 01:48:49 +01:00
Justin M. Keyes
1347f36494
Merge #9112 'doc'
2018-11-05 23:10:50 +01:00
Justin M. Keyes
b96730bc3b
doc: API
2018-11-05 22:45:49 +01:00
Justin M. Keyes
72b1ce7f30
doc: fix/remove broken tag references
2018-11-05 22:45:48 +01:00
Justin M. Keyes
1bbbd5f0ff
build: make helphtml
2018-11-05 22:45:48 +01:00
Justin M. Keyes
2ee4ce0639
doc: merge sponsor.txt into intro.txt
...
Also mention how to donate to Nvim.
closes #8603
2018-11-05 22:45:48 +01:00
Justin M. Keyes
f679abef3e
runtime: delete rrhelper.vim
2018-11-05 22:45:48 +01:00
Justin M. Keyes
4de70f5b95
doc
...
- update standard-plugin-list. closes #8388
2018-11-05 22:45:48 +01:00
Justin M. Keyes
6729774143
doc: manpage
...
roff/mdoc reference:
http://man7.org/linux/man-pages/man7/groff_mdoc.7.html
2018-11-05 22:45:48 +01:00
Justin M. Keyes
6fe740c7ab
test/win: window_split_tab_spec: fix retry()
2018-11-05 07:59:14 +01:00
Justin M. Keyes
10ef903648
test/win: window_split_tab_spec: increase retry() time
...
The default timeout of 10s only allows 1 retry.
2018-11-05 03:25:36 +01:00
Justin M. Keyes
8086db6302
Merge #9197
2018-11-05 01:15:20 +01:00
Justin M. Keyes
2c085257fd
CI/AppVeyor: Avoid "warning" which causes non-zero retcode
...
ErrorActionPreference=stop will fail the script if this warning occurs.
see https://github.com/open62541/open62541/issues/2068
2018-11-05 00:35:54 +01:00
Justin M. Keyes
de13113dc1
test/timer_spec: relax lower-bound
...
Test is unreliable on macOS 10.13. The lower-bound isn't central to the
purpose of the test, so just relax it.
ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
> We don't guarantee that a X ms timer is triggered during Y ms sleep
> for any X<Y, though I would expect the load to be really bad for this
> to happen with X=10ms, Y=40ms.
related: #6829
2018-11-05 00:35:54 +01:00
Justin M. Keyes
697176fc3e
test/win: retry unreliable SIGWINCH test
2018-11-04 14:24:05 +01:00
Justin M. Keyes
377694681c
build: dependencies: specify minimum versions
2018-11-04 12:11:37 +01:00
Jan Edmund Lazo
47473b39cb
vim-patch:8.1.0508: suspend test fails when run by root ( #9196 )
...
Problem: Suspend test fails when run by root.
Solution: Accept both '$' and '#' for the prompt. (James McCoy, closes vim/vim#3590 )
0f62cf5b33
2018-11-04 11:58:22 +01:00
Jan Edmund Lazo
21fb9b2b08
vim-patch:8.1.0507: .raml files not properly detected ( #9195 )
...
Problem: .raml files not properly detected.
Solution: Recognize .raml as raml instead of yaml. (closes vim/vim#3594 )
da1c11c641
2018-11-04 11:56:34 +01:00
Sam Wilson
67f80d485c
TUI: Avoid reset_cursor_color in old VTE #9191
...
closes #9089
2018-11-03 21:39:48 +01:00
Jan Edmund Lazo
a6661178aa
vim-patch:8.1.0504: when CTRL-C is mapped it triggers InsertLeave ( #9192 )
...
Problem: When CTRL-C is mapped it triggers InsertLeave.
Solution: Make CTRL-C behave the same way when typed or used in a mapping.
4dbc262764
2018-11-03 12:04:33 +01:00
Justin M. Keyes
87d67814e5
Merge #9184 from janlazo/vim-8.0.1758
2018-11-02 09:09:40 +01:00
Björn Linse
48398d61e4
Merge pull request #9183 from bfredl/offset2
...
api: make nvim_buf_get_offset independent on platform option
2018-11-02 08:36:38 +01:00
Jan Edmund Lazo
a9b7debbbc
vim-patch:8.0.1766: expanding abbreviation doesn't work
...
Problem: Expanding abbreviation doesn't work. (Tooth Pik)
Solution: Return OK instead of FALSE and FAIL instead of TRUE. (Christian
Brabandt)
c3c3e69896
2018-11-01 23:20:06 -04:00
Jan Edmund Lazo
44c111e49f
vim-patch:8.0.1758: open_line() returns TRUE/FALSE for success/failure
...
Problem: open_line() returns TRUE/FALSE for success/failure.
Solution: Return OK or FAIL.
24a2d7264f
2018-11-01 23:19:25 -04:00
Björn Linse
c40f992e10
api: simplify nvim_buf_get_offset function
2018-11-01 22:00:40 +01:00
Justin M. Keyes
c45a859171
Merge #7506 'deps: update libuv'
2018-11-01 20:42:20 +01:00
Justin M. Keyes
f1b67c3453
test/old: Test_BufReadCmdHelp: generate helptags
...
Generate helptags before :help.
This only failed in the TSAN build because other builds run the Lua
tests first, which generate the helptags.
closes #8824
2018-11-01 19:17:29 +01:00
Björn Linse
88f77c28e5
Merge pull request #9180 from bfredl/offset
...
api: implement nvim_buf_get_offset_for_line
2018-11-01 17:36:58 +01:00
Justin M. Keyes
f5671c8614
win: test: SIGWINCH is noisy #7506
2018-11-01 17:17:07 +01:00
Björn Linse
281da0dd59
api: implement nvim_buf_get_offset_for_line
...
Like line2byte, but works for any buffer, and uses zero-based
indexing (API conventions).
2018-11-01 15:05:05 +01:00
Justin M. Keyes
11b438eb66
Merge #8378 from janlazo/win_functional_tests
2018-11-01 10:00:35 +01:00
Jan Edmund Lazo
f9fe903579
vim-patch:8.1.0501: cppcheck warns for using array index before bounds check ( #9178 )
...
Problem: Cppcheck warns for using array index before bounds check.
Solution: Swap the conditions. (Dominique Pelle)
a9a8e04eab
2018-11-01 09:53:46 +01:00
Justin M. Keyes
8480b74010
build/win: LibuvCMakeLists.txt: adapt to moved headers
...
Headers were moved in v1.21.0
99ae3edf28
2018-11-01 04:35:36 +01:00
Jan Edmund Lazo
8ce3d0174e
ci: win: enable powershell's strict mode
...
Give variables a default value to pass strict mode.
$ErrorActionPreference defines the default behavior
if a powershell command fails.
If it's set to 'stop', then it aborts the script
on the first unresolved error.
This behavior extends to native programs like cmake
but do not depend on it.
https://github.com/PowerShell/PowerShell/issues/3996
2018-10-31 22:57:26 -04:00
Jan Edmund Lazo
9929af47fe
ci: win: use Ninja for CMake Generator
2018-10-31 22:56:19 -04:00
Jan Edmund Lazo
7ab0e8c8dd
functionaltest: enable job channel test
2018-10-31 22:55:07 -04:00
Jan Edmund Lazo
4abed17496
functionaltest: win: enable shada FileWriteCmd
2018-10-31 22:55:07 -04:00
Jan Edmund Lazo
8e44396794
functionaltest: enable buffered output tests
2018-10-31 22:55:07 -04:00