Commit Graph

17123 Commits

Author SHA1 Message Date
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)
48a687148c
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)
520e245237
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)
690a905a01
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)
db77b84ac2
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.
a3d10a508c
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)
ef2dff52de
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)
6a78f32844

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)
8c9d98a8af

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)
9aff970204
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)
cbcd9cbd77
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)
c7226684c8
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.
61e07b2394
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)
d0a1dee3f1
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)
2eaeaf3c31

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)
0c3064b39b
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)
c841afff6a

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)
98ffe4c6d8

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.
18f69229c5

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)
b5b77378bc

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)
6e562fcc07
2020-12-20 16:14:19 +01:00
Jan Edmund Lazo
9539d46bb1
Merge pull request #13563 from janlazo/vim-8.2.2161
vim-patch:8.1.0470,8.2.{2161,2163}
2020-12-20 02:06:53 -05:00
Jan Edmund Lazo
7390cc8b29
vim-patch:8.1.0470: pointer ownership around fname_expand() is unclear
Problem:    Pointer ownership around fname_expand() is unclear.
Solution:   Allow b_ffname and b_sfname to point to the same allocated memory,
            only free one.  Update comments.
3d6014f033
2020-12-19 22:52:30 -05:00
Jan Edmund Lazo
e465157ecd
vim-patch:8.2.2163: crash when discarded exception is the current exception
Problem:    Crash when discarded exception is the current exception.
Solution:   Compare the execption with current_exception. (closes vim/vim#7499)
13656f02e4
2020-12-19 21:38:17 -05:00
Jan Edmund Lazo
6ee8964d46
vim-patch:8.2.2161: arguments -T and -x not tested yet
Problem:    Arguments -T and -x not tested yet.
Solution:   Add a test. (Dominique Pellé, closes vim/vim#7490
1f33e0a7c4

Neovim does not support '-T' command line argument so skip the test.

Ref a16eab9e57
2020-12-19 21:30:12 -05:00
Jan Edmund Lazo
7e4c912565
Merge pull request #13559 from janlazo/vim-8.2.0162
vim-patch:8.1.1657,8.2.{162,262,264,272}
2020-12-19 15:18:33 -05:00
Jan Edmund Lazo
fb0ecf9e70
GHA/osx: remove python 2to3 2020-12-19 14:18:26 -05:00
Jan Edmund Lazo
f12bbf62cc
Merge pull request #13558 from TysonAndre/php-syntax-update
runtime/php: 1c6737b20a5cf71751b180461cea22fc76d8870c
2020-12-19 13:08:21 -05:00
Tyson Andre
a4c41ba931 runtime/php: 1c6737b20a5cf71751b180461cea22fc76d8870c
Port php syntax file only.

Ref https://github.com/neovim/neovim/issues/12844
2020-12-19 12:39:10 -05:00
Tyson Andre
cd0a4040c4 runtime/php: 47e13953ffdbb9f163b901196dec8c2100b72edd
Port php syntax file only.
2020-12-19 12:39:07 -05:00
Tyson Andre
bec4172aa9 runtime/php: 5ef1c6a4838a9629b793f3ae676f72a764171b00
Port php syntax file only.
2020-12-19 12:39:04 -05:00
Jan Edmund Lazo
5491a728fe
vim-patch:8.2.0272: ":helptags ALL" gives error for some directories
Problem:    ":helptags ALL" gives error for directories without write
            permission. (Matěj Cepl)
Solution:   Ignore errors for ":helptags ALL". (Ken Takata, closes vim/vim#5026,
            closes vim/vim#5652)
414b796627

Cherry-pick Test_helptag_cmd() from patch v8.2.0203.
2020-12-19 10:39:15 -05:00
Jan Edmund Lazo
945ae2c72b
vim-patch:8.1.1657: Terminal: screen updates from 'balloonexpr' are not displayed
Problem:    Terminal: screen updates from 'balloonexpr' are not displayed.
Solution:   Update the screen if needed.  Fix the word position for
            "mousemoved".
7ba343e634
2020-12-19 10:39:14 -05:00
Jan Edmund Lazo
b35061fb64
vim-patch:8.2.0264: fileformat test still fails on MS-Windows
Problem:    Fileformat test still fails on MS-Windows.
Solution:   Set fileformat of buffer in the right place.
a36c830a32
2020-12-19 10:39:14 -05:00
Jan Edmund Lazo
09b7163f5d
vim-patch:8.2.0262: fileformat test fails on MS-Windows
Problem:    Fileformat test fails on MS-Windows.
Solution:   Set fileformat of buffer.
50434bd74c

Cherry-pick Test_fileformat_plusplus_read() from patch v8.2.0261.
2020-12-19 10:39:14 -05:00
Kevin Svetlitski
46afc1def8
Add <Enter> to existing vim syntax highlighting for angle-bracket notation (#13553) 2020-12-19 10:22:50 -05:00
Jan Edmund Lazo
5ce328df40
vim-patch:8.1.0734: the hlsearch state is not stored in a session file (#13547)
Problem:    The hlsearch state is not stored in a session file.
Solution:   Add "nohlsearch" if appropriate. (Jason Franklin)
e3c74d249a

Vi default for 'sessionoptions' includes 'options'.
Use 'set sessionoptions&vi' to use Vim's default 'sessionoptions'.
If a test sets 'sessionoptions',
reset 'sessionoptions' at the end of the test.

N/A patches for version.c:

vim-patch:8.2.0119: message test fails on some platforms

Problem:    Message test fails on some platforms. (Elimar Riesebieter)
Solution:   Add type cast to vim_snprintf() argument. (Dominique Pelle)
1470dc35c4

vim-patch:8.2.0234: message test fails on SunOS

Problem:    Message test fails on SunOS.
Solution:   Adjust expectation for printf "%p". (Ozaki Kiichi, closes vim/vim#5595)
d5b9914938

vim-patch:8.2.2149: popupwin test for latin1 sometimes fails

Problem:    Popupwin test for latin1 sometimes fails.
Solution:   Wait for the script to finish.
4c5bdb99ad

vim-patch:8.2.2150: Github actions CI isn't used for all available platforms

Problem:    Github actions CI isn't used for all available platforms.
Solution:   Update the github workflows. (Ozaki Kiichi, closes vim/vim#7433)
8ea05de6aa

vim-patch:8.2.2151: $dir not expanded when configure checks for moonjit

Problem:    $dir not expanded when configure checks for moonjit.
Solution:   Use double quotes instead of single quotes. (closes vim/vim#7478)
a79a8944da

vim-patch:8.2.2153: popupwin test for latin1 still fails sometimes

Problem:    Popupwin test for latin1 still fails sometimes.
Solution:   Wait for the "cat" command to finish.
b125b535bb

vim-patch:8.2.2154: popupwin test for terminal buffer fails sometimes

Problem:    Popupwin test for terminal buffer fails sometimes.
Solution:   Wait for the prompt to appear.
0353f56ddb
2020-12-17 21:13:17 -05:00
Sean Dewar
f007a140ab
vim-patch:8.2.2147: quickfix window title not updated in all tab pages (#13545)
Problem:    Quickfix window title not updated in all tab pages.
Solution:   Update the quickfix window title in all tab pages. (Yegappan
            Lakshmanan, closes vim/vim#7481, closes vim/vim#7466)
530bed993e
2020-12-17 09:14:19 -05:00
erw7
934b8e172e GHA: integrate unix and windows settings 2020-12-17 15:47:11 +09:00
Björn Linse
2debabb080
Merge pull request #13355 from notomo/check-textlock-in-api
api: add textlock check
2020-12-16 15:40:21 +01:00
Björn Linse
5e202f69b3
Merge pull request #13367 from nvim-treesitter/offset-lang-injection
feat(treesitter): add offset predicate for language injection
2020-12-16 13:59:36 +01:00
notomo
30ef8c693c test: textlock api error 2020-12-16 21:57:24 +09:00
notomo
93ba977793 docs: add check_textlock attribute 2020-12-16 21:57:24 +09:00
Björn Linse
958ebc7337
Merge pull request #13539 from vigoux/ts-fix-icmnosplit
fix: also splice extmarks in preview buffers
2020-12-16 12:05:01 +01:00
erw7
abdb2b4d29 GHA: fix build problems on Windows 2020-12-16 15:27:35 +09:00
Thomas Vigouroux
d7051705d0 ci: setup GitHub actions for windows 2020-12-16 13:12:14 +09:00
Thomas Vigouroux
25e20da550
feat(buffer_updates): allow ignoring when previewing
Also adds a test that we actually subscribe to buffer events when in
CMDPREVIEW.
2020-12-15 22:29:27 +01:00
Thomas Vigouroux
d0112693a3
fix: also splice extmarks in preview windows
We indeed need to adjust extmarks in preview windows.

Fixes #12967
2020-12-15 15:34:55 +01:00