dundargoc
e63e5d1dbd
docs: typo fixes ( #17859 )
...
Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com>
Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com>
Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com>
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: rwxd <rwxd@pm.me>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2022-04-15 12:35:06 +02:00
zeertzjq
a973fa5b43
test(old): fix test_regexp_latin.vim encoding ( #17989 )
...
Cherry-pick a change from Vim patch 8.2.3982
2022-04-04 09:12:20 +08:00
zeertzjq
1bbe8ec282
vim-patch:8.2.3110: a pattern that matches the cursor position is complicated
...
Problem: A pattern that matches the cursor position is bit complicated.
Solution: Use a dot to indicate the cursor line and column. (Christian
Brabandt, closes vim/vim#8497 , closes vim/vim#8179 )
04db26b360
Also use `n = ++vcol` in regexp_bt.c as `++vcol` alone fails lint.
2022-03-30 08:35:13 +08:00
zeertzjq
2f37823703
vim-patch:8.2.4646: using buffer line after it has been freed ( #17907 )
...
Problem: Using buffer line after it has been freed in old regexp engine.
Solution: After getting mark get the line again.
b55986c52d
2022-03-30 07:44:12 +08:00
zeertzjq
c3208feb72
vim-patch:8.2.3950: going beyond the end of the line with /\%V
...
Problem: Going beyond the end of the line with /\%V.
Solution: Check for valid column in getvcol().
94f3192b03
2022-03-10 17:22:39 +08:00
zeertzjq
d2d3be0a4a
vim-patch:8.2.3949: using freed memory with /\%V
...
Problem: Using freed memory with /\%V.
Solution: Get the line again after getvvcol().
4c13e5e676
2022-03-10 16:43:27 +08:00
f380cedric
c5ac04331b
vim-patch:8.2.3612: using freed memory with regexp using a mark ( #16973 )
...
Problem: Using freed memory with regexp using a mark.
Solution: Get the line again after getting the mark position.
64066b9acd
2022-01-27 14:59:30 +01: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
3dbcf69888
test/old: run most tests in test_regexp_latin.vim
...
Most tests here don't depend on 'set encoding=latin1'.
Skip Test_recursive_addstate() because of ASAN build.
2021-03-29 08:23:03 -04:00
Jan Edmund Lazo
8b60368c1b
vim-patch:8.1.0958: compiling weird regexp pattern is very slow
...
Problem: Compiling weird regexp pattern is very slow.
Solution: When reallocating post list increase size by 50%. (Kuang-che Wu,
closes vim/vim#4012 ) Make assert_inrange() accept float values.
38f08e76ac
Omit changes to typval_compare()
because patch v8.0.1505 was not ported.
2021-03-29 08:23:02 -04:00
Sean Dewar
b8a0304bb9
vim-patch:8.2.2121: internal error when using \ze before \zs in a pattern
...
Problem: Internal error when using \ze before \zs in a pattern.
Solution: Check the end is never before the start. (closes vim/vim#7442 )
a7a691cc14
2020-12-09 19:02:57 +00:00
Jan Edmund Lazo
ad5049aa60
vim-patch:8.2.0010: test64 is old style
...
Problem: Test64 is old style.
Solution: Convert to new style test. (Yegappan Lakshmanan, closes vim/vim#5363 )
f9cb05c147
2019-12-16 19:38:29 -05:00
Jan Edmund Lazo
52488ea6fb
vim-patch:8.1.0910: crash with tricky search pattern
...
Problem: Crash with tricky search pattern. (Kuang-che Wu)
Solution: Check for runnning out of memory. (closes vim/vim#3950 )
15bbd6ec87
2019-07-25 02:39:24 -04:00
Jan Edmund Lazo
a77e5b3606
vim-patch:8.1.0905: complicated regexp causes a crash
...
Problem: Complicated regexp causes a crash. (Kuang-che Wu)
Solution: Limit the recursiveness of addstate(). (closes vim/vim#3941 )
5567ad48b6
2019-07-25 02:04:32 -04:00
Jan Edmund Lazo
06d9fa2e0c
vim-patch:8.1.0751: some regexp errors are not tested
...
Problem: Some regexp errors are not tested.
Solution: Add a test function.
6057ed4720
2019-05-25 16:33:18 -04:00
Billy Su
fbd8209286
vim-patch:8.0.0645: no error for illegal back reference in NFA engine
...
Problem: The new regexp engine does not give an error for using a back
reference where it is not allowed. (Dominique Pelle)
Solution: Check the back reference like the old engine. (closes vim/vim#1774 )
1ef9bbe215
2019-03-07 23:48:53 +08:00
Jan Edmund Lazo
5f84b1dc41
vim-patch:8.1.0935: old regexp engine may use invalid buffer #9692
...
Problem: Old regexp engine may use invalid buffer for 'iskeyword' or
uninitialized buffer pointer. (Kuang-che Wu)
Solution: Set rex.reg_buf when compiling the pattern. (closes vim/vim#3972 )
8bfd9469ce
2019-03-07 12:05:22 +01:00
Jan Edmund Lazo
486234ab3d
vim-patch:8.1.0937: invalid memory access in search pattern
...
Problem: Invalid memory access in search pattern. (Kuang-che Wu)
Solution: Check for incomplete collation element. (Dominique Pelle,
closes vim/vim#3985 )
f1b57ab2ab
2019-02-17 19:37:44 -05:00
Jan Edmund Lazo
279ecaff00
vim-patch:8.1.0934: invalid memory access in search pattern
...
Problem: Invalid memory access in search pattern. (Kuang-che Wu)
Solution: Check for incomplete equivalence class. (closes vim/vim#3970 )
985079c514
2019-02-17 19:35:41 -05:00
Jan Edmund Lazo
55821948cf
vim-patch:8.1.0945: internal error when using pattern with NL in the range
...
Problem: Internal error when using pattern with NL in the range.
Solution: Use an actual newline for the range. (closes vim/vim#3989 ) Also fix
error message. (Dominique Pelle)
a5483448cb
2019-02-17 19:11:16 -05:00
Justin M. Keyes
ff4a628081
test/old: restore test_alot_utf8.vim
...
Needed for later Vim patches.
Stub test_alot_latin.vim to avoid merge-conflict noise.
vim-patch:7.4.1700
vim-patch:7.4.1734
vim-patch:7.4.1740
vim-patch:7.4.2086
vim-patch:7.4.2223
vim-patch:8.0.0250
2018-02-11 20:15:43 +01:00