diff src/testdir/test_edit.vim @ 27090:5e65d802bd52 v8.2.4074

patch 8.2.4074: going over the end of NameBuff Commit: https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 13 13:08:14 2022 +0000 patch 8.2.4074: going over the end of NameBuff Problem: Going over the end of NameBuff. Solution: Check length when appending a space.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 14:15:06 +0100
parents b975b7c16ba1
children 63179e8300f8
line wrap: on
line diff
--- a/src/testdir/test_edit.vim
+++ b/src/testdir/test_edit.vim
@@ -2103,5 +2103,20 @@ func Test_edit_CTRL_hat()
   bwipe!
 endfunc
 
+" Weird long file name was going over the end of NameBuff
+func Test_edit_overlong_file_name()
+  CheckUnix
+
+  file 0000000000000000000000000000
+  file %%%%%%%%%%%%%%%%%%%%%%%%%%
+  file %%%%%%
+  set readonly
+  set ls=2 
+
+  redraw!
+  set noreadonly ls&
+  bwipe!
+endfunc
+
 
 " vim: shiftwidth=2 sts=2 expandtab