aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
Commit message (Collapse)AuthorAge
...
* | | | vim-patch:7.4.1228zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: copy() and deepcopy() fail with special variables. (Nikolai Pavlov) Solution: Make it work. Add a test. Closes vim/vim#614. https://github.com/vim/vim/commit/155500077c80cdb5d9c63996000c011b66a676bf Code is N/A. This only ports the tests. Comment out tests involving v:none as Nvim has removed it.
* | | | vim-patch:7.4.1181zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: free_tv() can't handle special variables. (Damien) Solution: Add the variable type. https://github.com/vim/vim/commit/6650a694547eb744afa060ec62dd8270e99db9f2 Code is N/A. This only ports the tests.
* | | | vim-patch:7.4.1178zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: empty() doesn't work for the new special variables. Solution: Make empty() work. (Damien) https://github.com/vim/vim/commit/767d8c1a1ae762ecf47297c168b8c23caf05d30a Code is N/A. This only ports the tests. Comment out tests involving v:none as Nvim has removed it.
* | | | vim-patch:7.4.1173zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No test for new behavior of v:true et al. Solution: Add a test. https://github.com/vim/vim/commit/65591001e405cbaaf9772c9375d0bb6049cf9a3a Comment out tests involving v:none as Nvim has removed it.
* | | | vim-patch:7.4.1167zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No tests for "is" and "isnot" with the new variables. Solution: Add tests. https://github.com/vim/vim/commit/04369229657f182d35b471eb8b38f273a4d9ef65 Comment out tests involving v:none as Nvim has removed it.
* | | | vim-patch:7.4.1164zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No tests for comparing special variables. Error in jsondecode() not reported. test_json does not work Japanse system. Solution: Set scriptencoding. (Ken Takata) Add a few more tests. Add error. https://github.com/vim/vim/commit/6039c7f05376f0e470cf62bf2757e653aea357f3 Code is N/A. This only ports the tests. Comment out tests involving v:none as Nvim has removed it.
* | | | vim-patch:7.4.1163zeertzjq2022-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Expressions "0 + v:true" and "'' . v:true" cause an error. Solution: Return something sensible when using a special variable as a number or as a string. (suggested by Damien) https://github.com/vim/vim/commit/17a13437c9414a8693369a97f3be2fc8ad48c12e Code is N/A. This only ports the tests. Comment out tests involving v:none as Nvim has removed it.
* | | | Merge pull request #17305 from zeertzjq/vim-8.2.1741zeertzjq2022-02-07
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.1741: pathshorten() only supports using one character
| * | | | vim-patch:8.2.1741: pathshorten() only supports using one characterzeertzjq2022-02-06
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: pathshorten() only supports using one character. Solution: Add an argument to control the length. (closes vim/vim#7006) https://github.com/vim/vim/commit/6a33ef0deb5c75c003a9f3bd1c57f3ca5e77327e Cherry-pick a line in test from patch 8.2.0634. Use Nvim's config paths in docs. shorten_dir() returning a pointer looks a bit confusing here, as it is actually the same pointer passed to it, and it doesn't really reduce much code, so change it back to void. Assigning rettv->vval.v_string = NULL is not needed if a pointer is within 64 bits. While this is usually the case, I'm not sure if it can be taken for granted.
* | | | Merge pull request #17279 from zeertzjq/state-enter-vpeekcbfredl2022-02-06
|\ \ \ \ | | | | | | | | | | fix(event-loop): call vpeekc() directly first to check for character
| * | | | fix(event-loop): call vpeekc() directly first to check for characterzeertzjq2022-02-03
| | | | | | | | | | | | | | | | | | | | Expand mappings first by calling `vpeekc()` directly.
* | | | | Merge pull request #17302 from lewis6991/pkg_ldrbfredl2022-02-06
|\ \ \ \ \ | | | | | | | | | | | | fix(lua): restore priority of the preloader
| * | | | | fix(lua): restore priority of the preloaderLewis Russell2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Neovim currently places its own loader for searching runtime files at the front of `package.loaders`. This prevents any preloaders in `package.preload` from being used. This change fixes that by moving the default package preloader to run before Neovim's loader. For example, LuaJIT provides preloaders for the built-in modules `ffi` and `bit`, so this optimisation will improve the loading of those.
* | | | | | Merge pull request #17306 from clason/vim-8.2.4305Christian Clason2022-02-06
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | * Vim 8.2.4305: tex filetype detection fails * Vim 8.2.4306: no test for fixed perl filetype check
| * | | | | | vim-patch:8.2.4306: no test for fixed perl filetype checkChristian Clason2022-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No test for fixed perl filetype check. Solution: Add a test. Sort test functions. https://github.com/vim/vim/commit/500761b1cf666f030009d2dcdacfdce28f68f43d
| * | | | | | vim-patch:8.2.4305: tex filetype detection failsChristian Clason2022-02-06
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Tex filetype detection fails. Solution: Check value to be positive. (closes vim/vim#9704) https://github.com/vim/vim/commit/e5b7897585eccec84431d8b23df5cde2e283828c
* | | | | | Merge pull request #17277 from laomaiweng/windows-debug-symbolsJames McCoy2022-02-06
|\ \ \ \ \ \ | |/ / / / / |/| | | | | build(win): package the debug symbols (PDB file) along with nvim.exe
| * | | | | build(win): don't try to package a PDB if not building with MSVC…Quentin Minster2022-02-03
| | | | | | | | | | | | | | | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
| * | | | | build(win): package the debug symbols (PDB file) along with nvim.exequentin2022-02-03
| | |/ / / | |/| | |
* | | | | Merge pull request #17194 from zeertzjq/inccommand-prev-subzeertzjq2022-02-06
|\ \ \ \ \ | | | | | | | | | | | | fix(inccommand): do not change reg_prev_sub when previewing
| * | | | | fix(inccommand): do not change reg_prev_sub when previewingzeertzjq2022-01-25
| | | | | |
* | | | | | Merge pull request #16862 from seandewar/vim-8.2.2658Sean Dewar2022-02-06
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.{2658,2661,2736}: for loop over strings
| * | | | | | feat(eval): port emsg from v8.2.3284Sean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/80d7395dcfe96158428da6bb3d28a6eee1244e28
| * | | | | | vim-patch:8.2.2661: leaking memory when looping over a stringSean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Leaking memory when looping over a string. Solution: Free the memory. https://github.com/vim/vim/commit/bb5d87c8504588be9c9d2fecc5b6455a2b2f6201
| * | | | | | vim-patch:8.2.2658: :for cannot loop over a stringSean Dewar2022-02-05
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :for cannot loop over a string. Solution: Accept a string argument and iterate over its characters. https://github.com/vim/vim/commit/74e54fcb447e5db32f9c2df34c0554bbecdccca2 v8.2.2659 is already ported. N/A patches for version.c: vim-patch:8.2.2736: Vim9: for loop over string is a bit slow Problem: Vim9: for loop over string is a bit slow. Solution: Avoid using strlen(). https://github.com/vim/vim/commit/175a41c13f3e27e30c662f2f418c5a347dbc645d
* | | | | | vim-patch:8.2.2363: curpos() does not accept a string argument as beforezeertzjq2022-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: curpos() does not accept a string argument as before. solution: Make a string argument work again. (Yegappan Lakshmanan, closes vim/vim#7690 https://github.com/vim/vim/commit/9ebcf231bdccc1673cc92b20f5190fc577ad29d0
* | | | | | vim-patch:8.2.2324: not easy to get mark en cursor posotion by character countzeertzjq2022-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Not easy to get mark en cursor posotion by character count. Solution: Add functions that use character index. (Yegappan Lakshmanan, closes vim/vim#7648) https://github.com/vim/vim/commit/6f02b00bb0958f70bc15534e115b4c6dadff0e06
* | | | | | vim-patch:8.2.1727: a popup created with "cursorline" will ignore "firstline"zeertzjq2022-02-06
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: A popup created with "cursorline" will ignore "firstline". Solution: When both "cursorline" and "firstline" are present put the cursor on "firstline". (closes vim/vim#7000) Add the "winid" argument to getcurpos(). https://github.com/vim/vim/commit/99ca9c4868bb1669706b9e3de9a9218bd11cc459 Skip popup window related code. Cherry-pick all of Test_getcurpos_setpos() from patch 8.2.0610.
* | | | | fix(diff): make algorithm work for vim.diff (#17300)Lewis Russell2022-02-05
| | | | | | | | | | | | | | | Fixes #17207
* | | | | Merge pull request #17199 from glacambre/fix_9358bfredl2022-02-05
|\ \ \ \ \ | | | | | | | | | | | | fix(--headless): do not block on press-enter prompts when no UI
| * | | | | fix(--headless): do not block on press-enter prompts when no UIglacambre2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes #9358, where emitting multiple messages with 'echo' or a single one with 'echom' or 'echoerr' would result in a press-enter prompt that couldn't be dismissed by pressing enter. This requires adapting a few tests to spawn a UI before testing whether press-enter prompts are blocking. It also fixes #11718, as when combined with #15910 it enables making sure that neovim never blocks and emits messages on startup.
* | | | | | Merge pull request #17020 from seandewar/vim-8.1.2342Sean Dewar2022-02-05
|\ \ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.1.{2342,2343,2356,2357},8.2.0233: `rand` and `srand`
| * | | | | | vim-patch:8.2.0233: crash when using garbagecollect() in between rand()Sean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using garbagecollect() in between rand(). Solution: Redesign the rand() and srand() implementation. (Yasuhiro Matsumoto, closes vim/vim#5587, closes vim/vim#5588) https://github.com/vim/vim/commit/4f645c54efe33d7a11e314676e503118761f08a7 Omit test_srand_seed. Unmacroify SHUFFLE_XOSHIRO128STARSTAR and SPLITMIX32 while we're at it (leave ROTL alone as it's fairly innocent).
| * | | | | | vim-patch:8.1.2357: no test with wrong argument for rand()Sean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: No test with wrong argument for rand(). Solution: Add a test case. https://github.com/vim/vim/commit/68e9e5f7fccb8038cf0ca5b5d95c85a923152f46
| * | | | | | vim-patch:8.1.2356: rand() does not use the best algorithmSean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: rand() does not use the best algorithm. Solution: use xoshiro128** instead of xorshift. (Kaito Udagawa, closes vim/vim#5279) https://github.com/vim/vim/commit/f8c1f9200c4b50969a8191a4fe0b0d09edb38979
| * | | | | | vim-patch:8.1.2343: using time() for srand() is not very randomSean Dewar2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using time() for srand() is not very random. Solution: use /dev/urandom if available https://github.com/vim/vim/commit/07e4a197953d12902fb97beb48830a5323a52280 Use os_open and os_close. time_settime is N/A, so some parts of the test are disabled. There's maybe a very, very, very, very small chance the /dev/urandom test fails, but it shouldn't matter. :P
| * | | | | | vim-patch:8.1.2342: random number generator in Vim script is slowSean Dewar2022-02-05
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Random number generator in Vim script is slow. Solution: Add rand() and srand(). (Yasuhiro Matsumoto, closes vim/vim#1277) https://github.com/vim/vim/commit/06b0b4bc27077013e9b4b48fd1d9b33e543ccf99 Add missing method call usage to builtin.txt. vim_time and test_settime is N/A. Add a modeline to test_random.vim. Use typval_T* over listitem_T* vars so we don't need to use TV_LIST_ITEM_TV all over the place... Remove NULL list checks (tv_list_len covers this).
* / / / / / vim-patch:8.2.4298: divide by zero with huge tabstop valuezeertzjq2022-02-05
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Divide by zero with huge tabstop value. Solution: Reject tabstop value that overflows to zero. https://github.com/vim/vim/commit/fc88df42f1ae64bcc4d6cbc0fbd3445f8c59afdf
* | | | | Merge pull request #17275 from bfredl/keysethlbfredl2022-02-05
|\ \ \ \ \ | | | | | | | | | | | | refactor(api): use a keyset for highlight dicts
| * | | | | refactor(api): use a keyset for highlight dictsBjörn Linse2022-02-02
| | |/ / / | |/| | |
* | | | | test(old): add test_expand.vimzeertzjq2022-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes expand_spec.lua and copies test_expand.vim from Vim at version v8.1.2278. The rest of patch 8.1.2278 were already applied in #15952, so this marks that patch as fully ported. vim-patch:8.1.2278: using "cd" with "exe" may fail Problem: Using "cd" with "exe" may fail. Solution: Use chdir() instead. https://github.com/vim/vim/commit/3503d7c94a6c8c2a5ca1665d648d0cb81afcc863
* | | | | Merge pull request #17288 from zeertzjq/vim-8.2.1128zeertzjq2022-02-04
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.2.1128: the write message mentions characters, but it's bytes
| * | | | | vim-patch:8.2.1128: the write message mentions characters, but it's byteszeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The write message mentions characters, but it's actually bytes. Solution: Change "C" to "B" and "characters" to "bytes". https://github.com/vim/vim/commit/3f40ce78f5c178d15871bd784ed878c78f0b8a44
* | | | | | vim-patch:8.1.2133: some tests fail when run as rootzeertzjq2022-02-04
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Some tests fail when run as root. Solution: Add CheckNotRoot and use it. (James McCoy, closes vim/vim#5020) https://github.com/vim/vim/commit/07282f01da06c158bab4787adc89ec15d7eeb202 Skip test_terminal.vim and test_viminfo.vim: N/A
* | | | | vim-patch:8.2.3583: the "gd" and "gD" commands do not update search statszeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: The "gd" and "gD" commands do not update search stats. (Gary Johnson) Solution: Clear search stats. https://github.com/vim/vim/commit/0c71114aede81a209b7efc126b4bf19f11d58955
* | | | | test(old): fix test order in test_search_stat.vimzeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | Also avoid unnecessary divergences from upstream and add a modeline.
* | | | | Merge pull request #17272 from zeertzjq/vim-8.1.0846zeertzjq2022-02-04
|\ \ \ \ \ | | | | | | | | | | | | vim-patch:8.1.{0846,0878,0884,2358},8.2.{0305,0352,0687,3797}
| * | | | | vim-patch:8.2.0687: some tests do not work on FreeBSDzeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Some tests do not work on FreeBSD. Solution: Enable modeline. Use WaitFor() in more cases. (Ozaki Kiichi, closes vim/vim#6036) https://github.com/vim/vim/commit/41d4299f26cc98e253f9c63f8adc9dbb9d49ed5c
| * | | | | vim-patch:8.2.0352: FreeBSD: test for sourcing utf-8 is skippedzeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: FreeBSD: test for sourcing utf-8 is skipped. Solution: Run the matchadd_conceal test separately to avoid that setting 'term' to "ansi" causes problems for other tests. (Ozaki Kiichi, closes vim/vim#5721) https://github.com/vim/vim/commit/36ddf9383181f93b080eb26121bdff37e394d2db
| * | | | | vim-patch:8.2.0305: relativenumber test fails on some systemszeertzjq2022-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Relativenumber test fails on some systems. (James McCoy) Solution: Clear the command line. https://github.com/vim/vim/commit/8040a7147f5b896a702d1684e7831df107490f45