mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: check if there is cmd input before attempting to add to history (closes #206)
This commit is contained in:
		
							parent
							
								
									22f6ea8a3e
								
							
						
					
					
						commit
						7db2a2c826
					
				| @ -1,5 +1,6 @@ | ||||
| local bait = require 'bait' | ||||
| 
 | ||||
| bait.catch('command.exit', function(_, cmd, priv) | ||||
| 	if not cmd then return end | ||||
| 	if not priv and hilbish.opts.history then hilbish.history.add(cmd) end | ||||
| end) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user