mirror of
https://github.com/neovim/neovim.git
synced 2026-07-20 08:01:46 +00:00
fix(substitute): don't crash with very large count (#39272)
(cherry picked from commit ac8459a09c)
This commit is contained in:
committed by
github-actions[bot]
parent
187a34d59b
commit
ffb0ebb752
@@ -41,6 +41,10 @@ describe('Ex cmds', function()
|
||||
'Vim(menu):E329: No menu "9999999999999999999999999999999999999999"',
|
||||
pcall_err(command, ':menu 9999999999999999999999999999999999999999')
|
||||
)
|
||||
eq(
|
||||
'Vim(substitute):E1510: Value too large: 9999999999999999999999999999999999999999',
|
||||
pcall_err(command, ':%s/./b/9999999999999999999999999999999999999999')
|
||||
)
|
||||
assert_alive()
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user