[patch] File test92.in and test93.in become empty. When run test on 80x20 terminal.

48 views
Skip to first unread message

h_east

unread,
Sep 11, 2013, 8:06:52 PM9/11/13
to vim...@googlegroups.com
Hi Bram and Vim developers,

How to reproduce. (on linux)
- set terminal size to 80x20
- make test
- test92 and test93 fail.
- test92.in and test93.in become empty. <--- unexpected!

Expect behavior
- test92.in and test93.in keep the contents of file.

Investigation result
Line 34th of test92.in
:new test.out
failed (E36: Not enough room).
and line 36th
:w
is update to test92.in empty.
(test93.in is similar)

...and some test requires a certain height or more.
(e.g. test37 and test47 requires height 20)

I wrote two patches.
#1 test92_93_empty.patch
Fixed above problem.

#2 check_term_size_at_1st_test.patch
Adding check terminal size 80x24 or higher at first test.

Please check this.

Best regards,
Hirohito Higashi

test92_93_empty.patch
check_term_size_at_1st_test.patch

Bram Moolenaar

unread,
Sep 13, 2013, 5:00:56 AM9/13/13
to h_east, vim...@googlegroups.com
Thanks for solving this! That's a nasty problem.


--
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages