mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	35883: Don't attempt to back up over history if expanding alias
This commit is contained in:
		
							parent
							
								
									53fe58a278
								
							
						
					
					
						commit
						8f8b82bc6c
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -906,7 +906,8 @@ ihungetc(int c) | |||
|     while (!lexstop && !errflag) { | ||||
| 	if (hptr[-1] != (char) c && stophist < 4 && | ||||
| 	    hptr > chline + 1 && hptr[-1] == '\n' && hptr[-2] == '\\' && | ||||
| 	    !(histactive & HA_UNGET)) { | ||||
| 	    !(histactive & HA_UNGET) && | ||||
| 	    (inbufflags & (INP_ALIAS|INP_HIST)) != INP_ALIAS) { | ||||
| 	    histactive |= HA_UNGET; | ||||
| 	    hungetc('\n'); | ||||
| 	    hungetc('\\'); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue