fix more silly tab completion behavior

git-svn-id: file:///home/svn/framework3/trunk@11546 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-01-11 18:55:37 +00:00
parent ffbea6199f
commit 855f8b0752
2 changed files with 4 additions and 4 deletions

View File

@ -88,11 +88,11 @@ module CommandDispatcher
if (commands.include?(words[0]))
if (self.respond_to?('cmd_'+words[0]+'_tabs'))
res = self.send('cmd_'+words[0]+'_tabs', str, words)
return nil if res.nil?
return [] if res.nil?
items.concat(res)
else
# Avoid the default completion list for known commands
return nil
return []
end
end

View File

@ -595,11 +595,11 @@ class Console::CommandDispatcher::Core
if (commands.include?(words[0]))
if (self.respond_to?('cmd_'+words[0]+'_tabs'))
res = self.send('cmd_'+words[0]+'_tabs', str, words)
return nil if res.nil?
return [] if res.nil?
items.concat(res)
else
# Avoid the default completion list for known commands
return nil
return []
end
end