Commit Graph

16434 Commits

Author SHA1 Message Date
Jan Edmund Lazo 78cd1b9f5a
Merge pull request #13128 from janlazo/vim-8.2.0268
vim-patch:8.1.1877,8.2.{268,1874,1875,1877,1878,1881,1883}
2020-10-22 00:27:59 -04:00
Jan Edmund Lazo 3f0850e9f0
vim-patch:8.2.1874: can't do something just before leaving Insert mode
Problem:    Can't do something just before leaving Insert mode.
Solution:   Add the InsertLeavePre autocommand event. (closes vim/vim#7177)
b53e13a91a

N/A patches for version.c:

vim-patch:8.1.1877: graduated features scattered

Problem:    Graduated features scattered.
Solution:   Put graduated and obsolete features together.
ffc0716af8

vim-patch:8.2.1875: warning when building GTK gui

Problem:    Warning when building GTK gui.
Solution:   Add missing function parameter.
3da855c8e2

vim-patch:8.2.1877: test for function list fails

Problem:    Test for function list fails.
Solution:   Move "obsolete" comments one line up.
b8f519e538

vim-patch:8.2.1878: GTK: error for redefining function

Problem:    GTK: error for redefining function. (Tony Mechelynck)
Solution:   Remove "gtk_" prefix from local functions and prepend "gui_" to
            global functions.
8a99e66b4f

vim-patch:8.2.1881: cannot build with GTK3

Problem:    Cannot build with GTK3.
Solution:   Adjust form functions.
692d1a51e7

vim-patch:8.2.1883: compiler warnings when using Python

Problem:    Compiler warnings when using Python.
Solution:   Adjust PyCFunction to also have the second argument.  Use "int"
            return type for some functions.  Insert "(void *)" to get rid of
            the remaining warnings.
4ce5fe4c87
2020-10-21 23:36:56 -04:00
Jan Edmund Lazo 07022306e2
vim-patch:8.2.0268: trycatch test fails
Problem:    Trycatch test fails.
Solution:   When calling function fails only check for following command, do
            not give another error.
40d9da2a43
2020-10-21 21:06:52 -04:00
Jan Edmund Lazo 10ac5ada31
Merge pull request #13107 from alexgenco/rubyeval
vim-patch:8.1.1056: no eval function for Ruby
2020-10-21 21:04:49 -04:00
Alex Genco da3b59fc8e Install pre-release neovim gem in CI
The `ruby_eval` RPC message will be available in neovim-ruby
0.9.0.pre.*. That will become 0.9.0 once `rubyeval` is merged to neovim.

The `--version` argument isn't needed, as `gem` should pick the latest
release.
2020-10-21 10:20:21 -07:00
Alex Genco ed0a70087a vim-patch:8.1.1056: no eval function for Ruby
Problem:    No eval function for Ruby.
Solution:   Add rubyeval(). (Ozaki Kiichi, closes vim/vim#4152)
e99be0e6d2
2020-10-21 10:20:21 -07:00
Jan Edmund Lazo 0f590ae2a8
Merge pull request #13123 from janlazo/vim-8.2.1871
vim-patch:8.2.{6,1002,1871}

Revert patches 8.1.0877 and 8.1.1015 from #13083.
2020-10-21 08:32:02 -04:00
Jan Edmund Lazo dff3a0d449
Revert "vim-patch:8.1.0877: new buffer used every time the quickfix window is opened"
This reverts commit e82b8ddef1.

Fix https://github.com/neovim/neovim/issues/13104
2020-10-20 22:07:45 -04:00
Jan Edmund Lazo 7b2fd21560
Revert "vim-patch:8.1.1015: quickfix buffer shows up in list, can't get buffer number"
This reverts commit 4cd69151cf.
2020-10-20 22:07:45 -04:00
Jan Edmund Lazo 87f31b4c86
vim-patch:8.2.0006: test using long file name may fail
Problem:    Test using long file name may fail. (Vladimir Lomov)
Solution:   Limit the name length. (Christian Brabandt, closes vim/vim#5358)
6e43b30a85

N/A patches for version.c:

vim-patch:8.2.1002: test may fail when run directly

Problem:    Test may fail when run directly.
Solution:   Check if g:run_nr exists. (Christian Brabandt, closes vim/vim#6285)
ceb2e77510
2020-10-20 20:43:33 -04:00
Jan Edmund Lazo 5621bc66d6
vim-patch:8.2.1871: using %v in 'errorformat' may fail before %Z
Problem:    Using %v in 'errorformat' may fail before %Z.
Solution:   Set qf_viscol only when qf_col is set. (closes vim/vim#7169)
c95940c06a
2020-10-20 18:03:14 -04:00
Björn Linse 77dc891bfb
Merge pull request #13125 from bfredl/artifical-ci
docs: update api
2020-10-20 22:02:06 +02:00
Björn Linse 18bf216993 docs: update api 2020-10-20 21:57:07 +02:00
Jan Edmund Lazo 75996a2cdd
vim-patch:8.2.1804: resolve('/') returns an empty string (#13121)
Problem:    resolve('/') returns an empty string.
Solution:   Don't remove single slash. (closes vim/vim#7074)
50c4e9e08f

Cherry-pick the test rename from Test_resolve() to Test_resolve_unix()
from patch 8.1.0894.

N/A patches for version.c:

vim-patch:8.1.0929: no error when requesting ConPTY but it's not available

Problem:    No error when requesting ConPTY but it's not available.
Solution:   Add an error message. (Hirohito Higashi, closes vim/vim#3967)
5acd987258

vim-patch:8.1.1535: popup select test fails on Mac

Problem:    Popup select test fails on Mac.
Solution:   Skip test if clipboard feature not available.
650a63748c

vim-patch:8.1.1536: popup select test still fails on Mac

Problem:    Popup select test still fails on Mac.
Solution:   Set 'clipboard' to "autoselect"
1755ec4278

vim-patch:8.1.1604: popup window scroll test is flaky

Problem:    Popup window scroll test is flaky.
Solution:   Add a delay between scroll events.
13b47c37a6

vim-patch:8.1.1668: popup window test is a bit flaky on some systems

Problem:    Popup window test is a bit flaky on some systems.
Solution:   Clear the command line. (Naruhiko Nishino, closes vim/vim#4656)
8ccabf624e

vim-patch:8.1.1935: test for text property popup window is flaky

Problem:    Test for text property popup window is flaky.
Solution:   Remove the undo message
57441d6fa0

vim-patch:8.1.2347: MacOS: build fails

Problem:    MacOS: build fails.
Solution:   Don't define _XOPEN_SOURCE for Mac.
84f903326d

vim-patch:8.2.0351: terminal in popup test is still a bit flaky

Problem:    Terminal in popup test is still a bit flaky.
Solution:   Clear and redraw before opening the popup.
3e919d2924

vim-patch:8.2.0752: terminal in popup window test is a bit flaky

Problem:    Terminal in popup window test is a bit flaky.
Solution:   Wait for shell job status to be "run".  Mark as flaky test.
e06a28f5e3

vim-patch:8.2.1087: possible memory leak when file expansion fails

Problem:    Possible memory leak when file expansion fails.
Solution:   Clear the grow array when returning FAIL.  Use an error message
            instead of an empty string.
566cc8c72b

vim-patch:8.2.1863: json code not sufficiently tested

Problem:    Json code not sufficiently tested.
Solution:   Add more test cases. (Dominique Pellé, closes vim/vim#7166)
e3c65ce4e5
2020-10-20 09:29:34 -04:00
Björn Linse 38efa1730f
Merge pull request #13118 from bfredl/mudholland
A Mudholland Dr. Recast
2020-10-19 23:14:55 +02:00
Björn Linse 07cc231142 A Mudholland Dr. Recast
The commit summary maybe does not make sense, but calling a function
that does not wait on anything `wait()` makes even less sense.
2020-10-19 21:48:06 +02:00
Jan Edmund Lazo eaee3d9297
Merge pull request #13111 from janlazo/vim-8.2.0862
vim-patch:8.2.{862,943,1547}
2020-10-18 13:39:22 -04:00
Jan Edmund Lazo ce99d049e7
vim-patch:8.2.1547: various comment problems
Problem:    Various comment problems.
Solution:   Update comments.
02c037a4be
2020-10-18 12:25:48 -04:00
Jan Edmund Lazo 54d07b648c
vim-patch:8.2.0943: displaying ^M or ^J depends on current buffer
Problem:    Displaying ^M or ^J depends on current buffer.
Solution:   Pass the displayed buffer to transchar(). (closes vim/vim#6225)
32ee627750

N/A patches for version.c:

vim-patch:8.2.0862: ":term ++curwin" makes the current buffer hidden

Problem:    ":term ++curwin" makes the current buffer hidden. (Harm te
            Hennepe)
Solution:   Do not hide the current buffer. (closes vim/vim#6170)
b10090928c
2020-10-18 01:24:02 -04:00
Jan Edmund Lazo 9817d99140
Merge pull request #13043 from tkuneck/fix-min-float-win-size
[RDY] Opts.wrap_at is sometimes a bool, ensure it falls back to a valid num…
2020-10-17 22:30:01 -04:00
Jan Edmund Lazo e744631647
Merge pull request #13100 from janlazo/vim-8.1.2141
vim-patch:8.1.{2141,2419}
2020-10-17 21:48:51 -04:00
TJ DeVries 0ad5b34170
Merge pull request #12053 from tjdevries/tjdevries/nicer_validate
vim.validate(): include stacktrace in message
2020-10-17 16:47:18 -04:00
Jan Edmund Lazo bd80671786
Merge pull request #13101 from skippi/vim-8.2.0868
vim-patch:8.2.0868
2020-10-17 16:01:22 -04:00
Jan Edmund Lazo b5cd052037
Merge pull request #13106 from janlazo/vim-8.2.1856
vim-patch:8.1.1795,8.2.1856
2020-10-17 15:10:15 -04:00
skippi 8c9d9fa304 vim-patch:8.2.0868: trim() always trims both ends
Problem:    trim() always trims both ends.
Solution:   Add an argument to only trim the beginning or end. (Yegappan
            Lakshmanan, closes vim/vim#6126)
2245ae18e3
2020-10-17 14:07:35 -05:00
Jan Edmund Lazo 242af4dc99
vim-patch:8.1.1795: no syntax HL after splitting windows with :bufdo
Problem:    No syntax HL after splitting windows with :bufdo. (Yasuhiro
            Matsumoto)
Solution:   Trigger Syntax autocommands in buffers that are active.
            (closes vim/vim#4761)
c7f1e40021
2020-10-17 13:48:52 -04:00
Jan Edmund Lazo e1ec2b0729
vim-patch:8.2.1856: "2resize" uses size of current window
Problem:    "2resize" uses size of current window.
Solution:   Use size of resized window. (Yasuhiro Matsumoto, closes vim/vim#7152)
9668cc57a1
2020-10-17 12:33:36 -04:00
Jan Edmund Lazo c8ce098e71
Merge pull request #13105 from janlazo/vim-8.2.0728
vim-patch:8.2.{444,778,1219,1384,1557}
2020-10-17 12:24:52 -04:00
Jan Edmund Lazo b9fe30cac2
vim-patch:8.2.1557: crash in :vimgrep when started as "vim -n"
Problem:    Crash in :vimgrep when started as "vim -n". (Raul Segura)
Solution:   Check mfp pointer. (Yegappan Lakshmanan, closes vim/vim#6827)
997cd1a17f
2020-10-17 11:09:35 -04:00
Jan Edmund Lazo afd4888c6a
vim-patch:8.2.1384: no ATTENTION prompt for :vimgrep first match file
Problem:    No ATTENTION prompt for :vimgrep first match file.
Solution:   When there is an existing swap file do not keep the dummy buffer.
            (closes vim/vim#6649)
8ce4b7ed85
2020-10-17 11:02:21 -04:00
Jan Edmund Lazo a2e1bcd176
vim-patch:8.2.1219: symlink not followed if dirname ends in //
Problem:    Symlink not followed if dirname ends in //.
Solution:   Resolve symlink earlier. (Tomáš Janoušek, closes vim/vim#6454)
5966ea105e
2020-10-17 02:23:03 -04:00
Jan Edmund Lazo 1d736a1ae2
vim-patch:8.2.0444: swap file test fails on some systems
Problem:    Swap file test fails on some systems.
Solution:   Preserve the swap file. Send NL terminated keys.
d36ef573b2

Cherry-pick Test_swap_prompt_splitwin() from patch 8.2.0301.
2020-10-16 23:01:29 -04:00
Jan Edmund Lazo 96a555346b
vim-patch:8.2.0728: messages about a deadly signal are not left aligned
Problem:    Messages about a deadly signal are not left aligned.
Solution:   Output a CR before the NL. (Dominique Pelle, vim/vim#6055)
69212b11d1
2020-10-16 22:44:07 -04:00
Stanley Chan 306d96cd10
vim-patch:8.1.2419: with a long file name the hit-enter prompt appears
Problem:    With a long file name the hit-enter prompt appears. (J. Lewis
            Muir)
Solution:   When checking for text to wrap don't do this when outputing a CR.
0efd1bdcf4
2020-10-16 21:56:55 -04:00
Jan Edmund Lazo 288f7f8558
Merge pull request #13030 from Happy-Dude/quickfix_warning
Fix quickfix.c warning message on EMSGN macro #hacktoberfest
2020-10-16 21:51:50 -04:00
Jan Edmund Lazo c4cbf16c91
vim-patch:8.1.2141: :tselect has an extra hit-enter prompt
Problem:    :tselect has an extra hit-enter prompt.
Solution:   Do not set need_wait_return when only moving the cursor.
            (closes vim/vim#5040)
e8070987c6
2020-10-16 20:19:24 -04:00
Jan Edmund Lazo 0af18a6a43
Merge pull request #13097 from janlazo/vim-8.2.1850
vim-patch:8.2.1850

scripts/vim-patch.sh: include --shortstat with -m
2020-10-16 10:33:57 -04:00
Jan Edmund Lazo 074745d924
Fix shellcheck error SC2155
Close https://github.com/neovim/neovim/pull/11765
2020-10-15 22:51:19 -04:00
Daniel Hahler 82b09bc9d2
scripts/vim-patch.sh: include --shortstat with -m 2020-10-15 22:51:19 -04:00
Jan Edmund Lazo f319e4608e
vim-patch:8.2.1850: "vat" does not select tags correctly over line break
Problem:    "vat" does not select tags correctly over line break.
Solution:   Adjust the search pattern. (Aufar Gilbran, closes vim/vim#7136)
a604ccc959

Use 'const char*' for spat,mpat,epat params of do_searchpair()
to reduce (char_u *) casts.

Cherry-pick Test_string_html_objects() changes from patch 8.2.0655.
2020-10-15 22:51:10 -04:00
Jan Edmund Lazo 3566244d0e
gen_ex_cmds: simplify writes to defsfile (#13096)
defsfile:write() is executed multiple times to append strings.
Some of these can be combined into a format string, wrapped in [[]].
It is easier to read and insert strings via "%s".

defsfile now has a trailing comma for "cmdnames" array
but it does not break the build.
2020-10-15 19:07:54 -04:00
Jan Edmund Lazo 4b00916e94
Merge pull request #13092 from janlazo/vim-8.1.1403
vim-patch:8.1.{95,103,221,269,975,978,1403,1569,1856,1983,2014,2365,2406},8.2.{573,616,710,957,1020,1036,1038,1743,1842,1843}
2020-10-14 22:56:32 -04:00
Jan Edmund Lazo 3183b09a5e
vim-patch:8.1.0269: Ruby Kernel.#p method always returns nil
Problem:    Ruby Kernel.#p method always returns nil.
Solution:   Copy p method implementation from Ruby code. (Masataka Pocke
            Kuwabara, closes vim/vim#3315)
51e9fbf1c7
2020-10-14 22:00:40 -04:00
Jan Edmund Lazo 4543af9d53
vim-patch:8.1.0221: not enough testing for the Ruby interface
Problem:    Not enough testing for the Ruby interface.
Solution:   Add more tests. (Dominique Pelle, closes vim/vim#3252)
edd6aacb01

Modified some tests to make them pass for Neovim.
Some tests will always fail because +ruby is externalized in Neovim.
Skip failing ruby tests for now.
2020-10-14 22:00:40 -04:00
Jan Edmund Lazo e396eb549e
vim-patch:8.1.0978: blob not tested with Perl
Problem:    Blob not tested with Perl.
Solution:   Add more test coverage.  Fixes a crash. (Dominique Pelle,
            closes vim/vim#4037)
2472ae81df

This commit is only to match test_perl.vim from Vim 8.1.0978
so that test_perl.vim patches are easier to port.
2020-10-14 08:54:01 -04:00
Jan Edmund Lazo 3d2cd64744
vim-patch:8.2.0710: Netbeans test sometimes fails
Problem:    Netbeans test sometimes fails.
Solution:   Mark any test using an external command as flaky.
4a070cc82e
2020-10-14 08:54:01 -04:00
Jan Edmund Lazo bddd67a331
vim-patch:8.1.0095: dialog for ":browse tabnew" says "new window"
Problem:    Dialog for ":browse tabnew" says "new window".
Solution:   Use "new tab page". (closes vim/vim#3053)
39902a06d9
2020-10-14 08:54:00 -04:00
Jan Edmund Lazo b946bcbc3b
vim-patch:8.2.1842: crash when USE_FNAME_CASE is defined and using :browse
Problem:    Crash when USE_FNAME_CASE is defined and using :browse.
Solution:   Don't use read-only memory for ".". (Yegappan Lakshmanan,
            closes vim/vim#7123)
21cbe175ee
2020-10-14 08:54:00 -04:00
Jan Edmund Lazo 01dff1fbfb
vim-patch:8.2.0957: compiler warning for uninitialized variable
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Initialize one variable.
2d4070d3b0
2020-10-14 08:54:00 -04:00
Jan Edmund Lazo 32baed519c
vim-patch:8.2.0573: using :version twice leaks memory
Problem:    using :version twice leaks memory
Solution:   Only initialize variables once. (Dominique Pelle, closes vim/vim#5917)
278e83863b

Cherry-pick test_alot.vim change from patch v8.2.0164
so that test_expr.vim and test_version.vim do not conflict.
Cherry-pick modeline from patch v8.2.1432.

N/A patches for version.c:

vim-patch:8.1.0103: long version string cannot be translated

Problem:    Long version string cannot be translated.
Solution:   Build the string in init_longVersion().
35fb6fbf72

vim-patch:8.1.0975: using STRNCPY() wrongly. Warning for uninitialized variable

Problem:    Using STRNCPY() wrongly. Warning for uninitialized variable.
Solution:   Use mch_memmove(). Initialize variable. (Yasuhiro Matsumoto,
            closes vim/vim#3979)
c666388367

vim-patch:8.1.1403: cannot build without the timer feature

Problem:    Cannot build without the timer feature.
Solution:   Add #ifdef.
35d5af6c0b

vim-patch:8.1.1569: cannot build with signs but without diff feature

Problem:    Cannot build with signs but without diff feature.
Solution:   Move #ifdef. (Tom Ryder)
bf8c3adef2

vim-patch:8.1.1856: popup preview test fails sometimes

Problem:    popup preview test fails sometimes. (Christian Brabandt)
Solution:   Clear the command line.
78d629a385

vim-patch:8.1.1983: compiler nags for uninitialized variable and unused function

Problem:    Compiler nags for uninitialized variable and unused function.
Solution:   Add unnecessary initialization.  Move function inside #ifdef.
ea781459b9

vim-patch:8.1.2014: terminal altscreen test fails sometimes

Problem:    Terminal altscreen test fails sometimes.
Solution:   Use WaitFor().
b9c79cf5cc

vim-patch:8.1.2365: missing tests for recent popupwin changes

Problem:    Missing tests for recent popupwin changes.
Solution:   Add test cases.
20ebbeac46

vim-patch:8.1.2406: leaking memory in test_paste and test_registers

Problem:    Leaking memory in test_paste and test_registers.
Solution:   Free the old title.  Don't copy expr_line.
6b649ac4fd

vim-patch:8.2.0616: build error when disabling the diff feature

Problem:    Build error when disabling the diff feature.
Solution:   Move parenthesis outside of #ifdef. (Tom Ryder)
e770598f31

vim-patch:8.2.1020: popupwin test fails in the GUI

Problem:    Popupwin test fails in the GUI.
Solution:   Send GUI byte sequence for <C-S-a>.
b326edf5b3

vim-patch:8.2.1036: popupwin test fails sometimes

Problem:    Popupwin test fails sometimes.
Solution:   Use WaitForAssert() instead of a sleep.
373c65104e

vim-patch:8.2.1038: popupwin test fails

Problem:    Popupwin test fails.
Solution:   Fix WaitForAssert() argument.
b2b218d89b

vim-patch:8.2.1743: cannot build without the eval feature

Problem:    Cannot build without the eval feature.
Solution:   Move shorten_dir outside of #ifdef.
273af497ca

vim-patch:8.2.1843: Netbeans: with huge buffer number memory allocation may fail

Problem:    Netbeans: with huge buffer number memory allocation may fail.
Solution:   Check for size overflow.
b9616af23f
2020-10-14 08:52:45 -04:00