chentau
5a36d413fb
flush curbuf->deleted_bytes2 after calling do_move
2021-04-14 21:47:21 -07:00
Raymond W. Ko
e915ec47f3
tests/functional: delete temp file created during test run ( #14363 )
2021-04-14 20:42:34 -04:00
Björn Linse
3b01e37d09
Merge pull request #14358 from bfredl/decodeco
...
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-15 01:12:36 +02:00
Mathias Fussenegger
046991e4d5
lsp: Remove vim.NIL handling from apply_text_document_edit
...
The rpc layer normalizes `vim.NIL` to `nil`, so the scenario tested
should never happen.
2021-04-14 21:42:03 +02:00
Mathias Fussenegger
b67f689e4c
lsp: Accept text document edits with version zero
...
There were a couple of reports of "Buffer X newer than edits" problems.
We first assumed that it is incorrect for a server to send 0 as a
version - and stated that they should send a `null` instead, given that
in the specification the `textDocument` of a `TextDocumentEdit` is a
`OptionalVersionedTextDocumentIdentifier`.
But it turns out that this was a change in 3.16, and in 3.15 and earlier
versions of the specification it was a `VersionedTextDocumentIdentifier`
and language servers didn't have a better option than sending `0` if
they don't keep track of the version numbers.
So this changes the version check to always accept `0` values.
See
- https://github.com/neovim/neovim/issues/12970
- https://github.com/neovim/neovim/issues/14256
- https://github.com/haskell/haskell-language-server/pull/1727
2021-04-14 21:29:32 +02:00
Björn Linse
7b488314d0
decoration: Clean up duplicate Decoration attributes + bonus hl_eol flag
2021-04-14 13:04:33 +02:00
Thomas Vigouroux
e652b2987a
Merge pull request #14046 from nvim-treesitter/feature/language-tree-directive-config
...
feat(treesitter): allow injections to be configured through directives
2021-04-14 05:36:05 +02:00
Björn Linse
c9817603cf
Merge pull request #14318 from chentau/extmark_luado
...
extmark: splice extmarks on :luado
2021-04-13 15:00:42 +02:00
Marco Hinz
4a36ec6da0
float: add "solid" border style ( #14310 )
...
It looks solid with the default `FloatBorder` group.
If you set the bgcolor of FloatBorder to the same color as for FloatNormal, you
effectively get an "1-cell padding".
2021-04-12 20:51:05 +02:00
chentau
ff43d9597e
extmark: splice extmarks on :luado
2021-04-12 11:33:50 -07:00
Jan Edmund Lazo
062c64e24c
test/ui/cmdline: set notimeout to remove indeterminism ( #14338 )
2021-04-10 12:36:54 -04:00
Björn Linse
6435b46b48
Merge pull request #14317 from chentau/extmark_sub
...
extmark: correct extmark_splice call with substitute and inccommand when replacing with escaped backslashes
2021-04-10 18:14:42 +02:00
chentau
343ee2d254
extmark: correct extmark_splice call with inccommand
2021-04-09 00:34:02 -07:00
Jan Edmund Lazo
0d0eeff8a3
eval: add v:_null_string
...
Replacement for Vim's test_null_string().
Vim uses it to verify that its codebase handles null strings.
Preparation for the Test_null_list() in patch v8.2.1822.
Use v:_null_string, not non-existent env var, for null string tests.
Mention v:_null_string in id() because id(v:_null_string) returns (nil).
2021-04-08 22:36:20 -04:00
Marco Hinz
cd75d3289a
Merge pull request #14200 from teto/treesitter-checkhealth
...
feat: treesitter checkhealth
2021-04-07 16:40:56 +02:00
Thomas Vigouroux
e8bc3d717e
feat(ts): include parser ABI version in checkhealth
2021-04-06 19:02:58 +02:00
Björn Linse
9b2d4ff625
Merge pull request #14227 from bfredl/bordaa3
...
Border: allow to enable/disable specific border edges
2021-04-05 00:21:51 +02:00
Björn Linse
160c9fd126
Merge pull request #14199 from bfredl/chansend2
...
api: fix use-after-free in nvim_chan_send
2021-04-04 22:41:01 +02:00
Ghjuvan Lacambre
0f187700ab
vim-patch:8.2.0295: highlighting for :s wrong when using different separator ( #14286 )
...
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes vim/vim#5665 )
c036e87bd7
2021-04-04 14:43:22 -04:00
Björn Linse
a4d3804837
Border: allow to enable/disable specific border edges
2021-04-04 18:32:31 +02:00
Björn Linse
3d6831a30a
api: fix use-after-free in nvim_chan_send
2021-04-04 18:11:48 +02:00
Björn Linse
ce976bf355
Merge pull request #14278 from chentau/extmark_retab
...
extmark: buffer update fixes for `noexpandtab` and `:retab`
2021-04-04 09:42:34 +02:00
erw7
8e496b9dfd
Merge pull request #14268 from erw7/fix-p_ch-problem
...
screen: fix problem with p_ch
2021-04-04 12:04:36 +09:00
Björn Linse
2df527e1ff
test/lsp: disable tracking in LSP tests (here be dragons)
2021-04-03 16:27:58 +02:00
erw7
581b2bcde0
screen: fix problem with p_ch
...
When the screen is resized, p_ch is not re-set to the appropriate value.
As a result, access to invalid addresses was occurring.
2021-04-03 15:27:46 +09:00
shadmansaleh
f4224a12c0
Fix lualint warnings
2021-04-03 10:18:40 +06:00
shadmansaleh
7a6228d581
Add tests for nvim_set_hl()
2021-04-03 09:18:53 +06:00
chentau
7602c56050
extmark: fixes for noexpandtab and retab
2021-04-02 16:21:46 -07:00
Björn Linse
6db3ba9df2
Merge pull request #14027 from dylanarmstrong/fix/13955-empty-paste-in-term-segfault
...
fix: segfault when pasting in term with empty buffer
2021-04-02 23:15:43 +02:00
Steven Sojka
8bea39f372
feat(treesitter): allow injections to be configured through directives
2021-04-02 12:48:16 -05:00
Jan Edmund Lazo
7959aaf781
vim-patch:8.2.2686: status line is not updated when going to cmdline mode
...
Problem: Status line is not updated when going to cmdline mode.
Solution: Redraw status lines if 'statusline' is set and going to status
line mode. (based on patch from Justin M. Keyes et al.,
closes vim/vim#8044 )
ce0b75711a
2021-04-01 15:05:10 -04:00
Jan Edmund Lazo
a177820420
Merge pull request #14259 from janlazo/fix-dictwatcherdel-crash
...
Fix dictwatcherdel crash
2021-03-31 19:22:11 -04:00
TJ DeVries
d50f99f08b
fixup: remove unused test function
2021-03-31 18:09:03 +02:00
TJ DeVries
06c065469b
ts: Add per-language highlight links
2021-03-31 18:09:00 +02:00
Daniel Hahler
1c5e347b8c
more tests
2021-03-30 21:55:51 -04:00
Daniel Hahler
aca002e7d5
test
2021-03-30 21:55:51 -04:00
Daniel Hahler
4c76b1e981
Test and initial fix for crash with dictwatcherdel
...
Fixes https://github.com/neovim/neovim/issues/11188 .
2021-03-30 21:55:50 -04:00
TJ DeVries
d6209a7b84
fixup: Add a test and it is so pretty
2021-03-30 10:57:38 -04:00
Tony Chen
aa6adacd77
Make sure window is still valid in the middle of calling :lopen ( #14240 )
...
Make sure that oldwin is not invalid after splitting
Revisit this when porting vim patch v8.1.0892 and related quickfix patches.
2021-03-29 08:19:59 -04:00
Jan Edmund Lazo
63c2a7af2d
Merge pull request #13851 from VVKot/vim-8.1.0105
...
vim-patch:8.1.{0105,0114,0116,0126,0138,0154,0479,0542,0936}
2021-03-28 13:40:34 -04:00
Björn Linse
6d4a922e07
Merge pull request #14091 from euclidianAce/euclidianAce/nvim_win_hide
...
api: add vim.api.nvim_win_hide
2021-03-28 19:07:56 +02:00
VVKot
6752ac4968
vim-patch:8.1.0105: all tab stops are the same
...
Problem: All tab stops are the same.
Solution: Add the variable tabstop feature. (Christian Brabandt,
closes vim/vim#2711 )
04958cbaf2
2021-03-28 08:37:01 +01:00
Björn Linse
3000f6c56b
floats: handle interaction with popupmenu and border correctly
2021-03-25 09:06:09 +01:00
Björn Linse
1186f7dd96
Merge pull request #14191 from chentau/extmark_blockpaste
...
Extmarks: send correct buffer events on blockwise paste for nonuniform lines
2021-03-24 00:27:55 +01:00
chentau
7fbabbaa57
Extmarks: correct buffer events on blockwise paste
2021-03-23 14:06:57 -07:00
Björn Linse
ed20089877
Merge pull request #14194 from bfredl/provide_virt
...
memory error with ephemeral virt_text
2021-03-23 15:54:09 +01:00
Matthieu Coudron
a1a0bc618f
Merge pull request #14190 from teto/fix-cursorlinenr
...
fix CursorLineNr with diff
2021-03-23 14:01:57 +01:00
Björn Linse
06c191848b
decorations: memory error with ephemeral virt_text
2021-03-23 13:58:18 +01:00
Björn Linse
3e5efa50b6
Merge pull request #14193 from bfredl/msginit
...
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 10:46:29 +01:00
Björn Linse
80e122ae5d
screen: setup scrolling main screen when starting with display-=msgsep
2021-03-23 09:34:36 +01:00