Björn Linse
61aea004d7
Merge pull request #13895 from bfredl/ar2
...
buffer updates: fix autoread but for real this time
2021-02-10 22:28:52 +01:00
Björn Linse
94622ca66b
buffer updates: add on_reload callback and handle it in treesitter parser
2021-02-10 18:58:46 +01:00
Björn Linse
fa5f583981
treesitter: propagate on_detach event properly
2021-02-10 18:57:49 +01:00
Björn Linse
230f2ff381
Merge pull request #13903 from glacambre/fix_prompt_for_number
...
Clear prompt_for_number messages
2021-02-10 18:51:33 +01:00
glacambre
dbf3c5d953
Clear prompt_for_number messages
...
This fixes issues in GUIs:
https://github.com/akiyosi/goneovim/issues/94
https://github.com/glacambre/firenvim/issues/448
2021-02-10 13:04:02 +01:00
notomo
971e0ca903
fix(notify): Expected 3 arguments error ( #13905 )
2021-02-09 11:41:02 +01:00
Jan Edmund Lazo
8becdec391
vim-patch:8.2.2259: Test_Executable() fails when using chroot ( #13907 )
...
Problem: Test_Executable() fails when using chroot.
Solution: Ignore the difference between "sbin" and "bin".
https://github.com/vim/vim/commit/a387083b2f65c2c14b19087c7d7f94ca23de1d48
Cherry-pick Test_Executable() changes from patches v8.1.1921, v8.2.1432
to be in sync with Vim.
N/A patches for version.c:
vim-patch:8.1.0509: checking cwd not accessible fails for root
Problem: Checking cwd not accessible fails for root. (James McCoy)
Solution: Skip this part of the test for root. (closes vim/vim#3595 )
https://github.com/vim/vim/commit/0b38f54730c3f9835ddade01c2263ce0f56c1c0f
vim-patch:8.2.2487: terminal shows garbage after double-wide character
Problem: Terminal shows garbage after double-wide character with a
combining character. (Kyoichiro Yamada)
Solution: Libvterm: do not add the width of the combining character to the
glyph width. (closes vim/vim#7801 )
https://github.com/vim/vim/commit/4549dad874244fe933b969e4ac0b41923ee70dc3
vim-patch:8.2.2488: json_encode() gives generic argument error
Problem: json_encode() gives generic argument error.
Solution: Mention the type that can't be encoded. (issue vim/vim#7802 )
https://github.com/vim/vim/commit/a853089479b60b829bab1c4a0a737a073415f8a7
2021-02-08 22:10:43 -05:00
Björn Linse
38ea2ce342
Merge pull request #13842 from vigoux/update-last-line
...
fix(buf_updates): send updates when putting past last line
2021-02-08 20:29:59 +01:00
Björn Linse
b2b47e4618
Merge pull request #13899 from chentau/set_text_fix
...
correctly mark changed regions for set_text
2021-02-08 19:08:43 +01:00
Thomas Vigouroux
3094bb4e38
fix(buf_updates): send updates when putting past last line
...
Fixes #13710
2021-02-08 19:08:42 +01:00
Matthieu Coudron
00423730b5
Merge pull request #13843 from teto/notif_provider
...
[RDY] Notification provider
2021-02-08 15:49:27 +01:00
Jan Edmund Lazo
02a3c41794
Merge pull request #13898 from janlazo/set_string_option_direct
...
Refactor option,var functions to use char for param type
2021-02-07 18:28:34 -05:00
Jan Edmund Lazo
d34846af74
option: use char* for get_option_value() param
...
'name' param is casted to char_u* within get_option_value().
Most calls to get_option_value() cast arg to 'name' from char to char_u.
Remove these pointless type casts.
2021-02-07 17:57:37 -05:00
Jan Edmund Lazo
b1df53e868
menu: use char* for set_context_in_menu_cmd() param
...
All calls to set_context_in_menu_cmd() cast "cmd" arg to char_u.
get_menu_cmd_nodes() doesn't require "cmd" to be unsigned char.
Use "char" type for "cmd" function param to reduce type casts.
2021-02-07 17:28:00 -05:00
Jan Edmund Lazo
0458b23d53
eval: use char* for set_var_lval() param
...
'op' param is casted to char_u* within set_val_lval().
Most calls to set_val_lval() cast arg to 'op' from char to char_u.
Remove these pointless type casts.
2021-02-07 17:27:59 -05:00
Jan Edmund Lazo
7484c7de9a
eval: use char* for set_internal_string_var()
...
"name" param was cast to (const char *).
All calls to set_internal_string_var() cast from (char *) to (char_u *).
Remove these useless casts.
2021-02-07 17:27:59 -05:00
Jan Edmund Lazo
f1fdeaf667
option: use char* for set_string_option_direct()
...
"name" param was cast to (const char *).
All calls to set_string_option_direct() cast 1st arg
from (char *) to (char_u *).
Remove these useless casts.
2021-02-07 17:27:59 -05:00
chentau
05605bfc05
correctly mark changed regions for set_text
2021-02-07 13:50:29 -08:00
Thomas Vigouroux
a7d9df996d
Merge pull request #13894 from stsewd/ts-small-fixes
...
treesitter: small fixes
2021-02-07 15:23:41 +01:00
Santos Gallegos
947f9a04d4
treesitter: small fixes
...
Mostly typos I found while reading the code.
2021-02-07 01:27:38 -05:00
Jan Edmund Lazo
b894fbcbe8
Merge pull request #13892 from janlazo/vim-8.1.2285
...
vim-patch:8.1.2285
2021-02-06 22:11:02 -05:00
Jan Edmund Lazo
f9c0af0180
eval: ll_range,ll_empty2 members are bool
2021-02-06 17:40:40 -05:00
Jan Edmund Lazo
bea99729dd
vim-patch:8.1.2285: padding in structures wastes memory
...
Problem: Padding in structures wastes memory.
Solution: Move fields to avoid padding. (Dominique Pelle, closes vim/vim#5202 )
https://github.com/vim/vim/commit/d6beab0248cdb0b7073e97d98d65de7138cb3386
Skip "ml_line_len" member of "struct memline".
Patch v8.1.0579 was not ported.
2021-02-06 17:30:47 -05:00
Jan Edmund Lazo
336eb70822
vim-patch:8.2.2469: confusing error if :winsize has a wrong argument ( #13889 )
...
Problem: Confusing error if :winsize has a wrong argument.
Solution: Quote the argument in the error. (closes vim/vim#2523 )
https://github.com/vim/vim/commit/f5a5116a96b1877c3f44e7bae288fd6603151eb1
Cherry-pick Test_winsize_cmd() from patch v8.2.0243.
2021-02-06 12:24:24 -05:00
James McCoy
e455f0ba2d
Merge pull request #13876 from jamessan/pty-term
...
fix(pty): Always use $TERM from the job's env dict
2021-02-06 09:06:34 -05:00
James McCoy
33f92fe025
fix(pty): Always use $TERM from the job's env dict
...
Before #12937 , the only way to specify the `$TERM` for a pty job was
through the `TERM` key in the job's opts dict. This was shuttled to the
child process throug a special field on the PtyProcess object and
injected into the environment after forking.
Now that we have a proper way to specify the environment for a job, we
can simply ensure that the env dict has a proper `TERM` set and avoid
the extra shuttling of data around.
This deprecates the use of the `TERM` option, but will still honor it if
present, although at a lower priority than a `TERM` present in the env
dict.
This also fixes #13874 because we're no longer trying to overwrite
`TERM` in the env dict with the special pty `term_name`. Doing so
raises an internal error because of the existing key which, under
certain circumstances, would cause the "hit enter" prompt. However,
since the child process had already forked, there was no way for the
user to acknowledge the prompt and we would just hang there.
2021-02-06 07:12:33 -05:00
James McCoy
f4f6cce952
Merge pull request #13888 from jamessan/win-ci
...
ci(gha/win): Do not rename python.exe to python3.exe if it exists
2021-02-06 07:10:58 -05:00
erw7
02a9663869
Merge pull request #13701 from erw7/fix-checkhealth
...
Fix checkhealth problems
2021-02-06 13:01:37 +09:00
erw7
957ac9442c
Merge pull request #13702 from erw7/fix-build_stl_str_hl
...
buffer.c: fix problem of memory allocation
2021-02-06 12:56:20 +09:00
erw7
787339892d
Merge pull request #12080 from erw7/feature-bracketed-paste-on-term
...
terminal: add bracketed pasting feature
2021-02-06 12:51:24 +09:00
James McCoy
8f24199490
ci(gha/win): Do not rename python.exe to python3.exe if it exists
...
GHA now provides python3.exe by default -- actions/python-versions#78
Ensure Python 2 directory is earlier in $PATH so bare python always
invokes Python 2.
2021-02-05 22:39:10 -05:00
Björn Linse
c95e797b83
Merge pull request #13878 from bfredl/incmark
...
inccommand: preserve extmarks when undoing preview substitution
2021-02-05 08:50:53 +01:00
Björn Linse
209fb35acd
tests: clean up lua/buffer_updates_spec.lua
2021-02-04 14:35:30 +01:00
Björn Linse
aa50369897
inccommand: preserve extmarks when undoing preview substitution
2021-02-04 14:33:37 +01:00
runiq
94cf7bba00
lsp: Fix pumvisible() check introduced in #12900 ( #13866 )
...
`pumvisible()` returns a number, and numbers are always `true` in Lua,
so the return value needs to be checked explicitly.
Using https://github.com/neovim/neovim/pull/12900 as context, it appears
the intention was to move into the `if` branch when the completion popup
is not shown (i.e. `vim.fn.pumvisible() == 0`).
2021-02-04 12:35:17 +01:00
erw7
4dc41c0516
Change default for tpf option
...
Change the default of tpf to the same value as the default of xterm's
disallowedPasteControls, because it may be a security risk.
2021-02-04 15:20:05 +09:00
erw7
1e3fadb419
Add termpastefilter option
...
Change to specify a character to be filtered as an option when pasting on
the terminal.
2021-02-04 15:20:05 +09:00
erw7
14158e8d47
Change to filter control characters when pasting a terminal window
...
Change to filter the following control characters in the same way as
xterm.
\x00-\x07, \x0b-\x0c, \x0e-\x1f
2021-02-04 15:20:05 +09:00
erw7
81a30f4367
Add support for bracketed paste mode in terminal windows
2021-02-04 15:20:05 +09:00
Jan Edmund Lazo
b96db38af1
Merge pull request #13865 from janlazo/vim-8.2.2437
...
vim-patch:8.2.{2437,2439,2442,2446,2447,2448,2457,2458,2462,2464}
2021-02-03 22:36:52 -05:00
Jan Edmund Lazo
4a1a86a2be
vim-patch.sh: remove unsupported files ( #13570 )
...
Add files listed in https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim#na-not-applicable-patches .
2021-02-03 18:53:27 -05:00
Jan Edmund Lazo
da3f9778af
vim-patch:8.2.2464: using freed memory if window closed in autocommand
...
Problem: Using freed memory if window closed in autocommand. (houyunsong)
Solution: Check the window still exists.
https://github.com/vim/vim/commit/8ab375706e6712308f8cf7529bcae56684a6f385
2021-02-03 18:46:53 -05:00
Jan Edmund Lazo
02cda35cf7
vim-patch:8.2.2462: Coverity warns for not checking for fseek() error
...
Problem: Coverity warns for not checking for fseek() error.
Solution: Give an error message if fseek() fails.
https://github.com/vim/vim/commit/2c363a2e95ee0b366e72063d093d20e025ef4a66
2021-02-03 18:37:32 -05:00
Jan Edmund Lazo
8d3baf0791
vim-patch:8.2.2458: Coverity warns for :retab using freed memory
...
Problem: Coverity warns for :retab using freed memory.
Solution: Use the updated line pointer when moving text properties.
https://github.com/vim/vim/commit/0dcd39bad5e5aa70ba8f60cb3fbf0658585f0151
N/A patches for version.c:
vim-patch:8.2.2457: Coverity warns for memory leak
Problem: Coverity warns for memory leak.
Solution: Free memory when out of memory.
https://github.com/vim/vim/commit/4dba04256b8a49b201d685217d3d7abc4988f090
2021-02-03 18:33:52 -05:00
Matthieu Coudron
a90a43796a
test: test vim-notify
2021-02-02 15:40:08 +01:00
Matthieu Coudron
bb22c78044
api: add nvim_notify
...
parameters are mandatory
2021-02-02 15:40:08 +01:00
Jan Edmund Lazo
65e51fca0e
vim-patch:8.2.2447: 'foldlevel' not applied to folds restored from session
...
Problem: 'foldlevel' not applied to folds restored from session.
Solution: Set 'foldlevel' after creaiting the folds. (closes vim/vim#7767 )
https://github.com/vim/vim/commit/f9547eb6ef02e305203b859d2dcfdae930b9d544
2021-02-01 21:42:26 -05:00
Jan Edmund Lazo
2a6580a8e2
vim-patch:8.2.2446: setting 'term' empty has different error if compiled with GUI
...
Problem: Setting 'term' empty has different error if compiled with GUI.
Solution: Insert "else". (closes vim/vim#7766 )
https://github.com/vim/vim/commit/5daa91162699e4f8b54f9d1caaaab2715038941c
N/A patches for version.c:
vim-patch:8.2.2437: deprecation warnings with default configuration
Problem: Deprecation warnings with default configuration.
Solution: Add -Wno-deprecated-declarations.
https://github.com/vim/vim/commit/4d8479b335e92a95b09fdee09309ea0df934cb9e
vim-patch:8.2.2439: not easy to figure out what packages to get
Problem: Not easy to figure out what packages to get when installing Vim on
a new Ubuntu system.
Solution: Mention explicit commands that are easy to follow.
https://github.com/vim/vim/commit/3d2bb8b6f152c0c5056f49bccb350683a9ba2e13
vim-patch:8.2.2442: automatic GUI selection does not check for GTK 3
Problem: Automatic GUI selection does not check for GTK 3.
Solution: Make SKIP_GTK3 empty for automatic GUI support. Set SKIP_GTK3 to
YES when checking for GTK2.
https://github.com/vim/vim/commit/f272ae12ac064856b710046393d5bf9b1670076d
vim-patch:8.2.2448: compilation error with Ruby 3.0
Problem: Compilation error with Ruby 3.0.
Solution: Adjust #ifdefs and declaration. (Ken Takata, closes vim/vim#7761 )
https://github.com/vim/vim/commit/9d20daffc296b9eb901fb14bdd83620ea55d440a
2021-02-01 21:34:12 -05:00
Volodymyr Kot
cc1851c9fd
Add clangd cache to ignore ( #13856 )
...
While standard library is cached to a user's directory such as
$XDG_CACHE_HOME, directory-specific clangd indexes are stored to .cache
subdirectory.
https://github.com/llvm/clangd-www/blob/main/design/indexing.md#backgroundindex
2021-01-31 23:03:35 -05:00
James McCoy
e85c8dff69
Merge pull request #12937 from jamessan/term-env
2021-01-31 13:25:16 -05:00