Commit Graph
16995 Commits
Author SHA1 Message Date
Jan Edmund Lazo 84faeb07d0 Merge pull request #13602 from janlazo/vim-8.2.2206
vim-patch:8.1.2212,8.2.{51,782,856,1174,1212,2206,2211}
2020-12-25 11:11:31 -05:00
Jan Edmund Lazo 43834b24ac vim-patch:8.2.2206: :exe command line completion only works for first argument
Problem:    :exe command line completion only works for first argument.
Solution:   Skip over text if more is following. (closes vim/vim#7546)
https://github.com/vim/vim/commit/4941b5effd7f6a26583a949c92ee50276a3b43f9

Port "IS_WHITE_OR_NUL" macro from patch v8.2.0562
as "ascii_iswhite_or_nul()" inline function.

N/A patches for version.c:

vim-patch:8.2.0782: cannot build with Lua on MS-Windows

Problem:    Cannot build with Lua on MS-Windows.
Solution:   Add DLL symbol for luaL_Loadstring. (Ken Takata)
https://github.com/vim/vim/commit/df1643a6a7886b9363c2a98438e61cbe1c803d41

vim-patch:8.2.0856: CTRL-S stops output

Problem:    CTRL-S stops output.
Solution:   Invert the IXON flag. (closes vim/vim#6166)
https://github.com/vim/vim/commit/928eec649b8af389de0fdb7aba2034d27df3e058

vim-patch:8.2.1212: cannot build with Lua 5.4

Problem:    Cannot build with Lua 5.4.
Solution:   Use luaL_typeerror instead defining it. (closes vim/vim#6454)
https://github.com/vim/vim/commit/5551b131daef3a621a28dcbbe118920f5b9fabe6

vim-patch:8.2.2211: MS-Windows: can't load Python dll if not in the path

Problem:    MS-Windows: can't load Python dll if not in the path.
Solution:   Use the InstallPath registry entry. (Kelvin Lee, closes vim/vim#7540)
https://github.com/vim/vim/commit/b2f9e0e2c537bcde16dab3b62687a17e17849ce1
2020-12-25 10:20:29 -05:00
Jan Edmund Lazo 1e823986e9 vim-patch:8.2.1174: no test for the "recording @x" message
Problem:    No test for the "recording @x" message.
Solution:   Add a test. (Dominique Pellé, closes vim/vim#6427)
https://github.com/vim/vim/commit/11a5b19a8ce543c258832ac53d771047f4e1061d
2020-12-25 10:17:01 -05:00
Jan Edmund Lazo 8cf4a02bf2 vim-patch:8.1.2212: cannot see the selection type in :reg output
Problem:    Cannot see the selection type in :reg output. (Ayberk Aydın)
Solution:   Add c/l/b. (Christian Brabandt, closes vim/vim#5110, closes vim/vim#4546)
https://github.com/vim/vim/commit/3691f1ee72b68a47e6dcc75927bfa46565cf3614

Patch v8.1.0999 is not ported so ":registers" does not omit register 1.
2020-12-25 10:17:00 -05:00
Jan Edmund Lazo 0813bb021a vim-patch:8.2.0051: command line completion test skipped
Problem:    Command line completion test skipped. (Christian Brabandt)
Solution:   Invert condition.
https://github.com/vim/vim/commit/731a799bb926c6f424dbfb63430cf631ca7e132a

Cherry-pick Test_cmdline_complete_bang() from patch v8.2.0049.
2020-12-25 10:17:00 -05:00
Björn Linse 8c8cc35926 Merge pull request #13595 from teto/fix-filler
de curwinify some functions
2020-12-24 22:43:27 +01:00
Lukas Reineke 88ae03bcdb feat(sign):Allow signs to be 0 width (#13290)
Adds support for signs to be 0 cells wide. If all signs of the same
group have no width, the signcolumn will not be rendered for that group.
2020-12-24 17:33:52 +01:00
Matthieu Coudron 6c28bddfad Merge pull request #13599 from janlazo/vim-8.2.2197
vim-patch:8.1.{1837,1840},8.2.{907,2197,2203}
2020-12-24 17:03:37 +01:00
Jan Edmund Lazo c56377bac6 vim-patch:8.2.2203: Moodle gift files are not recognized
Problem:    Moodle gift files are not recognized.
Solution:   Add a filetype pattern. (Delim Temizer)
https://github.com/vim/vim/commit/b34f33747223d9cba4b32a27aee70c1705b36ed9
2020-12-24 09:23:35 -05:00
Jan Edmund Lazo f35118ade4 vim-patch:8.2.0907: when using :global clipboard isn't set correctly
Problem:    When using :global clipboard isn't set correctly.
Solution:   Set "clip_unnamed_saved" instead of "clip_unnamed". (Christian
            Brabandt, closes vim/vim#6203, closes vim/vim#6198)
https://github.com/vim/vim/commit/07188fc5ef2366a3b1952e8686a4031b44152d59
2020-12-24 09:18:33 -05:00
Jan Edmund Lazo 172f619b9a vim-patch:8.1.1837: popup test fails if clipboard is supported but not working
Problem:    Popup test fails if clipboard is supported but not working.
Solution:   Add the "clipboard_working" feature. Also use Check commands
            instead of "if" and "throw".  And remove stray ch_logfile().
https://github.com/vim/vim/commit/4999a7fb6585915b53888c930067b33c01674678

Treat "clipboard_working" feature as an alias to "clipboard" feature.

N/A patches for version.c:

vim-patch:8.1.1840: Testing: WorkingClipboard() is not accurate

Problem:    Testing: WorkingClipboard() is not accurate.
Solution:   Check feature clipboard_working instead.
https://github.com/vim/vim/commit/52992feafe8a996fbce29b97ae135abc169aa716

Neovim did not port WorkingClipboard() for the legacy tests.
2020-12-24 09:18:33 -05:00
Jan Edmund Lazo 6897ce4417 vim-patch:8.2.2197: assert arguments order reversed
Problem:    Assert arguments order reversed.
Solution:   Swap the arguments. (Christian Brabandt, closes vim/vim#7531)
https://github.com/vim/vim/commit/9f63a65f22b6a899925ba15adbb711e86251114e
2020-12-24 09:18:33 -05:00
Björn Linse 4dfc5bb2d0 Merge pull request #13537 from bfredl/rpcabort
rpc: don't handle stale requests on already closed channel
2020-12-24 14:34:47 +01:00
Jan Edmund Lazo 7afd4526f2 Merge pull request #13591 from janlazo/vim-8.1.1805
vim-patch:8.1.1805,8.2.{116,1025}
2020-12-23 21:37:08 -05:00
Matthieu Coudron 7add3ef996 fix: appease linter 2020-12-24 00:21:05 +01:00
Björn Linse 95352f490a rpc: don't handle stale requests on already closed channel 2020-12-23 23:58:56 +01:00
Josh French 6eecd4230d lsp: Fire LspDiagnosticsChanged before returning (#13483)
Run hook even when transitioning from some diagnostics to no diagnostics
2020-12-23 23:29:37 +01:00
Matthieu Coudron 45166313cc refactor: de-curwin-ify update_topline/curs_columns 2020-12-23 16:53:35 +01:00
Matthieu Coudron 4d9520ec86 refactor: pass the window to get_(side)scrolloff_value
to less rely on curwin
2020-12-23 16:21:10 +01:00
Jan Edmund Lazo e193dbd7e8 vim-patch:8.2.1025: tabpage menu and tabline not sufficiently tested
Problem:    Tabpage menu and tabline not sufficiently tested.
Solution:   Add tests. (Yegappan Lakshmanan, closes vim/vim#6307)
https://github.com/vim/vim/commit/8c524f76ebd43f006e765534765b595de7095f12

Cherry-pick Test_entering_digraph() from patch v8.2.1022.
Cherry-pick :CheckGui from patch v8.1.1826.
2020-12-23 02:29:43 -05:00
Jan Edmund Lazo afa5a11363 vim-patch:8.2.0116: BufEnter autocmd not triggered on ":tab drop"
Problem:    BufEnter autocmd not triggered on ":tab drop". (Andy Stewart)
Solution:   Decrement autocmd_no_enter for the last file. (closes vim/vim#1660,
            closes vim/vim#5473)
https://github.com/vim/vim/commit/c10b521628f2b073fa231defa26f23937c91724d

N/A patches for version.c:

vim-patch:8.1.1805: au_did_filetype is declared twice

Problem:    Au_did_filetype is declared twice.
Solution:   Remove it from autocmd.c. (closes vim/vim#4767)
https://github.com/vim/vim/commit/6cd57d44669c02af9195f5601b882edd435b47e8
2020-12-23 02:21:46 -05:00
Jan Edmund Lazo d0668b36a3 Merge pull request #13586 from janlazo/vim-8.1.1047
vim-patch:8.1.{1047,1101,1212},8.2.{742,749,769,874,2142,2189,2192}
2020-12-22 19:53:44 -05:00
Jan Edmund Lazo b602fe74b0 vim-patch:8.2.2189: cannot repeat a command that uses the small delete register
Problem:    Cannot repeat a command that uses the small delete register.
Solution:   Store the register name instead of the contents. (Christian
            Brabandt, closes vim/vim#7527)
https://github.com/vim/vim/commit/032a2d050b82b146d70d6ff714838ee62c07d8ad

N/A patches for version.c:

vim-patch:8.2.2192: Codecov on github actions fails

Problem:    Codecov on github actions fails.
Solution:   Revert to codecov script. (Ozaki Kiichi, closes vim/vim#7529)
https://github.com/vim/vim/commit/e5492609b3a153c631f1d600ecdef1af1c913bef
2020-12-22 18:15:01 -05:00
Jan Edmund Lazo 0561243771 vim-patch:8.2.2142: memory leak when heredoc is not terminated
Problem:    Memory leak when heredoc is not terminated.
Solution:   Free heredoc_trimmed.
https://github.com/vim/vim/commit/fffdf4754f4fd789c64596bdd9ea069725e63784
2020-12-22 18:08:47 -05:00
Jan Edmund Lazo dd515b7097 vim-patch:8.2.0874: signals test is a bit flaky
Problem:    Signals test is a bit flaky.
Solution:   Flush the XautoOut file.  Delete files that may be left behind
            from a failure. (Dominique Pelle, closes vim/vim#6179)
https://github.com/vim/vim/commit/d14fd5285e491a39028c4b4722ddbe7c9dfa9bb2
2020-12-22 18:08:47 -05:00
Jan Edmund Lazo caf2620f18 vim-patch:8.2.0769: VimLeavePre not triggered when Vim is terminated
Problem:    VimLeavePre not triggered when Vim is terminated.
Solution:   Unblock autocommands.
https://github.com/vim/vim/commit/129d6bf6b3d120b0a4c69e18b5e8602a84e352bf
2020-12-22 18:08:47 -05:00
Jan Edmund Lazo 40f9b1dd2c vim-patch:8.2.0749: TERM signal test fails on FreeBSD
Problem:    TERM signal test fails on FreeBSD.
Solution:   Do not check the messages, the may appear anywhere. (Dominique
            Pelle, closes vim/vim#6075)
https://github.com/vim/vim/commit/55ba4b844f1b0e44f0f2e1bd14d26e7ad2df9ffc
2020-12-22 18:08:35 -05:00
Jan Edmund Lazo 8355ea2588 vim-patch:8.2.0742: handling of a TERM signal not tested
Problem:    Handling of a TERM signal not tested.
Solution:   Add a test for SIGTERM. (Dominique Pelle, closes vim/vim#6055)
https://github.com/vim/vim/commit/48a687148c4649f6f55b36a1f4111041e7207235
2020-12-22 18:08:35 -05:00
Jan Edmund Lazo 0914faf7fa vim-patch:8.1.1212: signal PWR is not tested
Problem:    Signal PWR is not tested.
Solution:   Test that PWR updates the swap file. (Dominique Pelle,
            closes vim/vim#4312)
https://github.com/vim/vim/commit/520e245237fa92f9022968a52eb418da6eade9b4
2020-12-22 18:08:35 -05:00
Jan Edmund Lazo 7e63bbe4ec vim-patch:8.1.1101: signals test may fail in the GUI
Problem:    Signals test may fail in the GUI.
Solution:   Skip the test for the GUI. (Yee Checng Chin, closes vim/vim#4202)
https://github.com/vim/vim/commit/690a905a0199f5ff733e5a12be9ba94ae6043ef4
2020-12-22 18:08:35 -05:00
Jan Edmund Lazo 2b781a6d7f vim-patch:8.1.1047: WINCH signal is not tested
Problem:    WINCH signal is not tested.
Solution:   Add a test. (Dominique Pelle, closes vim/vim#4158)
https://github.com/vim/vim/commit/db77b84ac2b6373ae4200d47945fc6ca64337e31
2020-12-22 18:08:35 -05:00
notomo b931a554d7 GHA/osx: workaround for brew update error (#13584) 2020-12-22 08:47:46 -05:00
Jan Edmund Lazo 7b65a9135e Merge pull request #13581 from janlazo/vim-8.2.2174
vim-patch:8.2.{2174,2175,2176,2177,2181}
2020-12-21 22:30:15 -05:00
Jan Edmund Lazo 07425d45e6 vim-patch:8.2.2181: valgrind warnings for using uninitialized value
Problem:    Valgrind warnings for using uninitialized value.
Solution:   Do not use "start" or "end" unless there is a match.
https://github.com/vim/vim/commit/a3d10a508c404a32485adc86284725e0bdc5b602
2020-12-21 21:34:18 -05:00
Jan Edmund Lazo 1eab3584ba vim-patch:8.2.2177: pattern "^" does not match if first character is combining
Problem:    Pattern "^" does not match if the first character in the line is
            combining. (Rene Kita)
Solution:   Do accept a match at the start of the line. (closes vim/vim#6963)
https://github.com/vim/vim/commit/ef2dff52de52c17fe1bd7c06cbb32d8955901f5a
2020-12-21 21:27:13 -05:00
Jan Edmund Lazo 5e80b90ef4 vim-patch:8.2.2176: crash with a sequence of fold commands
Problem:    Crash with a sequence of fold commands.
Solution:   Bail out when there are no folds at all.  Add a test (Dominique
            Pellé) (closes vim/vim#7515)
https://github.com/vim/vim/commit/6a78f328442073c32d58eafc13ce5a1ca7729eeb

N/A patches for version.c:

vim-patch:8.2.2174: Mac version doesn't specify the CPU architecture

Problem:    Mac version doesn't specify the CPU architecture.
Solution:   Add "arm64" or "x86_64". (Yee Cheng Chin, closes vim/vim#7519)
https://github.com/vim/vim/commit/8c9d98a8af5351a3ac98cf11dede9f0268461511

vim-patch:8.2.2175: github actions: clang-11 handling suboptimal

Problem:    Github actions: clang-11 handling suboptimal.
Solution:   Separate step of installing clang-11. Get ubuntu release name
            dynamically. (Ozaki Kiichi, closes vim/vim#7514)
https://github.com/vim/vim/commit/9aff970204234193045cfee205d51e2393e93bfd
2020-12-21 19:10:43 -05:00
Nils aa3b17d04a lsp: Add <nomodeline> to doautocmd calls (#13576)
When using "au User LspDiagnosticsChanged redrawstatus!", modelines get processed again (see h: doautocmd). Fortunately this can be suppressed using the <nomodeline> flag. this replaces every doautocmd call, that issues a User command, with doautocmd <nomodeline>.
2020-12-21 20:03:50 +01:00
Jan Edmund Lazo f15441be4b Merge pull request #13573 from janlazo/vim-8.1.1872
vim-patch:8.1.1872,8.2.1966
2020-12-21 09:28:26 -05:00
Jan Edmund Lazo ebb0cbc6cc vim-patch:8.2.1966: popup becomes current window after closing a terminal window
Problem:    Popup becomes current window after closing a terminal window.
Solution:   When restoring the window after executing autocommands, check that
            the window ID is still the same.  (Naruhiko Nishino,
            closes vim/vim#7272)
https://github.com/vim/vim/commit/cbcd9cbd77acc8cc97c0d44683d96c01d3dd0fa7
2020-12-20 23:17:03 -05:00
Jan Edmund Lazo d1142e02bf vim-patch:8.1.1872: when Vim exits because of a signal, VimLeave is not triggered
Problem:    When Vim exits because of a signal, VimLeave is not triggered.
            (Daniel Hahler)
Solution:   Unblock autocommands when triggering VimLeave. (closes vim/vim#4818)
https://github.com/vim/vim/commit/c7226684c82dde7eb6601e067ee2e9387e447903
2020-12-20 20:36:55 -05:00
Jan Edmund Lazo a1ec36ff31 Merge pull request #13572 from janlazo/vim-8.2.0180
vim-patch:8.2.{180,686,2166,2171}
2020-12-20 19:22:18 -05:00
Jan Edmund Lazo afe7c43025 vim-patch:8.2.2171: valgrind warning for using uninitialized value
Problem:    Valgrind warning for using uninitialized value.
Solution:   Do not use "startp" or "endp" unless there is a match.
https://github.com/vim/vim/commit/61e07b2394e12f757160cac421ec5c45dc4c074d
2020-12-20 18:13:17 -05:00
Jan Edmund Lazo 06869a6940 vim-patch:8.2.2166: auto format doesn't work when deleting text
Problem:    Auto format doesn't work when deleting text.
Solution:   Make "x" trigger auto format. (closes vim/vim#7504)
https://github.com/vim/vim/commit/d0a1dee3f197d41434df4cf0271066b6aeb690fc
2020-12-20 17:03:36 -05:00
Jan Edmund Lazo 0476f049f4 vim-patch:8.2.0686: formatoptions not sufficiently tested
Problem:    Formatoptions not sufficiently tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#6031)
https://github.com/vim/vim/commit/2eaeaf3c317a5145fb0bc926411561d50883019b

Cherry-pick Test_fo_a_w() from patch v8.2.0482.
2020-12-20 17:00:34 -05:00
Jan Edmund Lazo 7fc59461a8 vim-patch:8.2.0180: test for wrapmargin fails if terminal is not 80 columns
Problem:    Test for wrapmargin fails if terminal is not 80 columns.
Solution:   Vertical split the window. (Ken Takata, closes vim/vim#5554)
https://github.com/vim/vim/commit/0c3064b39b4cd4f22fe1eab5438fe691d7cc80d1
2020-12-20 16:56:37 -05:00
Matthieu Coudron 1e59134834 lsp: add $/progress report (#13294)
Heavily inspired by https://github.com/nvim-lua/lsp-status.nvim.
listen to the LspProgressUpdate event to update your statusline.
2020-12-20 21:59:25 +01:00
Jan Edmund Lazo b1711e6f92 foldcolumn: support "auto" (#13571)
"set foldcolumn=auto" is documented but not supported.
Support it by making it behave as "auto:1", similar to "signcolumn".

Close https://github.com/neovim/neovim/pull/13561
2020-12-20 15:20:42 -05:00
Mathias Fußenegger abcbc5a9f3 lsp: Fix text payload in didSave notification (#13363)
According to the specification[1] the payload must look like this:

    interface DidSaveTextDocumentParams {
    	/**
    	 * The document that was saved.
    	 */
    	textDocument: TextDocumentIdentifier;

    	/**
    	 * Optional the content when saved. Depends on the includeText value
    	 * when the save notification was requested.
    	 */
    	text?: string;
    }

`text` must be on the same level as `textDocument´.

Where `TextDocumentIdentifier` is:

    interface TextDocumentIdentifier {
	/**
	 * The text document's URI.
	 */
	uri: DocumentUri;
    }

[1]: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_didSave
2020-12-20 18:12:39 +01:00
Mitchell Hanberg fa46123998 doc: Fix vim.lsp.diagnostic.get_next (#13495) 2020-12-20 16:17:11 +01:00
Jan Edmund Lazo 8e9aa81919 vim-patch:8.2.1289: crash when using a custom completion function (#13565)
Problem:    Crash when using a custom completion function.
Solution:   Initialize all of the expand_T. (closes vim/vim#6532)
https://github.com/vim/vim/commit/c841afff6a89592f23710c6da5b0fea89b240937

Cherry-pick CLEAR_POINTER macro from patch v8.2.0559.

N/A patches for version.c:

vim-patch:8.1.1295: when vimrun.exe does not exist external command may fail

Problem:    When vimrun.exe does not exist external command may fail.
Solution:   Use "cmd /c" twice to get the same behavior. (Ken Takata,
            closes vim/vim#4355)
https://github.com/vim/vim/commit/98ffe4c6d8bded840436cfec0f26dd9c9bce4939

vim-patch:8.2.2155: warning from Github actions for code analysis

Problem:    Warning from Github actions for code analysis.
Solution:   Remove the "git checkout HEAD^2" block.
https://github.com/vim/vim/commit/18f69229c581a0f738145cdec70df66723a518fc

vim-patch:8.2.2156: Github actions run on pusing a tag

Problem:    Github actions run on pusing a tag.
Solution:   Don't run CI on tag push. Omit coveralls on pull-request.
            (Ozaki Kiichi, closes vim/vim#7489)
https://github.com/vim/vim/commit/b5b77378bc35cb268c384e98c59f2bf8cb406270

vim-patch:8.2.2158: CI on cirrus times out, coveralls doesn't always run

Problem:    CI on cirrus times out, coveralls doesn't always run.
Solution:   Set timeout to 20 minutes. Adjust condition. (closes vim/vim#7493)
https://github.com/vim/vim/commit/6e562fcc07c71ad1437c89c3d3cc423efb691f0a
2020-12-20 16:14:19 +01:00