mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	patch 9.0.2100: CI: test_termdebug fails
Problem:  CI: test_termdebug fails
Solution: only test for a changed winlayout, if the window
          width actually changed
Also, include an unrelated comment (which doesn't warrant its own patch
number)
Signed-off-by: Christian Brabandt <cb@256bit.org>
			
			
This commit is contained in:
		| @@ -96,16 +96,22 @@ func Test_termdebug_basic() | |||||||
|     bw! |     bw! | ||||||
|   endif |   endif | ||||||
|   set columns=160 |   set columns=160 | ||||||
|  |   let winw = winwidth(0) | ||||||
|   Var |   Var | ||||||
|  |   if winwidth(0) < winw | ||||||
|     call assert_equal(winnr(), winnr('$') - 1) |     call assert_equal(winnr(), winnr('$') - 1) | ||||||
|     call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) |     call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) | ||||||
|     let cn += 1 |     let cn += 1 | ||||||
|     bw! |     bw! | ||||||
|  |   endif | ||||||
|  |   let winw = winwidth(0) | ||||||
|   Asm |   Asm | ||||||
|  |   if winwidth(0) < winw | ||||||
|     call assert_equal(winnr(), winnr('$') - 1) |     call assert_equal(winnr(), winnr('$') - 1) | ||||||
|     call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) |     call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) | ||||||
|     let cn += 1 |     let cn += 1 | ||||||
|     bw! |     bw! | ||||||
|  |   endif | ||||||
|   set columns& |   set columns& | ||||||
|  |  | ||||||
|   wincmd t |   wincmd t | ||||||
|   | |||||||
| @@ -989,7 +989,7 @@ format_lines( | |||||||
|     // length of a line to force formatting: 3 * 'tw' |     // length of a line to force formatting: 3 * 'tw' | ||||||
|     max_len = comp_textwidth(TRUE) * 3; |     max_len = comp_textwidth(TRUE) * 3; | ||||||
|  |  | ||||||
|     // check for 'q', '2' and '1' in 'formatoptions' |     // check for 'q', '2', 'n' and 'w' in 'formatoptions' | ||||||
|     do_comments = has_format_option(FO_Q_COMS); |     do_comments = has_format_option(FO_Q_COMS); | ||||||
|     do_second_indent = has_format_option(FO_Q_SECOND); |     do_second_indent = has_format_option(FO_Q_SECOND); | ||||||
|     do_number_indent = has_format_option(FO_Q_NUMBER); |     do_number_indent = has_format_option(FO_Q_NUMBER); | ||||||
|   | |||||||
| @@ -704,6 +704,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     2100, | ||||||
| /**/ | /**/ | ||||||
|     2099, |     2099, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user