mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	Running "edit foo" will now create "foo.lua" if "foo" does not exist
This commit is contained in:
		| @@ -13,6 +13,11 @@ if fs.exists( sPath ) and fs.isDir( sPath ) then | |||||||
|     return |     return | ||||||
| end | end | ||||||
|  |  | ||||||
|  | -- Create .lua files by default | ||||||
|  | if not fs.exists( sPath ) and not string.find( sPath, "%." ) then | ||||||
|  | 	sPath = sPath .. ".lua" | ||||||
|  | end | ||||||
|  |  | ||||||
| local x,y = 1,1 | local x,y = 1,1 | ||||||
| local w,h = term.getSize() | local w,h = term.getSize() | ||||||
| local scrollX, scrollY = 0,0 | local scrollX, scrollY = 0,0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Ratcliffe
					Daniel Ratcliffe