From 224e752a8f549d0f3297b29aa7c17069d4694588 Mon Sep 17 00:00:00 2001 From: Wojbie Date: Fri, 7 Jul 2017 02:18:24 +0200 Subject: [PATCH] Tweak to Go and Turn autocompletition. Adds spaces to simplyfy making chains of commands. Also fix up turn not autocompleting after first argument. --- src/main/resources/assets/computercraft/lua/rom/startup.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/startup.lua b/src/main/resources/assets/computercraft/lua/rom/startup.lua index cf9e58aa5..def4fd35f 100644 --- a/src/main/resources/assets/computercraft/lua/rom/startup.lua +++ b/src/main/resources/assets/computercraft/lua/rom/startup.lua @@ -208,13 +208,11 @@ shell.setCompletionFunction( "rom/programs/command/exec.lua", completeExec ) if turtle then local tGoOptions = { "left", "right", "forward", "back", "down", "up" } local function completeGo( shell, nIndex, sText ) - return completeMultipleChoice(sText,tGoOptions) + return completeMultipleChoice( sText, tGoOptions, true) end local tTurnOptions = { "left", "right" } local function completeTurn( shell, nIndex, sText ) - if nIndex == 1 then - return completeMultipleChoice( sText, tTurnOptions ) - end + return completeMultipleChoice( sText, tTurnOptions, true ) end local tEquipOptions = { "left", "right" } local function completeEquip( shell, nIndex, sText )