| Commit message (Collapse) | Author | Age |
| ... | |
| |\ \
| | |
| | | |
vim-patch:8.2.1741: pathshorten() only supports using one character
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: No test for fixed perl filetype check.
Solution: Add a test. Sort test functions.
https://github.com/vim/vim/commit/500761b1cf666f030009d2dcdacfdce28f68f43d
|
| |/ /
| |
| |
| |
| |
| | |
Problem: Tex filetype detection fails.
Solution: Check value to be positive. (closes vim/vim#9704)
https://github.com/vim/vim/commit/e5b7897585eccec84431d8b23df5cde2e283828c
|
| |\ \
| | |
| | | |
vim-patch:8.2.{2658,2661,2736}: for loop over strings
|
| | | |
| | |
| | |
| | | |
https://github.com/vim/vim/commit/80d7395dcfe96158428da6bb3d28a6eee1244e28
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ \
| | |
| | | |
vim-patch:8.1.{2342,2343,2356,2357},8.2.0233: `rand` and `srand`
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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).
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: No test with wrong argument for rand().
Solution: Add a test case.
https://github.com/vim/vim/commit/68e9e5f7fccb8038cf0ca5b5d95c85a923152f46
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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).
|
| |/ /
| |
| |
| |
| |
| | |
Problem: Divide by zero with huge tabstop value.
Solution: Reject tabstop value that overflows to zero.
https://github.com/vim/vim/commit/fc88df42f1ae64bcc4d6cbc0fbd3445f8c59afdf
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| | |
| | | |
vim-patch:8.2.1128: the write message mentions characters, but it's bytes
|
| | | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| | |
Problem: The "gd" and "gD" commands do not update search stats. (Gary
Johnson)
Solution: Clear search stats.
https://github.com/vim/vim/commit/0c71114aede81a209b7efc126b4bf19f11d58955
|
| | |
| |
| |
| | |
Also avoid unnecessary divergences from upstream and add a modeline.
|
| |\ \
| | |
| | | |
vim-patch:8.1.{0846,0878,0884,2358},8.2.{0305,0352,0687,3797}
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Relativenumber test fails on some systems. (James McCoy)
Solution: Clear the command line.
https://github.com/vim/vim/commit/8040a7147f5b896a702d1684e7831df107490f45
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Tests fail on Cirrus CI for FreeBSD.
Solution: Fix a test and skip some. (Christian Brabandt, closes vim/vim#5281)
https://github.com/vim/vim/commit/9134f1ecd41207045db3cb47f0269497980395ad
Skip test_normal.vim: already applied in #11483.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Double check for bsd systems.
Solution: Delete the old line.
https://github.com/vim/vim/commit/af630d4f7f8daa7edbda0b607d32d39a5feae9d9
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Test for has('bsd') fails on some BSD systems.
Solution: Adjust the uname match. (James McCoy, closes vim/vim#3909)
https://github.com/vim/vim/commit/a02e3f65c52a2c8c987e7dcac5df1f8db9a7b0de
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Not easy to recognize the system Vim runs on.
Solution: Add more items to the features list. (Ozaki Kiichi, closes vim/vim#3855)
https://github.com/vim/vim/commit/39536dd557e847e80572044c2be319db5886abe3
Some doc changes have already been applied. Some others are N/A.
"moon" was removed in patch 8.2.0427 so I did not add it.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: ml_get error with :doautoall and Visual area. (Sean Dewar)
Solution: Disable Visual mode while executing autocommands.
https://github.com/vim/vim/commit/cb1956d6f2aece8ad93e19e5d4c7e0b5e405f056
This should also fix #16937 for nvim_buf_call, so test for it.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: ml_get error with specific win_execute() command. (Sean Dewar)
Solution: Check cursor and Visual area are OK.
https://github.com/vim/vim/commit/e664a327014f4aa8baf8549a34a4caab2f3116a3
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Problem: ml_get error when win_execute redraws with Visual selection.
Solution: Disable Visual area temporarily. (closes vim/vim#9479)
https://github.com/vim/vim/commit/18f4740f043b353abe47b7a00131317052457686
{switch_to/restore}_win_for_buf is N/A (marked as such in v8.0.0860; currently
only used in Vim's if_py).
Add a modeline to test_execute_func.vim.
|
| |\ \
| | |
| | | |
vim-patch:8.2.{3454,3455,3497,3540,3581,3678}: some "p" and "gp" patches
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Reading character past end of line.
Solution: Correct the cursor column.
https://github.com/vim/vim/commit/0b5b06cb4777d1401fdf83e7d48d287662236e7e
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: The mark '] is wrong after put with a count. (Naohiro Ono)
Solution: Use the right line number. (closes vim/vim#8956)
https://github.com/vim/vim/commit/f47ebf1e1a0a6473b10fb4c92c9c6427aab4dc91
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Put test fails when run by itself.
Solution: Source check.vim. (Dominique Pellé, closes vim/vim#8990)
https://github.com/vim/vim/commit/a9173d06f7ca320fc84f4ffa993861d21710bc41
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Problem: Using a count with "gp" leaves '] in wrong position. (Naohiro Ono)
Solution: Correct the mark position. (closes vim/vim#8899)
https://github.com/vim/vim/commit/56858e4ed4e338e15821767b8303b06099e40384
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Using a count with "gp" leave cursor in wrong position. (Naohiro
Ono)
Solution: Count the inserted lines. (closes vim/vim#8899)
https://github.com/vim/vim/commit/23003e51e18371afda4420d9e171a3dcba5a31cc
|
| |\ \ \
| | | |
| | | | |
vim-patch:8.2.3219: :find searches non-existing directories
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: :find searches non-existing directories.
Solution: Check the path is not "..". Update help. (Christian Brabandt,
closes vim/vim#8612, closes vim/vim#8533)
https://github.com/vim/vim/commit/7a4ca32175bef0f9a177052796bd9addd10dc218
Change STRNCAT to STRLCAT as clint doesn't like the former.
Include a typo fix from https://github.com/vim/vim/commit/2f0936cb9a2eb026acac03e6a8fd0b2a5d97508b#diff-7e9292cae1f2ba70dd5b17d2d162693a91044ada6ac99e9c3e8917f32878c097
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: When using feedkeys() abbreviations may be blocked.
Solution: Reset tb_no_abbr_cnt when running out of characters.
(closes vim/vim#9448)
https://github.com/vim/vim/commit/b37a65e4bf08c4eec4fa5b81a5efc3945fca44de
|
| |\ \ \ \
| |/ / /
|/| | | |
feat(statusline): support multibyte fillchar
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This includes a partial port of Vim patch 8.2.2569 and some changes to
nvim_eval_statusline() to allow a multibyte fillchar. Literally every
line of C code touched by that patch has been refactored in Nvim, and
that patch contains some irrelevant foldcolumn tests I'm not sure how to
port (as Nvim's foldcolumn behavior has diverged from Vim's).
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Basic and form filetype detection is incomplete.
Solution: Add a separate function for .frm files. (Doug Kearns, closes vim/vim#9675)
https://github.com/vim/vim/commit/c570e9cf68c0fe30366e82c96be460047dd659b9
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
https://github.com/vim/vim/commit/424bcae1fb0f69e0aef5e0cf84fd771cf34a0fb7
Also remove a comment in buf_init_chartab() as it is for enc_dbcs only.
Skip test_expr.vim: the check was already removed when patch 7.4.2265
was first ported.
|
| |\ \ \ \
| | | | |
| | | | | |
vim-patch:8.2.{3787,3932,3934,3935,3938}: text formatting patches
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Problem: Line comment start is also found in a string.
Solution: Skip line comments in a string.
https://github.com/vim/vim/commit/ba26367fea3b63df49d274f3d5cca0af38402add
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Problem: CTRL-U in Insert mode does not fix the indent.
Solution: Fix the indent when 'cindent' is set.
https://github.com/vim/vim/commit/5d20fbf2e79b96a39abbdadc486b656cdcc67ed6
|