fix more silly tab completion behavior
git-svn-id: file:///home/svn/framework3/trunk@11546 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
ffbea6199f
commit
855f8b0752
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue