Matthieu Coudron
42b441738d
Merge pull request #12204 from archseer/lsp-user-data
...
lsp/completion: Expose completion_item under completed_items.user_data + vim-patch:8.2.0084
2020-04-30 15:25:15 +02:00
Blaž Hrastnik
c477b19bdc
vim-patch:8.2.0084: complete item "user_data" can only be a string
...
Problem: Complete item "user_data" can only be a string.
Solution: Accept any type of variable. (closes vim/vim#5412 )
0892832bb6
2020-04-29 11:15:49 +09:00
Hirokazu Hata
4e6531ddbd
lsp: use vim.tbl_isempty to check sign ( #12190 )
...
ref: #12164
fix #12201
sign_getdefined() returns a list, {} if the sign is not defined.
2020-04-28 07:41:39 -07:00
erw7
9d0222ee3e
tui: Fix italics when $TERM is screen in tmux #12199
...
Tmux uses smso to display italics when the default-terminal is screen,
screen-*. That's not the display the user wants, so change it to do the
same display as before f3ffe0b32
.
fixes #12193 .
2020-04-28 07:14:28 -07:00
Yatao Li
e34684b2ad
api/ui: simplify popup menu position get/set logic; fix test
2020-04-28 01:54:16 +08:00
Yatao Li
d372c804aa
api/ui: allow set bounds row and col to be less than 0; ui_pum_get_pos: return first extui bounds information instead of reducing
2020-04-28 01:52:01 +08:00
Yatao Li
ed6230434b
gen_api_dispatch.lua: allow msgpack int for Float args; test: add ui_pum_set_bounds and tv_dict_add_float tests
2020-04-28 01:53:43 +08:00
Yatao Li
6da16ac931
external pum: use floating point geometry; typval: add tv_dict_add_float
2020-04-28 01:53:05 +08:00
Yatao Li
9c85caa390
ui_pum_get_pos: return internal pum position if external pum pos not found
2020-04-28 01:52:01 +08:00
Yatao Li
630ec6cfb8
API/UI: Allow UI to set PUM position and size, and pass the position to CompleteChanged
2020-04-28 01:52:02 +08:00
Matthieu Coudron
d90a92bcd3
Merge pull request #12018 from janlazo/vim-8.0.1123
...
[RFC]vim-patch:8.0.{1123,1125,1138,1139,1142,1292,1334,1375},8.1.1264
2020-04-27 13:53:41 +02:00
Justin M. Keyes
fc98f2d581
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-27 01:45:30 -04:00
Justin M. Keyes
34ad1ea366
Merge #12155 ':ls filter by terminal, lastused'
2020-04-26 23:57:37 -04:00
Justin M. Keyes
6b050a145d
Merge #11851 'eval.c: factor out eval/userfunc.c'
...
vim-patch:7.4.2058
2020-04-26 20:01:58 -07:00
Jan Edmund Lazo
fcd9ce3901
vim-patch:8.0.1375: window size wrong after maximizing with WinBar
...
Problem: Window size wrong after maximizing with WinBar. (Lifepillar)
Solution: Fix height computations. Redraw window when it is zero height but
has a WinBar. (closes vim/vim#2356 )
415a6939a4
2020-04-26 21:28:48 -04:00
Jan Edmund Lazo
94e7f30dbb
vim-patch:8.1.1264: crash when closing window from WinBar click
...
Problem: Crash when closing window from WinBar click. (Ben Jackson)
Solution: Check that window pointer is still valid. (closes vim/vim#4337 )
d2fad67e3e
2020-04-26 19:20:20 -04:00
Jan Edmund Lazo
5b3ec39df3
vim-patch:8.0.1139: using window toolbar changes state
...
Problem: Using window toolbar changes state.
Solution: Always execute window toolbar actions in Normal mode.
a21a6a9ade
2020-04-26 19:17:17 -04:00
Jan Edmund Lazo
86d0f67c29
vim-patch:8.0.1334: splitting a window with a WinBar damages window layout
...
Problem: Splitting a window with a WinBar damages window layout.
(Lifepillar)
Solution: Take the winbar into account when computing the new window
position. Add WINBAR_HEIGHT().
3167c3e701
2020-04-26 19:17:16 -04:00
Jan Edmund Lazo
05f58a2858
vim-patch:8.0.1292: quick clicks in the WinBar start Visual mode
...
Problem: Quick clicks in the WinBar start Visual mode.
Solution: Use a double click in the WinBar like a normal click.
d327b0c68f
2020-04-26 19:17:16 -04:00
Jan Edmund Lazo
355dffdd76
vim-patch:8.0.1138: click in window toolbar starts Visual mode
...
Problem: Click in window toolbar starts Visual mode.
Solution: Add the MOUSE_WINBAR flag.
eb163d73b1
2020-04-26 19:17:16 -04:00
Jan Edmund Lazo
7d028f0765
vim-patch:8.0.1142: window toolbar menu gets a tear-off item
...
Problem: Window toolbar menu gets a tear-off item.
Solution: Recognize the window toolbar.
378daf87d3
2020-04-26 19:17:16 -04:00
Jan Edmund Lazo
9758f5e508
vim-patch:8.0.1125: wrong window height when splitting window with window toolbar
...
Problem: Wrong window height when splitting window with window toolbar.
Solution: Add or subtract the window toolbar height.
d326ad6e93
2020-04-26 19:17:16 -04:00
Jan Edmund Lazo
64b61d49c2
vim-patch:8.0.1123: cannot define a toolbar for a window
...
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
1b9645de3c
"WinBar" code in "screen.c" was not ported.
Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
2020-04-26 19:17:16 -04:00
Billy SU
05a07ff7af
lint: use docstring style #12187
2020-04-26 09:52:39 -07:00
erw7
f3ffe0b325
tui: improve support for GNU Screen ( #12098 )
...
Wrapping it in DCS allows the following features to work with GNU
Screen.
- Changing the cursor style.
- bracketed paste.
- focus reporting.
2020-04-26 15:15:47 +02:00
Justin M. Keyes
3de9452abf
Merge #12177 'folds: decrease reliance on globals'
2020-04-26 02:52:39 -04:00
Kei Kamikawa
c5217c67df
TUI: block signals on suspend #12180
...
fix #8075
2020-04-25 18:22:40 -07:00
Jan Edmund Lazo
229a836d9b
vim-patch:8.2.0638: MS-Windows: messages test fails
...
Problem: MS-Windows: messages test fails.
Solution: Clear environment variables.
47a1a8baf9
2020-04-25 16:05:18 -04:00
Jan Edmund Lazo
2bf4e824d4
vim-patch:8.2.0635: when using 256 colors DarkYellow does not show expected color
...
Problem: When using 256 colors DarkYellow does not show expected color.
Solution: Use color 3 instead of 130. (Romain Lafourcade, closes vim/vim#5985 )
e93c968f52
2020-04-25 15:56:26 -04:00
Marvim the Paranoid Android
c9f4cac3c9
version.c: update [ci skip] ( #12084 )
2020-04-24 23:33:15 +02:00
Matthieu Coudron
4d8b66e497
helpers: fix FIXED_TEMP_ARRAY
...
...was using wrong macro argument.
2020-04-24 20:33:14 +02:00
Matthieu Coudron
6da348f220
lint: fix linting issues
2020-04-24 20:33:11 +02:00
Matthieu Coudron
7d2879694e
extmark: introduce extmark_splice_cols
...
to ease up notations.
2020-04-24 20:32:20 +02:00
Matthieu Coudron
d20142a31f
folds: decrease reliance on global 'curwin'
...
TODO in a future commit:
- remains 2 instances of changed_lines that dont take into account
buffer
2020-04-24 20:28:44 +02:00
Thomas Vigouroux
6c9a5743a0
treesitter: check for integer overflow ( #12135 )
...
Sometimes treesitter calls for an invalid column within a line, checking
that the column is actually valid and forcing the value avoids an
integer overflow and an infinite sequence of invalid reads.
Fixes #12131
2020-04-22 18:54:56 +02:00
Rob Pilling
978a6bcaf2
vim-patch:8.1.2225: the "last used" info of a buffer is under used
...
Problem: The "last used" info of a buffer is under used.
Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used
field. (Andi Massimino, closes vim/vim#4722 )
52410575be
2020-04-21 21:40:22 +01:00
erw7
6854680579
terminal: Fix mouse coordinates issue ( #12158 )
...
Offsets of window were not taken into account when sending mouse
coordinates to the terminal. Therefore, when nu or rnu is set, the mouse
coordinates sent to the terminal were not correct. Change it to send the
correct coordinates by subtract window offset from col.
2020-04-21 15:44:39 +02:00
Matěj Cepl
e8dd2c986c
Test on actual libuv version number, not on existence of symbol.
...
uv_stream_get_write_queue_size isn't a define, it's a
function. It seems like this would always be shadowing the
actual function name.
2020-04-21 11:03:13 +02:00
Matěj Cepl
770a0ac2df
Make neovim building even with libuv 1.18.0
...
(found for example on openSUSE/Leap 15.*)
2020-04-21 10:14:07 +02:00
erw7
8745247cba
tui: Don't call uv_write without output ( #12146 )
...
Fixes #11653 , #11990 . Check for cursor visibility to toggle uv_write call.
2020-04-20 14:50:44 +02:00
Rob Pilling
9d59f066cb
vim-patch:8.0.1651: cannot filter :ls output for terminal buffers
...
Problem: Cannot filter :ls output for terminal buffers.
Solution: Add flags for terminal buffers. (Marcin Szamotulski, closes vim/vim#2751 )
0751f51a5b
2020-04-19 20:18:41 +01:00
Rob Pilling
ec2d45a851
vim-patch:7.4.1988
...
Problem: When updating viminfo with file marks there is no time order.
Solution: Remember the time when a buffer was last used, store marks for
the most recently used buffers.
ab9c89b68d
As this is a viminfo fix, most of this is irrelevant - the patch has
just been brought across for the creation and updating of buffer's
`b_last_used` properties.
2020-04-19 20:18:41 +01:00
Matthieu Coudron
ca02db1f9f
Merge pull request #12047 from erw7/fix-resolve-on-windows
...
Change resolve() to resolve symbolic links on Windows
Neovim worked the same way as vim for shortcuts, but didn't handle symbolic links and junction cases. This PR implements the same behavior for symbolic links and junctions as for vim.
2020-04-19 14:11:01 +02:00
Matthieu Coudron
9ac5bc4b0b
Merge pull request #12141 from vigoux/treesitter_fix
...
[RFC] Update treesitter runtime
Get rid of our utf8proc dependency
Note that we unconditionnally escape treesitter queries, might need to be revisited.
2020-04-18 16:05:16 +02:00
Thomas Vigouroux
e10f9151dc
treesitter: remove utf8proc dependency
2020-04-18 09:21:03 +02:00
Thomas Vigouroux
727040c953
treesitter: update vendor code
...
Update treesitter vendor code to commit
35f82ce301951315e08de3b7e44a18c9170b28b8
2020-04-18 09:19:21 +02:00
Jan Edmund Lazo
b3d669b40b
vim-patch:8.2.0589: .bsd file type not recognized
...
Problem: .bsd file type not recognized.
Solution: Recognize .bsd as BSDL. (Daniel Kho, closes vim/vim#5945 )
0fc1288aef
2020-04-17 21:14:26 -04:00
Jan Edmund Lazo
6f7141dd76
vim-patch:8.2.0584: viminfo file uses obsolete function file_readable()
...
Problem: Viminfo file uses obsolete function file_readable().
Solution: Use filereadable(). (closes vim/vim#5934 )
c5f33db888
2020-04-17 19:04:23 -04:00
Matthieu Coudron
fb4c7a53cf
folds: decrease reliance on global "curwin" ( #12132 )
...
Pass the window in which to create/delete folds instead of using the
global "curwin" (current window).
Preliminary work for a fold API.
TODO: I kept changed_lines prototype unchanged. This should be updated
when a fold API sees the light.
2020-04-16 21:29:04 +02:00
James McCoy
e11e93d139
Merge pull request #12005 from erw7/fix-screen-vsplit
...
Closes #11998
2020-04-15 08:06:59 -04:00