Björn Linse
f901149de4
state: throttle batched event processing when input is available
...
before, calling vim.schedule() from inside an event would execute
the scheduled callback immediately after this event without
checking for user input in between. Break event processing
whenever user input or an interrupt is available.
2021-03-08 16:08:58 +01:00
Jan Edmund Lazo
c12ea02e0b
Merge pull request #14070 from janlazo/vim-8.2.2564
...
vim-patch:8.1.1016,8.2.{890,1513,1805,2345,2564}
2021-03-07 15:56:23 -05:00
erw7
667e3bfb6e
Merge pull request #13004 from jgehrig/jg-neovim-qt-runtime
...
fix Windows missing QtSVG DLL
2021-03-07 20:05:05 +09:00
Jan Edmund Lazo
8996a12d82
vim-patch:8.2.1513: cannot interrupt shell used for filename expansion
...
Problem: Cannot interrupt shell used for filename expansion. (Dominique
Pellé)
Solution: Do set tmode in mch_delay(). (closes vim/vim#6770 )
https://github.com/vim/vim/commit/0981c8729e09551f2e8e6c159bc29f2c1d04019c
Neovim does not run settmode() in os_delay() so this patch is mostly N/A.
Do not port Vim's flags (ie. MCH_DELAY_SETTMODE) for mch_delay().
2021-03-06 22:11:42 -05:00
Jan Edmund Lazo
f135e511c0
vim-patch:8.1.1016: MS-Windows: No color in shell when using "!" in 'guioptions
...
Problem: MS-Windows: No color in shell when using "!" in 'guioptions.
Solution: Don't stop termcap when using a terminal window for the shell.
(vim-jp, closes vim/vim#4117 )
https://github.com/vim/vim/commit/049ca59236d5a981f23cf5dfe40f54536fe7cad2
N/A patches for version.c:
vim-patch:8.2.0890: no color in terminal window when 'termguicolor' is set
Problem: No color in terminal window when 'termguicolor' is set.
Solution: Clear the underline color. (closes vim/vim#6186 )
https://github.com/vim/vim/commit/1e5f8f6d65b2ecff3d93d9fdbdd17c7a2ab9cc3d
vim-patch:8.2.1805: Unix: terminal mode changed when using ":shell"
Problem: Unix: terminal mode changed when using ":shell".
Solution: Avoid calling settmode() when not needed. (issue vim/vim#7079 )
https://github.com/vim/vim/commit/80361a5f2b134c88597d60b3d363b52084e712a1
vim-patch:8.2.2345: no focus events in a terminal
Problem: No focus events in a terminal.
Solution: Add the t_fd and t_fe termcap entries and implement detecting
focus events. (Hayaki Saito, Magnus Groß, closes vim/vim#7673 ,
closes vim/vim#609 , closes vim/vim#5526 )
https://github.com/vim/vim/commit/681fc3fa782e99fe69ed2c83c3e29109d2d61e1a
vim-patch:8.2.2564: focus events end Insert mode if 'esckeys' is not set
Problem: Focus events end Insert mode if 'esckeys' is not set.
Solution: Do not enable focus events when 'esckeys' is off. (closes vim/vim#7926 )
https://github.com/vim/vim/commit/51b477f74f0de11f6f92a65590f358e04a60a099
2021-03-06 22:03:29 -05:00
Björn Linse
b3dd856f2b
Merge pull request #14052 from phaazon/fix/typo
...
Fix a typo in the Lua documentation for nvim_add_highlight().
2021-03-06 13:21:44 +01:00
Lee Wannacott
d8dff33e4b
Added If true to show that {after} and {follow} parameters of nvim_put() are expecting boolean values
2021-03-07 00:54:13 +13:00
tk-shirasaka
f2fc44d50b
[RDY] Fix click on foldcolumn if it has tabline ( #13982 )
...
* Fix click on foldcolumn if it has tabline
* Fixes to correctly determine if tablie was clicked when multigrid is enabled
* Separate foldcolumn checks into functions
* Add test case for click on foldcolumn with split window
* Fix foldcolumn click used nvim_input() on multigrid enabled
2021-03-04 13:54:22 +01:00
Dimitri Sabadie
d7008418b7
Fix a typo in the Lua documentation for nvim_create_namespace().
2021-03-04 13:48:13 +01:00
Björn Linse
6995fad260
Merge pull request #13973 from chentau/on_bytes_undofile
...
New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be ) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them.
This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
2021-03-03 09:45:06 +01:00
Jan Edmund Lazo
1edc0285c4
vim-patch:8.2.1043: %a item in 'statusline' not tested
...
Problem: %a item in 'statusline' not tested.
Solution: Add a test. (Dominique Pellé, closes vim/vim#6318 )
https://github.com/vim/vim/commit/4014e2ceb03b8aeb947a0c671a099b677c8f2d5d
Do not run test_statusline.vim in test_alot.vim
because test_statusline.vim runs separately in Vim since patch v8.2.0164.
2021-03-02 18:19:14 -05:00
chentau
f42e932df4
Extmarks: Save extmark undo information to undofile.
2021-03-02 12:45:54 -08:00
Jan Edmund Lazo
f32acc70e8
vim-patch:8.2.2236: 'scroll' option can change when setting the statusline
...
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes vim/vim#7533 )
https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
2021-03-02 00:35:52 -05:00
Jan Edmund Lazo
a5bacdbfb4
vim-patch:8.1.1901: the +insert_expand feature is not always available
...
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
2021-03-01 23:41:10 -05:00
Jan Edmund Lazo
e50875b3e3
vim-patch:8.2.2560: setting 'winminheigt' does not take tabline into account
...
Problem: Setting 'winminheigt' does not take tabline into account.
Solution: Subtract the tabline from the available height. (closes vim/vim#7899 )
https://github.com/vim/vim/commit/39d4cab494248131b6fb07aba633aa4da7871a57
N/A patches for version.c:
vim-patch:8.1.0680: not easy to see what features are unavailable
Problem: Not easy to see what features are unavailable.
Solution: Highlight disabled features in the :version output. (Nazri Ramliy,
closes vim/vim#3756 )
https://github.com/vim/vim/commit/c85ffc9daba6f66d5958ae80249d26f7f81bfced
vim-patch:8.2.2196: :version output has extra spaces in compile and link command
Problem: :version output has extra spaces in compile and link command.
Solution: Adjust QUOTESED. (closes vim/vim#7505 )
https://github.com/vim/vim/commit/abcbb0e9ad43fc25077e1681528e72ddcbeed300
vim-patch:8.2.2551: MS-Windows: colors test file is not installed
Problem: MS-Windows: colors test file is not installed.
Solution: Also copy runtime/colors/tools. (Ken Takata, closes vim/vim#7902 )
https://github.com/vim/vim/commit/d0bce504ec52def729fffa35c8896979af348d32
vim-patch:8.2.2559: MS-Windows: guifont test fails on Windows XP
Problem: MS-Windows: guifont test fails on Windows XP.
Solution: Check windowsversion().
https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a
2021-03-01 23:40:39 -05:00
Jan Edmund Lazo
a2b6e5ed4e
Merge pull request #14004 from erw7/fix-fic
...
option: fix problem with fileignorecase not being set properly
2021-02-25 12:45:53 -05:00
erw7
34d12e7dd7
path.c: fix path_fnamencmp
...
Fix the problem that the last comparison of strings when p_fic is true was
not ignore case.
2021-02-25 13:50:31 +09:00
erw7
6deabca3e7
eval: add fname_case to feature list
2021-02-25 13:50:31 +09:00
Jan Edmund Lazo
ab5083b5fc
pos: define MAXCOL to INT_MAX
...
Partial port of patch v8.1.0953.
Remove useless casts on MAXCOL.
2021-02-23 23:00:06 -05:00
Jan Edmund Lazo
ceed85ea43
vim-patch:8.2.2548: May get stuck in the cmdline window using :normal
...
Problem: May get stuck in the cmdline window using :normal.
Solution: Have nv_esc() return K_IGNORE.
https://github.com/vim/vim/commit/7d41410a455ba62128655beb91c35d3fba299287
2021-02-23 20:27:04 -05:00
Jan Edmund Lazo
9b5e3ba32d
vim-patch:8.2.2547: "%" command not accurate for big files
...
Problem: "%" command not accurate for big files.
Solution: Make it more accurate for files up to 21M lines. (Dominique Pellé,
closes vim/vim#7889 )
https://github.com/vim/vim/commit/2c6553498e790604f50016d8435403523a2576d6
N/A patches for version.c:
vim-patch:8.2.2545: errors and crash when terminal window is zero height
Problem: Errors and crash when terminal window is zero height. (Leonid V.
Fedorenchik)
Solution: Do not resize when width or height is zero. (closes vim/vim#7890 )
https://github.com/vim/vim/commit/eba13e4ea28f133ff65f6b426428f49a9bd711b0
2021-02-23 20:24:41 -05:00
kuuote
0450e155d4
vim-patch:8.2.2233: cannot convert a byte index into a character index ( #13978 )
...
Problem: Cannot convert a byte index into a character index.
Solution: Add charidx(). (Yegappan Lakshmanan, closes vim/vim#7561 )
https://github.com/vim/vim/commit/17793ef23aae0bc94539390ccfe5e63b0ad39ff2
2021-02-22 20:13:14 -05:00
Jan Edmund Lazo
fb2adadc9e
Merge pull request #13988 from janlazo/vim-8.1.1310
...
vim-patch:8.1.1310: named function arguments are never optional
2021-02-22 15:04:16 -05:00
erw7
bca19138bf
tui: fix possibility of evaluating uninitialized variables ( #13987 )
2021-02-22 16:55:28 +01:00
Jan Edmund Lazo
77bae79c07
fixup! vim-patch:8.1.1310: named function arguments are never optional
2021-02-22 09:27:49 -05:00
erw7
66b0ab0883
vim-patch:8.1.1310: named function arguments are never optional
...
Problem: Named function arguments are never optional.
Solution: Support optional function arguments with a default value. (Andy
Massimino, closes vim/vim#3952 )
https://github.com/vim/vim/commit/42ae78cfff171fbd7412306083fe200245d7a7a6
2021-02-22 09:16:41 -05:00
Björn Linse
7bcac75f30
Merge pull request #13952 from bfredl/overlay
...
decorations: allow virt_text overlay at any column
2021-02-22 10:17:44 +01:00
Björn Linse
4781333a7a
decorations: allow virt_text overlay at any column
2021-02-22 09:40:06 +01:00
Jan Edmund Lazo
595f6e4d64
vim-patch:8.2.2070: can't get the exit value in VimLeave(Pre) autocommands ( #13981 )
...
Problem: Can't get the exit value in VimLeave or VimLeavePre autocommands.
Solution: Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes vim/vim#7395 )
https://github.com/vim/vim/commit/f0068c5154a99b86b2c4515a4b93c003b2445cf4
Rearrange VimVarIndex enums and vimvars[] entries to sync with Vim.
N/A patches for version.c:
vim-patch:8.2.2535: MS-Windows: cannot run all vim9 tests
Problem: MS-Windows: cannot run all vim9 tests.
Solution: Make test_vim9 target work.
https://github.com/vim/vim/commit/723ef5db980b2e69ef8bdc0dd448cb645491c464
2021-02-20 23:45:14 -05:00
Vikram Pal
4d5dbea4f4
[RFC] ":source" sources from current buffer if filename is omitted ( #11444 )
...
Fix https://github.com/neovim/neovim/issues/8722
2021-02-18 01:25:51 -05:00
Brian Ryall
18f90336cb
vim-patch:8.2.2523: Svelte filetype not recognized ( #13961 )
...
Problem: Svelte filetype not recognized.
Solution: Add a detection rule. (Brian Ryall, closes vim/vim#7858 )
https://github.com/vim/vim/commit/c0fcb6e0b10050145e7d334b68b1bdc5201fed05
2021-02-18 00:22:48 +01:00
Brian Ryall
64b7d7ae78
vim-patch:8.2.2522: Beancount filetype not recognized ( #13960 )
...
Problem: Beancount filetype not recognized.
Solution: Add a detection rule. (Brian Ryall, closes vim/vim#7859 )
https://github.com/vim/vim/commit/9bbd883b3528b37dcacad22ad58861105a9ae428
2021-02-18 00:20:07 +01:00
Björn Linse
d623400cad
Merge pull request #13944 from chentau/on_bytes_doc
...
Doc: update documentation for on_bytes
2021-02-17 13:14:18 +01:00
chentau
d966e0142d
Doc: update documentation for on_bytes
2021-02-17 00:47:19 -08:00
John Gehrig
5006881b0c
Issue 12928: Windows missing QtSVG DLL
...
We should copy the entire output of windeployqt. Currently several DLLs
are missing including one required to display the window icon.
2021-02-16 19:34:16 -05:00
Björn Linse
772421f6b1
Merge pull request #13692 from mjlbach/fix_cursor_respect_current_line
...
fix_cursor: do not change line number when edit will not impact cursor row
2021-02-16 18:32:38 +01:00
Jan Edmund Lazo
dc3ca16a99
Merge pull request #13930 from janlazo/vim-8.2.1902
...
vim-patch:8.2.{54,64,576,925,1056,1058,1902,1903,1904}
2021-02-14 11:36:12 -05:00
Jan Edmund Lazo
147d40f2a0
vim-patch:8.2.0925: getcompletion() does not return command line arguments
...
Problem: Getcompletion() does not return command line arguments.
Solution: Add the "cmdline" option. (Shougo, closes vim/vim#1140 )
https://github.com/vim/vim/commit/1f1fd44ef796dd909ff5f3e5288b3fd79294dc71
2021-02-14 10:00:59 -05:00
Björn Linse
c7a65fe6a1
buffer_updates: autoload episode III: revenge of the trees
2021-02-14 11:10:36 +01:00
Jan Edmund Lazo
e87c30a196
vim-patch:8.2.0064: diffmode completion doesn't use per-window setting
...
Problem: Diffmode completion doesn't use per-window setting.
Solution: Check if a window is in diff mode. (Dominique Pell, closes vim/vim#5419 )
https://github.com/vim/vim/commit/efcc329020ef089267f5f3994b8544eb58806311
2021-02-13 18:22:04 -05:00
Jan Edmund Lazo
54cd7298f8
vim-patch:8.2.0054: :diffget and :diffput don't have good completion
...
Problem: :diffget and :diffput don't have good completion.
Solution: Add proper completion. (Dominique Pelle, closes vim/vim#5409 )
https://github.com/vim/vim/commit/ae7dba896975051a3f0b7123faa08dac5635972d
2021-02-13 18:17:25 -05:00
Jan Edmund Lazo
fd44bd4d4f
vim-patch:8.2.1056: wrong display when mixing match conceal and syntax conceal
...
Problem: Wrong display when mixing match conceal and syntax conceal.
Solution: Adjust how conceal flags are used. (closes vim/vim#6327 , closes vim/vim#6303 )
https://github.com/vim/vim/commit/211dd3fd82216ca879fe7f917ea345b3ae366ce1
2021-02-13 17:05:06 -05:00
Jan Edmund Lazo
34291eba80
vim-patch:8.2.1058: multiline conceal causes display errors
...
Problem: Multiline conceal causes display errors.
Solution: Do not allow conceal cross over EOL. (closes vim/vim#6326 , closes vim/vim#4854 ,
closes vim/vim#6302 )
https://github.com/vim/vim/commit/fc838d6cb0f22c77a6ee2befd034b593e1c5ea06
Port test_conceal.vim but skip tests that require screendumps.
2021-02-13 16:15:00 -05:00
Jan Edmund Lazo
cdace43b6c
vim-patch:8.2.1904: still using default option values after using ":badd +1"
...
Problem: Still using default option values after using ":badd +1".
Solution: Find a window where options were set. Don't set the window when
using ":badd".
https://github.com/vim/vim/commit/89b693e5627715cde080c3580c7b641c9bf0c06a
2021-02-13 14:27:17 -05:00
Jan Edmund Lazo
a2aeed013c
vim-patch:8.2.1903: buffer test fails with normal features
...
Problem: Buffer test fails with normal features.
Solution: Use 'numberwidth' instead of 'conceallevel' in the test.
https://github.com/vim/vim/commit/37e4e03c67dacfc4a065e95492ffc4c7f490b44b
2021-02-13 13:50:00 -05:00
Jan Edmund Lazo
6855a55d53
vim-patch:8.2.0576: some errors are not covered by tests
...
Problem: Some errors are not covered by tests.
Solution: Add a few more tests. (Dominique Pelle, closes vim/vim#5920 )
https://github.com/vim/vim/commit/067297e16a516838dbc46aaa9d8b1a507afec28d
2021-02-13 13:47:29 -05:00
Jan Edmund Lazo
9860d14af3
vim-patch:8.2.1902: default option values changed with :badd for existing buffer
...
Problem: Default option values are changed when using :badd for an existing
buffer.
Solution: When calling buflist_new() pass a zero line number. (closes vim/vim#7195 )
https://github.com/vim/vim/commit/e974fa7b2b98e53a59d5ef16a6a1291f12a32e33
2021-02-13 13:40:09 -05:00
Jan Edmund Lazo
5ad32885d4
vim-patch:8.2.2499: "vim -g --version" does not redirect output ( #13922 )
...
Problem: "vim -g --version" does not redirect output.
Solution: Reset gui.starting when showing version info. (closes vim/vim#7815 )
https://github.com/vim/vim/commit/3b678047bcd50d6f409175dcffe7839dbb74728b
N/A patches for version.c:
vim-patch:8.1.2065: compiler warning building non-GUI with MinGW.
Problem: Compiler warning building non-GUI with MinGW.
Solution: Adjust #ifdefs. (Yegappan Lakshmanan, closes vim/vim#4964 )
https://github.com/vim/vim/commit/910c378d9342e0de8c6736c83ebdbbb597267056
vim-patch:8.2.2500: build fails without the GUI feature
Problem: Build fails without the GUI feature.
Solution: Add #ifdef.
https://github.com/vim/vim/commit/0bcadf14aa700c166c09f1800ed3de00b9598b39
vim-patch:8.2.2502: a few github actions are failing
Problem: A few github actions are failing.
Solution: Install setuptools-rust. (closes vim/vim#7823 )
https://github.com/vim/vim/commit/ca753ec862f8191f1fc5ed161753704a488ed08d
vim-patch:8.2.2507: github build may fail if Ubuntu 20.04 is used
Problem: Github build may fail if Ubuntu 20.04 is used. Installing rust is
not needed.
Solution: Specify ubuntu-18.04 instead of latest. Update "pip" instead of
installing rust. (Ozaki Kiichi, closes vim/vim#7820 )
https://github.com/vim/vim/commit/0fa09676c25a0a4a01f339887b8bf40b4673621f
2021-02-13 12:00:36 -05:00
Jan Edmund Lazo
52397aaa0d
Merge pull request #13491 from seandewar/vim-8.2.1967
...
vim-patch:8.2.{1967,2058,2467}
2021-02-11 22:37:38 -05:00
Sean Dewar
4bc82a59b6
vim-patch:8.2.2467: script generated by :mkview changes alternate file
...
Problem: Script generated by :mkview changes alternate file.
Solution: Only write :balt in the session file. (Harish Rajagopal,
closes vim/vim#7779 )
https://github.com/vim/vim/commit/139348f3e8370826a1ceb10c73f7c7bb586f8125
2021-02-11 19:00:55 +00:00