Commit Graph

16308 Commits

Author SHA1 Message Date
Jan Edmund Lazo
8bd38863e6
vim-patch:8.1.1812: reading a truncted undo file hangs Vim
Problem:    Reading a truncted undo file hangs Vim.
Solution:   Check for reading EOF. (closes vim/vim#4769)
fb06d767a8
2020-10-05 18:18:14 -04:00
Jan Edmund Lazo
da5bd45e5a
vim-patch:8.2.0665: wrongly assuming Python executable is called "python"
Problem:    Wrongly assuming Python executable is called "python".
Solution:   Use detected python command. (Ken Takata, closes vim/vim#6016)
            Also use CheckFunction if possible.
a161cb5ddd

CheckPython() is used only in test_terminal.vim as of patch 8.2.1794.
test_terminal.vim is no-opt in Neovim.
I ported it only for merging Vim patches.

N/A patches for version.c:

vim-patch:8.1.2239: CI fails when running tests without building Vim

Problem:    CI fails when running tests without building Vim.
Solution:   Skip creating doc tags if the execute does not exist.
1a577433ac

vim-patch:8.1.2242: creating docs tags uses user preferences

Problem:    Creating docs tags uses user preferences. (Tony Mechelynck)
Solution:   Add "--clean".
70def98a95

vim-patch:8.1.2247: "make vimtags" does not work in runtime/doc

Problem:    "make vimtags" does not work in runtime/doc.
Solution:   Test existence with "which" instead of "test -x". (Ken Takata)
e890b9f5dd

vim-patch:8.1.2249: "make vimtags" does not print any message

Problem:    "make vimtags" does not print any message.
Solution:   Add a message that the tags have been updated.
d047840ce4

vim-patch:8.1.2253: using "which" to check for an executable is not reliable

Problem:    Using "which" to check for an executable is not reliable.
Solution:   Use "command -v" instead.  Also exit with error code when
            generating tags has an error. (closes vim/vim#5174)
ad4de52510

vim-patch:8.2.0354: Python 3.9 does not define _Py_DEC_REFTOTAL

Problem:    Python 3.9 does not define _Py_DEC_REFTOTAL. (Zdenek Dohnal)
Solution:   Remove it, it was only for debugging.
a65bb53514

vim-patch:8.2.0603: configure does not detect moonjit

Problem:    Configure does not detect moonjit.
Solution:   Add check for moonjit. (Shlomi Fish, closes vim/vim#5947)
f49e564082

vim-patch:8.2.0609: configure does not detect moonjit correctly

Problem:    Configure does not detect moonjit correctly.
Solution:   Double the brackets. (Ozaki Kiichi)
ad4dc83389

vim-patch:8.2.1570: configure check for dirfd() does not work on HPUX

Problem:    Configure check for dirfd() does not work on HPUX. (Michael Osipov)
Solution:   Use AC_TRY_LINK instead of AC_TRY_COMPILE. (closes vim/vim#6838)
9d8bfae50f

vim-patch:8.2.1790: MS-Windows with Python: crash when executed from Vifm

Problem:    MS-Windows with Python: crash when executed from Vifm.
Solution:   Use NUL instead of CONIN. (Ken Takata, closes vim/vim#7061, closes vim/vim#7053)
794771cfd8

vim-patch:8.2.1792: Configure does not recognize Racket 6.1+

Problem:    Configure does not recognize Racket 6.1+.
Solution:   Add a check for "rktio". (closes vim/vim#7062)
588d241d44
2020-10-05 18:17:45 -04:00
James McCoy
e3afb30e69
Merge pull request #13045 from jamessan/unicode-13 2020-10-05 06:40:29 -04:00
Thomas Vigouroux
7996d9ece1
Merge pull request #13023 from G-flat/pvs-v1001
[RDY] PVS/V1001: Remove assignment to unused variable
2020-10-05 12:31:33 +02:00
G-flat
8972eea2e1
PVS/V1001: Remove assignment to unused variable 2020-10-05 15:17:14 +08:00
G-flat
b0769729c8
Merge pull request #1 from neovim/master
rebase
2020-10-05 15:15:10 +08:00
G-flat
1d08dfab5b
PVS/V1001: Prepare for rebase 2020-10-05 15:14:50 +08:00
G-flat
1a49346319
PVS/V1001: Remove assignment to unused variable 2020-10-05 14:16:51 +08:00
Jan Edmund Lazo
f7aeac7263
Merge pull request #12999 from PaperMountainStudio/resolv-ipv6
runtime: backport IPv6 support to resolv.vim
2020-10-04 16:22:19 -04:00
James McCoy
aadf85f3ca
Update unicode files 2020-10-04 11:50:38 -04:00
James McCoy
ec057d40f3
Download emoji-data from UNIDATA/ 2020-10-04 11:50:29 -04:00
Jan Edmund Lazo
f6ac375604
Merge pull request #13026 from janlazo/vim-8.2.1779
vim-patch:8.1.{2143},8.2.{841,1779,1780,1784,1787}
2020-10-03 02:12:54 -04:00
Jan Edmund Lazo
86ab4a1cb4
vim-patch:8.2.0841: 'verbose' value 16 causes duplicate output
Problem:    'verbose' value 16 causes duplicate output.
Solution:   Combine levels 15 and 16 into one message. (Christian Brabandt,
            closes vim/vim#6153)
823654bc06
2020-10-03 01:06:24 -04:00
Jan Edmund Lazo
970d6ee0d1
vim-patch:8.1.2143: cannot see each command even when 'verbose' is set
Problem:    Cannot see each command even when 'verbose' is set.
Solution:   List each command when 'verbose' is at least 16.
4facea310c

Cherry-pick Test_tselect() from patch 8.1.2141.
It requires screendump so it won't run.
I cannot port it to a lua screen test.
2020-10-02 23:13:28 -04:00
Jan Edmund Lazo
2000e1621d
vim-patch:8.2.1787: crash with 'incsearch' and very long line
Problem:    Crash with 'incsearch' and very long line.
Solution:   Check whether regprog becomes NULL. (closes vim/vim#7063)
795aaa1e84

N/A patches for version.c:

vim-patch:8.2.1784: commits are not scanned for security problems

Problem:    commits are not scanned for security problems
Solution:   Enable Github code scanning. (Christian Brabandt, closes vim/vim#7057)
fa79be6b10
2020-10-02 23:13:28 -04:00
Jan Edmund Lazo
25513049b3
vim-patch:8.2.1780: statusline not updated when splitting windows
Problem:    Statusline not updated when splitting windows.
Solution:   Call status_redraw_all(). (Jason Franklin, closes vim/vim#5496)
668008be66
2020-10-02 22:31:55 -04:00
Jan Edmund Lazo
72914cd7f2
vim-patch:8.2.1779: some debian changelog files are not recognized
Problem:    Some debian changelog files are not recognized.
Solution:   Add */debian/changelog. (Jason Franklin)
0022675aa3
2020-10-02 22:31:55 -04:00
Thomas Vigouroux
c10c2fab5b
Merge pull request #12968 from erw7/fix-substitute2
fix substitute problem with inccommand
2020-10-02 09:56:57 +02:00
erw7
f1b39f91a5 extmark: Change nvim_buf_set_extmark to not create undo data 2020-10-02 11:41:30 +09:00
erw7
b2f9c2b6c1 undo: fix possibility of aborting 2020-10-02 11:41:30 +09:00
erw7
620c8fdfe9 extmark: fix decoration ploblems with extmark
54ce101 changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
2020-10-02 11:41:30 +09:00
G-flat
62c53ac3cf
PVS/V1001: Add cast to return statement 2020-10-02 07:29:44 +08:00
G-flat
ccceab9659
PVS/V1001: Correct returned variable typo 2020-10-02 07:24:40 +08:00
Thomas Vigouroux
a9851bfbb1
Merge pull request #13014 from erw7/fix-fold
screen.c: fix buffer overflow due to folding
2020-10-01 17:21:41 +02:00
G-flat
06258772da
PVS/V1001: Remove assignment to unused variable 2020-10-01 22:37:14 +08:00
erw7
8154c77bef screen.c: fix buffer overflow due to folding
fixes #12988.
2020-10-01 17:25:19 +09:00
Paper
94c743348e runtime: backport IPv6 support to resolv.vim
from commits bc93cebb692f47488d66f078d1728031e9be35e7 and
b17893aa940dc7d45421f875f5d90855880aad27 from vim
2020-10-01 10:25:09 +02:00
Jan Edmund Lazo
36a5c394a5
Merge pull request #12987 from janlazo/vim-8.1.1563
vim-patch:8.1.{1319,1563,1591},8.2.{42,499}
2020-10-01 00:38:59 -04:00
Jan Edmund Lazo
9bac43b1fb
userfunc: abort early on invalid refs
Cherry-pick set_ref_in_call_stack() changes from patch 8.1.1575.
2020-09-30 21:00:18 -04:00
Jan Edmund Lazo
594a69579f
vim-patch:8.2.0042: clearing funccal values twice
Problem:    Clearing funccal values twice.
Solution:   Remove clearing individual fields.
eac7ce01e9
2020-09-30 21:00:18 -04:00
Jan Edmund Lazo
578b0b0b52
vim-patch:8.2.0499: calling a lambda is slower than evaluating a string
Problem:    Calling a lambda is slower than evaluating a string.
Solution:   Make calling a lambda faster. (Ken Takata, closes vim/vim#5727)
f10806b250

Port "uf_flags" constants from patch 8.2.1054 to sync with Vim.
Port user_func_error() from patch 8.2.0149.
Port Test_lambda_scope() changes from patch 8.1.0736 so that it passes.
2020-09-30 21:00:17 -04:00
Jan Edmund Lazo
2a57dce9f2
vim-patch:8.1.1319: computing function length name in many places
Problem:    Computing function length name in many places.
Solution:   compute name length in call_func().
6ed8819822

In call_func(), reassign "len" param to (int)STRLEN(funcname)
instead of using vim_strsave() which runs strlen().
"len" param is checked for v:lua functions.
call_func() states that strlen() is used if "len" is set to -1.
2020-09-30 21:00:17 -04:00
Jan Edmund Lazo
4edf7b9ff2
vim-patch:8.1.1591: on error garbage collection may free memory in use
Problem:    On error garbage collection may free memory in use.
Solution:   Reset may_garbage_collect when evaluating expression mapping.
            Add tests. (Ozaki Kiichi, closes vim/vim#4579)
7d491c4253
2020-09-30 21:00:17 -04:00
erw7
7cb38d5ac4
vim-patch:8.1.1563: crash when using closures
Problem:    Crash when using closures.
Solution:   Set reference in varlist of funccal when running the garbage
            collector. (Ozaki Kiichi, closes vim/vim#4554, closes vim/vim#4547)
6e5000d493
2020-09-30 21:00:17 -04:00
Jan Edmund Lazo
3430e40c60
vim-patch:8.2.1775: MS-Windows: adding a long quickfix list is slow (#13019)
vim-patch:8.2.1775: MS-Windows: adding a long quickfix list is slow

Problem:    MS-Windows: adding a long quickfix list is slow.
Solution:   Shorten the buffer name only for the first entry. (Yegappan
            Lakshmanan, closes vim/vim#7039, closes vim/vim#7033)
8ec92c9779

N/A patches for version.c:

vim-patch:8.1.2226: cannot use system copy/paste in non-xterm terminals

Problem:    Cannot use system copy/paste in non-xterm terminals.
Solution:   Instead of setting 'mouse' to "a" set it to "nvi" in defaults.vim.
5b418992cf

vim-patch:8.2.1772: cannot use CTRL-W <Down> to move out of a terminal window

Problem:    Cannot use CTRL-W <Down> to move out of a terminal window.
Solution:   Use special_to_buf() instead of mb_char2bytes(). (closes vim/vim#7045)
f43e7ac4ee

vim-patch:8.2.1774: GTK: hang when forced to exit

Problem:    GTK: hang when forced to exit.
Solution:   Do not clean up "mainwin" when really_exiting is set.
            (Zdenek Dohnal, closes vim/vim#7042)
32fbc4f247

vim-patch:8.2.1776: filetype.vim may be loaded twice

Problem:    Filetype.vim may be loaded twice.
Solution:   Do "syntax on" after "filetype on". (Adam Stankiewicz,
            closes vim/vim#7049)
17bb4d4607
2020-09-30 20:58:36 -04:00
Thomas Vigouroux
c007b961f5
Merge pull request #12733 from KillTheMule/lnume
[RDY]: Fix buffer_updates on blockwise paste
2020-09-30 22:34:41 +02:00
KillTheMule
02dcc3c11a Fix byte updates for blockwise paste at buffer end 2020-09-30 21:28:21 +02:00
Thomas Vigouroux
c1a740ae33 bytetrack: add blockwise paste test 2020-09-30 20:10:06 +02:00
KillTheMule
ba515622fb Fix buffer_updates on blockwise paste
Fixes #12718.
2020-09-30 20:10:05 +02:00
Christian Clason
e5d98d8569
LSP: Fix separator width on hover (fixes #13006, #12998) (#13007)
* fix insert_separator conditional
* only draw separator over wrapped width
2020-09-30 18:03:40 +02:00
Thomas Vigouroux
3c5141d2cf
treesitter: add string parser (#13008) 2020-09-30 09:32:43 -04:00
Thomas Vigouroux
d5adc8c00e
Merge pull request #12903 from justinmk/checkcores
lua/check_cores(): check uname instead of TRAVIS_OS_NAME
2020-09-30 08:18:05 +02:00
Jan Edmund Lazo
d0d1f0f9a6
Merge pull request #13012 from janlazo/vim-8.1.1965
vim-patch:8.1.{1965,1970,1980,1992},8.2.0840
2020-09-29 22:34:00 -04:00
Jan Edmund Lazo
0d100032b8
vim-patch:8.2.0840: search match count wrong when only match is in fold
Problem:    Search match count wrong when only match is in fold.
Solution:   Update search stats when in a closed fold. (Christian Brabandt,
            closes vim/vim#6160, closes vim/vim#6152)
6cb0726215
2020-09-29 21:36:00 -04:00
Jan Edmund Lazo
83ebe0c998
vim-patch:8.1.1992: the search stat moves when wrapping at the end of the buffer
Problem:    The search stat moves when wrapping at the end of the buffer.
Solution:   Put the "W" in front instead of at the end.
16b58ae9f3
2020-09-29 21:36:00 -04:00
Jan Edmund Lazo
a307489a79
vim-patch:8.1.1980: fix for search stat not tested
Problem:    Fix for search stat not tested.
Solution:   Add a screenshot test. (Christian Brabandt)
0f63ed33fd
2020-09-29 19:45:06 -04:00
Jan Edmund Lazo
37c6cbc758
vim-patch:8.1.1970: search stat space wrong, no test for 8.1.1965
Problem:    Search stat space wrong, no test for 8.1.1965.
Solution:   Fix check for cmd_silent.  Add a test. (Christian Brabandt)
19e8ac72e9
2020-09-29 19:30:29 -04:00
Jan Edmund Lazo
621f7b607f
vim-patch:8.1.1965: search count message is not displayed when using a mapping
Problem:    The search count message is not displayed when using a mapping.
            (Gary Johnson)
Solution:   Ignore cmd_silent for showing the search count. (Christian
            Brabandt)
359ad1a6f9
2020-09-29 19:23:46 -04:00
Thomas Vigouroux
090551a802
Merge pull request #12996 from teto/foldcol
folds: pass column on fold creation
2020-09-29 06:40:10 +02:00
Jan Edmund Lazo
6f2138eb03
vim-patch:8.2.1757: Mac: default locale is lacking the encoding (#12994)
vim-patch:8.2.1757: Mac: default locale is lacking the encoding

Problem:    Mac: default locale is lacking the encoding.
Solution:   Add ".UTF-8 to the locale. (Yee Cheng Chin, closes vim/vim#7022)
a5fe91e6dc

Cherry-pick test_environ.vim changes from patch 8.2.1432.
2020-09-28 20:20:48 -04:00