mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: allow setting current runner to defaults
This commit is contained in:
		
							parent
							
								
									f6c98d5bc0
								
							
						
					
					
						commit
						42daf59746
					
				| @ -48,7 +48,19 @@ function runnerHandler.exec(cmd, runnerName) | ||||
| 	return r.run(cmd) | ||||
| end | ||||
| 
 | ||||
| 
 | ||||
| function runnerHandler.setCurrent(name) | ||||
| 	local defaultRunners = { | ||||
| 		'hybrid', | ||||
| 		'hybridRev', | ||||
| 		'lua', | ||||
| 		'sh' | ||||
| 	} | ||||
| 	if defaultRunners[name] then | ||||
| 		hilbish.runner.setMode(name) | ||||
| 		return | ||||
| 	end | ||||
| 
 | ||||
| 	local r = runnerHandler.get(name) | ||||
| 	currentRunner = name | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user