mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Support backspace in incremental search
This commit is contained in:
		
							parent
							
								
									a5245c1658
								
							
						
					
					
						commit
						259601ab57
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1223,7 +1223,7 @@ class Reline::LineEditor
 | 
			
		|||
        @cursor = @byte_pointer = 0
 | 
			
		||||
      else
 | 
			
		||||
        chr = key.is_a?(String) ? key : key.chr(Encoding::ASCII_8BIT)
 | 
			
		||||
        if chr.match?(/[[:print:]]/)
 | 
			
		||||
        if chr.match?(/[[:print:]]/) or key == "\C-h".ord or key == 127
 | 
			
		||||
          searcher.resume(key)
 | 
			
		||||
        else
 | 
			
		||||
          if @history_pointer
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue