mirror of
				https://github.com/troglobit/editline.git
				synced 2025-10-31 16:28:15 +08:00 
			
		
		
		
	Remove duplicate unique history check
Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
		 Claus Fischer
					Claus Fischer
				
			
				
					committed by
					
						 Joachim Nilsson
						Joachim Nilsson
					
				
			
			
				
	
			
			
			 Joachim Nilsson
						Joachim Nilsson
					
				
			
						parent
						
							ed37cef412
						
					
				
				
					commit
					4b8333ad39
				
			| @@ -1047,8 +1047,6 @@ static void hist_add(const char *p) | |||||||
|     if (H.Pos && strcmp(p, H.Lines[H.Pos - 1]) == 0) |     if (H.Pos && strcmp(p, H.Lines[H.Pos - 1]) == 0) | ||||||
|         return; |         return; | ||||||
| #endif | #endif | ||||||
|     if (H.Size && strcmp(p, H.Lines[H.Size - 1]) == 0) |  | ||||||
|         return; |  | ||||||
|  |  | ||||||
|     if ((s = strdup(p)) == NULL) |     if ((s = strdup(p)) == NULL) | ||||||
|         return; |         return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user