File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -843,7 +843,7 @@ function scm:init ()
843843end
844844
845845--- @param resetPosition boolean | nil
846- function scm :cli (resetPosition )
846+ function scm :cli (resetPosition , args )
847847 if resetPosition ~= nil and resetPosition == true then
848848 term .setCursorPos (1 , 7 )
849849 end
@@ -870,12 +870,16 @@ function scm:cli (resetPosition)
870870 term .blit (" " ," ffffffffffffffffffffffffffffffff" ," 44444444444444444444444444444444" )
871871 term .setCursorPos (1 , cursorY )
872872 term .scroll (2 )
873+
874+ if args and # args == 0 then
875+ read (nil , nil , shell .complete , " scm " )
876+ end
873877end
874878
875879--- @param args table
876880function scm :handleArguments (args )
877881 if # args == 0 then
878- self :cli ()
882+ self :cli (false , args )
879883 return
880884 end
881885
You can’t perform that action at this time.
0 commit comments