Commit Graph

16932 Commits

Author SHA1 Message Date
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
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
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
James McCoy
c3b9c35876
Merge pull request #13538 from jamessan/mac-locale
fix: Include auto/config.h before HAVE_* preprocessor checks
2020-12-15 08:54:04 -05:00
Steven Sojka
929f194145 feat(treesitter): add offset predicate for language injection
refactor(treesitter): add directives to queries
2020-12-15 07:03:47 -06:00
James McCoy
6c2eb903a9
fix: Include auto/config.h before HAVE_* preprocessor checks
Closes #13533
2020-12-15 07:43:44 -05:00
notomo
356319f356 api: add textlock check 2020-12-15 20:24:33 +09:00
erw7
82100a6bdb
healthcheck: fix health check issue with shada file (#13291)
- If the shada file is set with shada option n, use it.
- If the shadafile is NONE, it does not check for file read/write access.
- If the shada file does not exist, try to create it.
2020-12-13 21:49:29 -05:00
James McCoy
d6115c9964
Merge pull request #12624 from qvacua/build-arm64-mac 2020-12-13 21:25:04 -05:00
Matthew Nibecker
e8ae3ade77
Fix lsp tests breaking from new LuaJIT version
Apparently the new version of LuaJIT changed the consistency with which it
sorted table dictionaries. IIRC lua sorts dictionary keys by memory address, so
it would appear that the reasons tests were previously passing was because of
a differentiation in the implementation of the lua runtime.

Ensure that array fields in the lsp protocol tables are consistently created,
by using ipair when generating arrays for completionItemKind and
symbolItemKind.

For CodeActionKind, the current implementation includes both the keys and the
values in the array. This is incorrect. Ensure that only the values are
included in the array and sort them for consistency.
2020-12-13 21:03:27 -05:00
James McCoy
9c5b4c87e1
third-party: Always set DEPLOYMENT_TARGET when building LuaJIT on macOS
LuaJIT build now requires specifying a deployment target, so use the
same baseline as our nightly builds.

Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2020-12-13 21:03:27 -05:00
Tae Won Ha
27ddaa39db
Do not set pagezero_size and image_base for LuaJIT >= 2.1.0-beta3
This is properly handled in LuaJIT now and setting causes "Malformed
Mach-o file" error when running the resulting binary on arm64 Macs.
2020-12-13 21:03:27 -05:00
Tae Won Ha
12709c475b
Use the latest luajit for arm64 Mac compatibility. 2020-12-13 21:03:19 -05:00
Jan Edmund Lazo
0285fae5ec
Merge pull request #13526 from janlazo/vim-8.1.0839
vim-patch:8.1.{839,1630,2382},8.2.{669,739,1911,2136,2140}
2020-12-13 16:35:56 -05:00
Jan Edmund Lazo
cb579bbaed
vim-patch:8.1.1630: various small problems
Problem:    Various small problems.
Solution:   Various small improvements.
e809a4ed30
2020-12-13 15:58:41 -05:00
Jan Edmund Lazo
3026a5f41d
vim-patch:8.2.2136: Vim9: Using uninitialized variable
Problem:    Vim9: Using uninitialized variable.
Solution:   Initialize "len" to zero.  Clean up fnamemodify().
c530852315

N/A patches for version.c:

vim-patch:8.1.0839: when using VTP wrong colors after a color scheme change

Problem:    When using VTP wrong colors after a color scheme change.
Solution:   When VTP is active always clear after a color scheme change.
            (Nobuhiro Takasaki, closes vim/vim#3872)
f58d81a187

vim-patch:8.1.2382: MS-Windows: When using VTP bold+inverse doesn't work

Problem:    MS-Windows: When using VTP bold+inverse doesn't work.
Solution:   Compare with the default colors. (Nobuhiro Takasaki, closes vim/vim#5303)
a050b9471c

vim-patch:8.2.0669: MS-Windows: display in VTP is a bit slow

Problem:    MS-Windows: display in VTP is a bit slow.
Solution:   Optimize the code. (Nobuhiro Takasaki, closes vim/vim#6014)
4e5534fab7

vim-patch:8.2.0739: incomplete profiling when exiting because of a dealy signal

Problem:    Incomplete profiling when exiting because of a dealy signal.
Solution:   Call __gcov_flush() if available.
b415168a98

vim-patch:8.2.1911: tiny build fails

Problem:    Tiny build fails.
Solution:   Add #ifdef.
977fd0b327

vim-patch:8.2.2140: build failure with tiny features

Problem:    Build failure with tiny features.
Solution:   Add #ifdef.
2a3cd3af45
2020-12-13 15:40:19 -05:00
Jan Edmund Lazo
9c56d8e5f7
Merge pull request #13522 from janlazo/vim-8.2.2130
vim-patch:8.1.1089,8.2.2130
2020-12-12 17:49:09 -05:00
Jan Edmund Lazo
d5ab4b800c
vim-patch:8.1.1089: tutor does not check $LC_MESSAGES
Problem:    Tutor does not check $LC_MESSAGES.
Solution:   Let $LC_MESSAGES overrule $LANG. (Miklos Vajna, closes vim/vim#4112)
b44b7add8a
2020-12-12 16:38:23 -05:00
Jan Edmund Lazo
7bbe8a4900
vim-patch:8.2.2130: Insert mode completion messages end up in message history
Problem:    Insert mode completion messages end up in message history.
Solution:   Set msg_hist_off. (closes vim/vim#7452
cc2335896b
2020-12-12 14:07:16 -05:00
Jan Edmund Lazo
257c0f89a9
Merge pull request #13523 from janlazo/javascript-runtime
Update Javascript runtime
2020-12-12 13:31:47 -05:00
Jan Edmund Lazo
4fa6aa90ad
runtime/javascript: 207f009326c8f878defde0e594d7d9ed9860106e
Port javascript and javascript react ftplugins only.
2020-12-12 11:40:25 -05:00
Jan Edmund Lazo
a8860b033f
runtime/javascript: e7b1ea0276cc83cd5c612f3189a174a60d57b5ed
Port javascript autocomplete file only.
2020-12-12 11:38:33 -05:00
Jan Edmund Lazo
a2f8a795cd
runtime/javascript: 388a5d4f20b4b64341d1604aa238cab85827b892
Port javascript syntax file only.

Ref https://github.com/neovim/neovim/issues/13185
2020-12-12 11:38:31 -05:00
Jan Edmund Lazo
552ff68349
runtime/javascript: 09c6f265b21065ffa9437837b1d0955137175e45
Port javascriptreact.vim syntax only.

Ref https://github.com/neovim/neovim/issues/13185
2020-12-12 11:38:28 -05:00
Jan Edmund Lazo
e2be382977
runtime/javascript: 5be4ceecea5520265066eac972460ebb1cdf05e7
Port javascript syntax files only.

Ref: https://github.com/neovim/neovim/issues/13185
2020-12-12 11:38:25 -05:00
Jan Edmund Lazo
4f9e7a512d
Merge pull request #13521 from janlazo/nvim-8.1.2246
vim-patch:8.1.2246
2020-12-12 09:07:23 -05:00
Björn Linse
b6723e1ea0
Merge pull request #13486 from bfredl/bufnoreload
fileio: detach buffer when buffer was reloaded (like with :edit)
2020-12-12 09:55:49 +01:00
Jan Edmund Lazo
da5c547ee3
vim-patch:8.1.2246: some tests are still in old style
Problem:    Some tests are still in old style.
Solution:   Change a few tests to new style. (Yegappan Lakshmanan)
1f068233c1
2020-12-11 23:39:11 -05:00
Jan Edmund Lazo
cb8e0d07b3
test/old: cherry-pick patch v8.1.1955 changes for test_trycatch.vim 2020-12-11 23:39:10 -05:00
Jan Edmund Lazo
aed5a53d5f
test/old: cherry-pick patch 8.1.0711 changes for test_trycatch.vim 2020-12-11 23:39:10 -05:00
Jan Edmund Lazo
cacdef5ff1
Merge pull request #13489 from janlazo/issue-13485
eval: executable(), exepath() accept strings only
2020-12-11 23:36:15 -05:00
Jan Edmund Lazo
da58242fb8
test/functional/eval: assert that executable() fixtures are executable 2020-12-11 22:59:43 -05:00
Jan Edmund Lazo
5ccc79e880
eval: executable(), exepath() accept strings only
Cherry-pick f_executable(), f_exepath(), check_for_string() from patch 8.2.2117.
Rename check_for_string() to tv_check_for_string().
7bb4e74c38

Close https://github.com/neovim/neovim/issues/13485
2020-12-11 21:20:20 -05:00
Jan Edmund Lazo
062576f679
vim-patch:8.2.0047: cannot skip tests for specific MS-Windows platform (#13461)
Problem:    Cannot skip tests for specific MS-Windows platform.
Solution:   Add windowsversion().
0c1e3744ff
2020-12-11 19:45:22 -05:00
Edwin Pujols
a82bcf9d9c
unused macros: Remove a five unused macros. (#13517)
Removes:
- GET_CHARTAB
- PRT_PS_DEFAULT_BUFFER_SIZE
- key_t
- PROP_MASK
- SCTX_INIT

Referring #13505.
2020-12-11 19:41:20 -05:00
Edwin Pujols
f2ec058602
tests: Take into account magic hyphen. (#13518)
In Lua patterns the hyphen works like a non-greedy version of Vim's `*`.
- Use `%-` when you need a literal hyphen.
- If you don't need a regular expression at all, use something like
  ```
  string.find(text, pattern, 1, true)
  ```
  so that the pattern is regarded as a plain, non-magical string.
  See [1] and [2] in the Lua manual.

[1]: https://www.lua.org/manual/5.1/manual.html#pdf-Patterns
[2]: https://www.lua.org/manual/5.1/manual.html#pdf-string.find
2020-12-11 18:54:39 -05:00
James McCoy
4620ad604f
Merge pull request #13515 from neovim/revert-13514-patch-1
Revert "Use oldest macOS version for release workflow"
2020-12-11 13:07:30 -05:00
James McCoy
50a76a0e5d
Revert "Use oldest macOS version for release workflow" 2020-12-11 13:07:07 -05:00
James McCoy
b8e12ebf20
Merge pull request #13514 from mhanberg/patch-1
Use oldest macOS version for release workflow
2020-12-11 12:40:19 -05:00
Mitchell Hanberg
81aa780909
Use oldest macOS version for release workflow 2020-12-11 11:57:19 -05:00
Jan Edmund Lazo
77c60206df
vim-patch:8.1.1900: sign test fails in the GUI (#13511)
Problem:    Sign test fails in the GUI.
Solution:   Catch and ignore the exception.
d933c82ff4

Port Test_sign_funcs() changes from patch 8.1.1899.
Test_sign_funcs_multi() in patch 8.1.1899 cannot be ported
without earlier sign patches..

N/A patches for version.c:

vim-patch:8.1.0954: arguments of semsg() and siemsg() are not checked

Problem:    Arguments of semsg() and siemsg() are not checked.
Solution:   Add function prototype with __attribute__.
0d8562a999

vim-patch:8.2.2126: Ruby: missing function prototype

Problem:    Ruby: missing function prototype.
Solution:   Add the prototype.
0e12140550
2020-12-11 10:10:33 -05:00
Edwin Pujols
763de8dd8f
macros.h: Remove unused CURSOR_BAR_RIGHT macro. (#13506)
Closes #13505.
2020-12-11 07:43:29 -05:00