Björn Linse
e0d6228978
tree-sitter: use "range" instead of "point_range" consistently in lua API
2019-09-28 17:46:25 +02:00
Björn Linse
06ee45b9b1
tree-sitter: fix lint, delete "demo" plugin (replaced by functional tests)
2019-09-28 17:46:25 +02:00
Björn Linse
d697841a9d
tree-sitter: cleanup tree refcounting
2019-09-28 14:55:43 +02:00
Björn Linse
d24dec596c
tree-sitter: inspect language
2019-09-28 14:55:43 +02:00
Björn Linse
a88a9f128e
tree-sitter: add some more API
2019-09-28 14:55:43 +02:00
Björn Linse
c1dc1bedba
tree-sitter: style
2019-09-28 14:55:43 +02:00
Björn Linse
a361e09cc5
tree-sitter: use standard luaL_newmetatable and luaL_checkudata pattern
2019-09-28 14:55:43 +02:00
Björn Linse
c8f861b739
tree-sitter: rename tree_sitter => treesitter for consistency
2019-09-28 14:55:43 +02:00
Björn Linse
4ea5e63aa8
tree-sitter: add basic testing on ci
...
build tree-sitter c parser on ci for testing purposes
2019-09-28 14:55:43 +02:00
Björn Linse
afba23099f
tree-sitter: support pre-registration of languages
2019-09-28 14:55:43 +02:00
Björn Linse
1e9e2451be
tree-sitter: objectify API
2019-09-28 14:55:43 +02:00
Björn Linse
c07e1e8696
tree-sitter: cleanup build code
2019-09-28 14:55:43 +02:00
Björn Linse
b871100be7
Create BuildUtf8proc.cmake and FindUtf8proc.cmake
...
Using advanced search and replace technology
2019-09-28 14:31:03 +02:00
Björn Linse
0e0beef85e
tree-sitter: load parsers as .so files
2019-09-28 14:31:03 +02:00
Björn Linse
cd10096386
tree-sitter: initial tree-sitter support
2019-09-28 14:31:03 +02:00
Björn Linse
8ff2f193bb
tree-sitter: change vendored tree-sitter to use nvim memory management
2019-09-28 14:31:03 +02:00
Björn Linse
3bddf05023
tree-sitter: vendor tree-sitter runtime
...
tree-sitter/tree-sitter commit 7685b7861ca475664b6ef57e14d1da9acf741275
Included files are:
lib/include/tree-sitter/*.h
lib/src/*.[ch]
LICENSE
2019-09-28 14:30:48 +02:00
Daniel Hahler
0d9a3c86a1
vim-patch:8.1.2083: multi-byte chars do not work properly with "%.*S" in printf() ( #11106 )
...
Problem: Multi-byte chars do not work properly with "%.*S" in printf().
Solution: Use mb_ptr2cells(). Daniel Hahler, closes vim/vim#4989 )
ce0fac2897
2019-09-28 00:32:22 +02:00
Daniel Hahler
cb25207171
vim-patch:8.0.0914: highlight attributes are always combined ( #10256 )
...
Problem: Highlight attributes are always combined.
Solution: Add the 'nocombine' value to replace attributes instead of
combining them. (scauligi, closes vim/vim#1963 )
0cd2a94a40
Closes https://github.com/neovim/neovim/pull/10256 .
2019-09-26 00:50:54 +02:00
Daniel Hahler
2621f4455d
Merge pull request #10978 from blueyed/update-libuv
...
third-party: update libuv to v1.32.0
2019-09-25 11:52:41 +02:00
Daniel Hahler
0571145c40
paste: fix handling of "<" in cmdline ( #11094 )
...
Fixes https://github.com/neovim/neovim/issues/11088 .
2019-09-25 09:15:33 +02:00
Daniel Hahler
bb6b1267e7
Revert "win/os_env_exists(): workaround libuv bug #10734 "
...
This reverts commit 278c5d452c
.
2019-09-25 05:47:12 +02:00
Daniel Hahler
445f2f4096
tui: flush ui buffer in tui_terminal_after_startup ( #11083 )
...
This avoids having a dummy event to tickle the main loop.
Confirmed using `nvim -u NONE -c 'au FocusGained * q'` in tmux (with
`:set -g focus-events on`): without the flushing it would only exit
after pressing a key.
Moves the flushing done recently in 3626d2107
.
`nvim -u NONE -cq` is still working (i.e. consuming the response for the
terminal background query itself), and the flickering mentioned in
3626d2107
is reduced again.
Reverts part of bfb21f3e0
(#7729 ).
2019-09-24 08:34:00 +02:00
Jan Edmund Lazo
6d213593ed
vim-patch:8.0.1754: ex_helpgrep() is too long #11084
...
Problem: ex_helpgrep() is too long.
Solution: Refactor the function. (Yegappan Lakshmanan, closes vim/vim#2766 )
2225ebb486
2019-09-23 22:28:04 -07:00
Jan Edmund Lazo
d9032308fb
vim-patch:8.0.1812: refactor qf_jump_to_usable_window() #11078
...
Problem: The qf_jump_to_usable_window() function is too long.
Solution: Split it in parts. (Yegappan Lakshmanan, closes vim/vim#2891 )
7a2b0e55e9
2019-09-22 18:56:31 -07:00
Daniel Hahler
3626d2107e
terminfo_start: flush buffer #11074
...
This aligns with `terminfo_stop`, which also flushes the buffer
after disabling things.
This ensures Neovim gets the response to the terminal background query
before exiting (`nvim -u NONE -cq` with e.g. urxvt or kitty).
Caveats:
* With kitty this causes some "flickering", likely since the alternate
screen is being setup with `nvim -u NONE -cq`, whereas it would not be
processed otherwise before quitting (as with the background query).
* tmux after this patch may print ^[[I (CSI I / FocusGained) after
`nvim -u NONE -cq`.
Fixes https://github.com/neovim/neovim/issues/11062
2019-09-22 12:51:55 -07:00
Daniel Hahler
6c3d34e4df
vim-patch:8.1.2059: fix for "x" deleting a fold has side effects
...
Problem: Fix for "x" deleting a fold has side effects.
Solution: Fix it where the fold is included.
56ebbabea1
2019-09-22 20:11:04 +02:00
Daniel Hahler
97b82553e0
vim-patch:8.1.2052: using "x" before a closed fold may delete that fold
...
Problem: Using "x" before a closed fold may delete that fold.
Solution: Do not translate 'x' do "dl". (Christian Brabandt, closes vim/vim#4927 )
7a9bd7c1e0
2019-09-22 20:11:04 +02:00
Björn Linse
f316916758
screen: missing redraw/highlight for ruler in message area
2019-09-22 09:38:52 +02:00
erw7
028d76e5d5
env: use putenv_s for LC_ALL, LANG, etc. #11050
...
Problem: ":lang messages en_US.UTF-8" no longer overrides the language
detected from the environment (at startup).
Solution: In os_setenv, special-case "LC_ALL", "LANG", et al. to use
putenv_s instead of uv_os_setenv.
fixes #11045
2019-09-22 00:02:28 -07:00
Justin M. Keyes
1654932498
vim-patch:8.1.2060: "precedes" in 'listchars' not used properly
...
(Credit: Zach Wegner, https://github.com/neovim/neovim/pull/11034 )
Problem: "precedes" in 'listchars' not used properly.
Solution: Correctly handle the "precedes" char in list mode for long lines.
bffba7f704
2019-09-21 22:13:55 -07:00
Zach Wegner
18e5869f56
Fix "precedes" listchar behavior in wrap mode
...
Previously, the "precedes" character would be rendered on every row
when w_skipcol > 0 (i.e., when viewing a single line longer than the
entire screen), instead of just on the first row. Make sure to only
render it on the first row in this case.
Add a test for this behavior.
Fix documentation for the "precedes" character, which erroneously
stated that it was only active when wrap mode was off.
2019-09-21 22:09:52 -07:00
Daniel Hahler
ad0f97f412
vim-patch:8.1.2055: profile: adjust line format #11058
...
Problem: Not easy to jump to function line from profile.
Solution: Use "file:99" instead of "file line 99" so that "gf" works.
(Daniel Hahler, closes vim/vim#4951 )
181d4f58cc
2019-09-21 14:18:56 -07:00
Justin M. Keyes
fd82ce4a3a
Merge #11060 from janlazo/vim-8.1.1783
...
vim-patch:8.0.{1109,1529,1539,1621,1733,1771,1776},8.1.{1783,2054,2058}
2019-09-21 14:07:50 -07:00
Jan Edmund Lazo
b3e56957f8
vim-patch:8.1.0460: assert_fails() message argument #11051
...
Problem: assert_fails() does not take a message argument
Solution: Add the argument.
1307d1c003
2019-09-21 14:03:46 -07:00
Jan Edmund Lazo
111d34849a
vim-patch:8.0.1621: using invalid default value for highlight attribute
...
Problem: Using invalid default value for highlight attribute.
Solution: Use zero instead of -1.
6185903e3d
2019-09-21 11:07:59 -04:00
Jan Edmund Lazo
eb3888a322
vim-patch:8.0.1529: assert_equalfile() does not close file descriptors
...
Problem: Assert_equalfile() does not close file descriptors. (Coverity)
Solution: Close the file descriptors.
3049418f3d
2019-09-21 08:43:08 -04:00
Jan Edmund Lazo
2a7ffc6567
vim-patch:8.0.1776: in tests, when WaitFor() fails it doesn't say why
...
Problem: In tests, when WaitFor() fails it doesn't say why.
Solution: Turn a few more WaitFor() into WaitForAssert().
0e9d1ae321
2019-09-21 08:43:07 -04:00
Jan Edmund Lazo
3878b0822e
vim-patch:8.0.1771: in tests, when WaitFor() fails it doesn't say why
...
Problem: In tests, when WaitFor() fails it doesn't say why. (James McCoy)
Solution: Add WaitForAssert(), which produces an assert error when it fails.
50182fa84e
2019-09-21 08:43:07 -04:00
Jan Edmund Lazo
7cffc87868
vim-patch:8.0.1733: incomplete testing for completion fix
...
Problem: Incomplete testing for completion fix. (Lifepillar)
Solution: Add a test with CTRL-P.
bad0ce7b26
2019-09-21 08:43:07 -04:00
Jan Edmund Lazo
ca11662515
vim-patch:8.0.1539: no test for the popup menu positioning
...
Problem: No test for the popup menu positioning.
Solution: Add a screendump test for the popup menu.
6bb2cdfe60
2019-09-21 08:43:07 -04:00
Jan Edmund Lazo
b853b6e4ea
vim-patch:8.0.1109: timer causes error on exit from Ex mode
...
Problem: Timer causes error on exit from Ex mode. (xtal8)
Solution: save and restore the ex_pressedreturn flag. (Christian Brabandt,
closes vim/vim#2079 )
f5291f301e
2019-09-21 08:43:07 -04:00
Jan Edmund Lazo
42a0513095
vim-patch:8.1.2058: function for ex command is named inconsistently
...
Problem: Function for ex command is named inconsistently.
Solution: Rename do_marks() to ex_marks().
4bd782339e
2019-09-21 08:43:06 -04:00
Jan Edmund Lazo
1c71a3c657
vim-patch:8.1.2054: compiler test for Perl may fail
...
Problem: Compiler test for Perl may fail.
Solution: Accept any error line number. (James McCoy, closes vim/vim#4944 )
cebfcffa40
2019-09-21 08:43:06 -04:00
Jan Edmund Lazo
690cd4f012
vim-patch:8.1.1783: MS-Windows: compiler test may fail when using %:S
...
Problem: MS-Windows: compiler test may fail when using %:S.
Solution: Reset 'shellslash'.
dff2adc8dd
2019-09-21 08:43:06 -04:00
Björn Linse
828a6e7568
screen: fix vcol counting with virtual text. Fixes #9941
2019-09-21 09:39:10 +02:00
Daniel Hahler
1070c092c7
win_update: fix redraw regression ( #11027 )
...
Before 6e9ea5adc
`win_ins_lines` would return `FAIL` for `i/line_count == 0`.
Handle this by checking it in the outer `if`.
Ref: https://github.com/neovim/neovim/commit/6e9ea5ad#commitcomment-35084669
2019-09-18 18:22:38 +02:00
Jan Edmund Lazo
8db9e82e3e
vim-patch:8.0.1770: assert functions don't return anything
...
Problem: Assert functions don't return anything.
Solution: Return non-zero when the assertion fails.
65a5464985
2019-09-16 23:42:44 -04:00
Jan Edmund Lazo
792c290343
vim-patch:8.0.1523: cannot write and read terminal screendumps
...
Problem: Cannot write and read terminal screendumps.
Solution: Add term_dumpwrite(), term_dumpread() and term_dumpdiff().
Also add assert_equalfile().
d96ff16511
2019-09-16 21:36:46 -04:00
Björn Linse
45f23ef9d6
Merge pull request #11025 from bfredl/doublescroll
...
compositor: avoid transmitting invalid lines on double scroll
2019-09-15 16:53:43 +02:00