Skip to content
Permalink
Browse files

Make shell autocompletion works with \

The autocompletion of the shell works now, if the path start with \.
  • Loading branch information...
Wilma456 committed Aug 24, 2017
1 parent 579f744 commit fc7203dbf3ab918a2e0276d2a9242c2b3d408b40
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/resources/assets/computercraft/lua/rom/programs/shell.lua
@@ -299,7 +299,7 @@ function shell.programs( _bIncludeHidden )
end

local function completeProgram( sLine )
if #sLine > 0 and string.sub( sLine, 1, 1 ) == "/" then
if #sLine > 0 and (string.sub( sLine, 1, 1 ) == "/" or string.sub( sLine, 1, 1 ) == "\\") then
-- Add programs from the root
return fs.complete( sLine, "", true, false )

0 comments on commit fc7203d

Please sign in to comment.
You can’t perform that action at this time.