Jan Edmund Lazo
5115bc3f4f
sign: pvs/v547
...
vim_strsave() returns nonnull.
2021-06-05 12:49:27 -04:00
Jan Edmund Lazo
729f270266
userfunc: pvs/v547
...
vim_strsave() returns nonnull.
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
304c6ce934
fixup! fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' ( #14398 )
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
b959de3a5f
vim-patch:8.0.1578: no test for :popup in terminal
...
Problem: No test for :popup in terminal.
Solution: Add a screen dump test.
69f5a3011d
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
60bf49ab1c
vim-patch:8.2.2937: popup test fails if rightleft feature not enabled
...
Problem: Popup test fails if rightleft feature not enabled.
Solution: Check that the rightleft feature is available. (Dominique Pellé,
closes vim/vim#8321 )
56cddb3879
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
1b13c744ea
vim-patch:8.2.2877: insufficient tests for popup menu rightleft
...
Problem: Insufficient tests for popup menu rightleft.
Solution: Add tests. (Yegappan Lakshmanan, closes vim/vim#8235 )
1e615669c0
2021-06-05 12:49:26 -04:00
Jan Edmund Lazo
6a2f1b1740
clang/'Logic error': assert get_decor_provider(id, true) returns nonnull
...
nvim_set_decoration_provider() has undefined behavior (if not crash)
if get_decor_provider() returns NULL.
2021-06-02 21:49:38 -04:00
Jan Edmund Lazo
68cb51ab0a
fixup! vim-patch:8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' ( #14398 )
...
tab_firstwin can be NULL.
2021-06-02 21:45:44 -04:00
Jan Edmund Lazo
d1238856a8
clang/'Logic error': has_profiling() may not set forceit
2021-06-02 21:24:01 -04:00
Jan Edmund Lazo
626c631e89
clang/'Logic error': zero-init oldbase array
...
unrelative() must not have garbage structs.
2021-06-02 21:19:19 -04:00
Jan Edmund Lazo
59db83bc59
clang/API: reject null string in timer_start()
2021-06-02 21:05:13 -04:00
Sean Dewar
db6523cd13
api(parse_float_config): use api_object_to_bool()
2021-06-01 03:05:04 +01:00
Sean Dewar
802f8429d5
api(nvim_open_win): add "noautocmd" option
...
This option, when set, stops nvim_open_win() from potentially firing
buffer-related autocmd events
(BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
2021-06-01 03:05:04 +01:00
Jan Edmund Lazo
27c616d688
Merge pull request #14685 from janlazo/vim-8.2.2911
...
vim-patch:8.1.2400,8.2.{2911,2914.2916}
2021-05-31 22:01:09 -04:00
Jan Edmund Lazo
e8f0ff1d48
Merge pull request #14531 from janlazo/revert-noblock
...
Revert "api/window: use the "noblock" variants in nvim_win_set_buf"
2021-05-31 21:57:44 -04:00
Jan Edmund Lazo
c3ac9c13df
vim-patch:8.2.2916: operators are not fully tested
...
Problem: Operators are not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8290 )
2ac7184d34
2021-05-31 21:37:46 -04:00
Jan Edmund Lazo
2f79caa02d
vim-patch:8.1.2400: test39 is old style
...
Problem: Test39 is old style.
Solution: Convert the test cases into new style. (Yegappan Lakshmanan,
closes vim/vim#5324 )
1f3e7d3bf0
2021-05-31 21:24:31 -04:00
Jan Edmund Lazo
e399731561
vim-patch:8.2.2914: cannot paste a block without adding padding
...
Problem: Cannot paste a block without adding padding.
Solution: Add "zp" and "zP" which paste without adding padding. (Christian
Brabandt, closes vim/vim#8289 )
2fa9384ca1
Cherry-pick Test_normal_z_error() from patch v8.2.0369.
2021-05-31 21:06:11 -04:00
Jan Edmund Lazo
73e3669c7a
vim-patch:8.2.2911: pattern "\%V" does not match all of block selection
...
Problem: Pattern "\%V" does not match all of block selection. (Rick Howe)
Solution: Use the value of vi_curswant. (closes vim/vim#8285 )
e71c0ebe2c
2021-05-31 21:06:10 -04:00
Jan Edmund Lazo
ca6a8ac93c
vim-patch:8.2.2900: QuitPre is triggered before :wq writes the file
...
Problem: QuitPre is triggered before :wq writes the file, which is
different from other commands.
Solution: Trigger QuitPre after writing the file. (closes vim/vim#8279 )
1174b018a6
2021-05-29 13:19:22 -04:00
Jan Edmund Lazo
30a34136b6
vim-patch:8.2.2898: QuitPre and ExitPre not triggered when GUI window is closed
...
Problem: QuitPre and ExitPre not triggered when GUI window is closed.
Solution: Call before_quit_autocmds(). (closes vim/vim#8242 )
3552e74289
2021-05-29 09:59:20 -04:00
TJ DeVries
43956dea55
lua: Add vim.opt and fix scopes of vim.o ( #13479 )
...
* lua: Add vim.opt
* fixup: cleaning
* fixup: comments
* ty clason
* fixup: comments
* this is the last commit. period.
2021-05-28 17:24:48 +02:00
James McCoy
0b905be47b
Merge pull request #14607 from glacambre/fix_get_all_options_info_crash
...
[RDY] Generate PARAM_COUNT macro
2021-05-26 10:30:20 -04:00
glacambre
0c8454f5bc
Fix crash on :echo get_all_options_info()
...
Iterating over PARAM_COUNT is wrong as PARAM_COUNT also counts the last
element of the options array, which has a NULL fullname in order to
signal the end of the array.
2021-05-26 07:07:11 +02:00
Jan Edmund Lazo
a7061359b7
vim-patch:8.2.2278: falling back to old regexp engine can some patterns
...
Problem: Falling back to old regexp engine can some patterns.
Solution: Do not fall back once [[:lower:]] or [[:upper:]] is used.
(Christian Brabandt, closes vim/vim#7572 )
66c50c5653
2021-05-26 00:39:55 -04:00
Jan Edmund Lazo
7e0d50b16e
vim-patch:8.2.2885: searching for \%'> does not match linewise end of line
...
Problem: searching for \%'> does not match linewise end of line. (Tim Chase)
Solution: Match end of line if column is MAXCOL. (closes vim/vim#8238 )
872bee557e
2021-05-26 00:16:32 -04:00
Jan Edmund Lazo
370e65ed7c
vim-patch:8.2.2884: not enough cscope code is covered by tests
...
Problem: Not enough cscope code is covered by tests.
Solution: Add a few test cases. (Dominique Pellé, closes vim/vim#8246 )
1e469c72ee
2021-05-24 15:36:30 -04:00
Jan Edmund Lazo
25a088b0ad
vim-patch:8.2.0511: Cscope code not fully tested
...
Problem: Cscope code not fully tested.
Solution: Add more test cases. (Dominique Pelle, closes vim/vim#5886 )
d7ffc0ba8c
2021-05-24 15:25:32 -04:00
Jan Edmund Lazo
1b0937dd89
test/old: partial port of patch v8.2.1.0183
...
Prep for patch v8.2.0511.
2021-05-24 15:25:32 -04:00
Jan Edmund Lazo
529d88c641
vim-patch:8.2.1689: 'colorcolumn' doesn't show in indent
...
Problem: 'colorcolumn' doesn't show in indent.
Solution: Also draw the column when draw_state is WL_BRI or WL_SBR.
(Alexey Demin, closes vim/vim#6948 , closes vim/vim#6619 )
ad5e5631c5
2021-05-24 13:13:00 -04:00
Jan Edmund Lazo
db3136d2ea
vim-patch:8.2.1957: diff and cursorcolumn highlighting don't mix
...
Problem: Diff and cursorcolumn highlighting don't mix.
Solution: Fix condition for what attribute to use. (Christian Brabandt,
closes vim/vim#7258 , closes vim/vim#7260 )
fabc3ca896
2021-05-24 12:53:27 -04:00
Jan Edmund Lazo
6d932ccb1c
vim-patch:8.2.2880: unified diff fails if actually used
...
Problem: Unified diff fails if actually used.
Solution: Invoke :diffupdate in the test. Fix the check for working external
diff. (Ghjuvan Lacambre, Christian Brabandt, closes vim/vim#8197 )
ad5c178a19
2021-05-24 12:38:02 -04:00
Jan Edmund Lazo
0a653f7ab9
vim-patch:8.2.2879: file extension .hsig not recognized ( #14628 )
...
Problem: File extension .hsig not recognized.
Solution: Use Haskell filetype for .hsig files. (Marcin Szamotulski,
closes vim/vim#8236 )
f5409dbf66
2021-05-23 17:15:38 -04:00
Jan Edmund Lazo
59d550345d
vim-patch:8.2.2778: problem restoring 'packpath' in session
...
Problem: Problem restoring 'packpath' in session.
Solution: Let "skiprtp" also apply to 'packpath'.
d23b714d8b
Port Test_mksession_skiprtp() to lua functional test.
2021-05-22 17:32:24 -04:00
Jan Edmund Lazo
8415615b59
vim-patch:8.2.2772: problems when restoring 'runtimepath' from a session file
...
Problem: Problems when restoring 'runtimepath' from a session file.
Solution: Add the "skiprtp" item in 'sessionoptions'.
635bd60804
Allow "terminal" value for sessionoptions even if it's no-opt
because patch v8.0.1592 is not ported yet.
Omit vim9 test, Test_mksession_skiprtp().
2021-05-22 15:40:06 -04:00
Jan Edmund Lazo
8e5439182b
fixup! vim-patch:8.1.0734: the hlsearch state is not stored in a session file ( #13547 )
2021-05-22 15:36:48 -04:00
Jan Edmund Lazo
486050ebc9
vim-patch:8.2.2875: cancelling inputlist() after a digit does not return zero
...
Problem: Cancelling inputlist() after a digit does not return zero.
Solution: Always return zero when cancelling. (closes vim/vim#8231 )
5cf94577cf
2021-05-21 23:01:11 -04:00
Jan Edmund Lazo
39fdb86832
vim-patch:8.2.0946: cannot use "q" to cancel a number prompt
...
Problem: Cannot use "q" to cancel a number prompt.
Solution: Recognize "q" instead of ignoring it.
eebd555733
2021-05-21 23:01:11 -04:00
Jan Edmund Lazo
4dadbe64a0
vim-patch:8.2.1591: using winheight('.') in tests works but is wrong
...
Problem: Using winheight('.') in tests works but is wrong.
Solution: Use winheight(0). (issue vim/vim#6863 )
c05d1c043a
2021-05-21 20:04:39 -04:00
Jan Edmund Lazo
994cc931d1
vim-patch:8.1.2339: insufficient testing for quickfix
...
Problem: Insufficient testing for quickfix.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#5261 )
70077dd1ca
TODO:
Debug the following off-by-one error:
call assert_equal(repeat('m', 1024), l[0].module)
2021-05-21 20:04:38 -04:00
Jan Edmund Lazo
83e48174e6
vim-patch:8.1.2320: insufficient test coverage for quickfix
...
Problem: Insufficient test coverage for quickfix.
Solution: Add more tests. Fix uncovered problem. (Yegappan Lakshmanan,
closes vim/vim#5238 )
f9ae154c51
2021-05-21 20:04:38 -04:00
Jan Edmund Lazo
713eaaed06
Merge pull request #14490 from kevinhwang91/qftf
...
vim-patch: 8.2.{0869,0933,0959} - port quickfixtextfunc
2021-05-20 17:54:52 -04:00
Thomas Vigouroux
3bd9cce368
Merge pull request #14575 from vigoux/virtualedit-bytes
...
fix(bufupdate): send events when inserting with virtualedit
2021-05-20 20:05:25 +02:00
kevinhwang91
d29148ffd8
Merge remote-tracking branch 'origin/master' into qftf
2021-05-20 21:15:31 +08:00
kevinhwang91
2dc0f81271
fixup! vim-patch:8.2.0959: using 'quickfixtextfunc' is a bit slow
2021-05-20 11:34:10 +08:00
James McCoy
216bfa1d6b
Merge pull request #14579 from jamessan/windows-env-vars
...
Deduplicate env var names on Windows
2021-05-19 22:46:42 -04:00
Jan Edmund Lazo
49ab1b91e7
Remove '- 1' for sizes passed to xstrlcpy
...
xstrlcpy() NUL-terminates the destination string
such that reducing the destination string length by 1
to reserve the last byte for NUL is pointless.
https://github.com/neovim/neovim/pull/14490#discussion_r635661185
2021-05-19 21:09:53 -04:00
Jan Edmund Lazo
003cda2312
vim-patch:8.2.2871: unnessary VIM_ISDIGIT() calls, badly indented code
...
Problem: Unnessary VIM_ISDIGIT() calls, badly indented code.
Solution: Call skipdigits() on the next character. Improve indenting.
(Dominique Pellé, closes vim/vim#8227 )
4781d6fd86
2021-05-19 20:58:09 -04:00
Jan Edmund Lazo
5fd605e1d1
vim-patch:8.2.2869: using unified diff is not tested
...
Problem: Using unified diff is not tested.
Solution: Test all cases also with unified diff. (issue vim/vim#8197 )
485b627100
2021-05-19 20:44:06 -04:00
Björn Linse
7fbf3bf18b
lua: use proper conversion of vim.g values
2021-05-19 19:29:19 +02:00