fix(helix): Making d and c work as expected in normal mode
				
					
				
			This commit is contained in:
		
							parent
							
								
									e669849629
								
							
						
					
					
						commit
						0babbb1833
					
				
					 2 changed files with 10 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -2495,7 +2495,14 @@ pub const Editor = struct {
 | 
			
		|||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            with_selection_const(root, move, cursel, self.metrics) catch continue;
 | 
			
		||||
            switch (tui.get_selection_style()) {
 | 
			
		||||
                .inclusive => {
 | 
			
		||||
                    const sel = try cursel.enable_selection(root, self.metrics);
 | 
			
		||||
                    cursel.cursor = sel.end;
 | 
			
		||||
                    cursel.check_selection(root, self.metrics);
 | 
			
		||||
                },
 | 
			
		||||
                else => with_selection_const(root, move, cursel, self.metrics) catch continue,
 | 
			
		||||
            }
 | 
			
		||||
            const cut_text, root = self.cut_selection(root, cursel) catch continue;
 | 
			
		||||
 | 
			
		||||
            if (first) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue