mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	ex_echo: fix check for got_int #11225
It needs to return to not output any remaining parts. Followup to https://github.com/neovim/neovim/pull/10926 Ref: https://github.com/neovim/neovim/issues/10923
This commit is contained in:
		 Daniel Hahler
					Daniel Hahler
				
			
				
					committed by
					
						 Justin M. Keyes
						Justin M. Keyes
					
				
			
			
				
	
			
			
			 Justin M. Keyes
						Justin M. Keyes
					
				
			
						parent
						
							029b828693
						
					
				
				
					commit
					93fe30593b
				
			| @@ -233,7 +233,10 @@ void msg_multiline_attr(const char *s, int attr, bool check_int) | |||||||
| { | { | ||||||
|   const char *next_spec = s; |   const char *next_spec = s; | ||||||
|  |  | ||||||
|   while (next_spec != NULL && (!check_int || !got_int)) { |   while (next_spec != NULL) { | ||||||
|  |     if (check_int && got_int) { | ||||||
|  |       return; | ||||||
|  |     } | ||||||
|     next_spec = strpbrk(s, "\t\n\r"); |     next_spec = strpbrk(s, "\t\n\r"); | ||||||
|  |  | ||||||
|     if (next_spec != NULL) { |     if (next_spec != NULL) { | ||||||
|   | |||||||
| @@ -1125,7 +1125,7 @@ aliquip ex ea commodo consequat.]]) | |||||||
|  |  | ||||||
|   it('can be quit', function() |   it('can be quit', function() | ||||||
|     screen:try_resize(25,5) |     screen:try_resize(25,5) | ||||||
|     feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>') |     feed(':echon join(map(range(0, &lines*10), "v:val"), "\\n")<cr>') | ||||||
|     screen:expect{grid=[[ |     screen:expect{grid=[[ | ||||||
|       0                        | |       0                        | | ||||||
|       1                        | |       1                        | | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user