fix: crash on rendering zero width chars
This commit is contained in:
		
							parent
							
								
									e4fef98fcd
								
							
						
					
					
						commit
						206e23a603
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -821,6 +821,10 @@ pub const Editor = struct {
 | 
			
		|||
                        9 => ctx.self.render_tab(c, n, ctx.buf_col),
 | 
			
		||||
                        else => render_egc(c, n, chunk),
 | 
			
		||||
                    };
 | 
			
		||||
                    if (colcount == 0) {
 | 
			
		||||
                        chunk = chunk[bytes..];
 | 
			
		||||
                        continue;
 | 
			
		||||
                    }
 | 
			
		||||
                    var cell_map_val: CellType = switch (chunk[0]) {
 | 
			
		||||
                        32 => .space,
 | 
			
		||||
                        9 => .tab,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue