Fix obscure exception case

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37709 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2014-02-24 22:18:38 +00:00
parent f203fea7d7
commit 706eec3f24

View file

@ -6070,10 +6070,13 @@ configuation! */
if ([_delegate respondsToSelector:
@selector(textView:completions:forPartialWordRange:indexOfSelectedItem:)])
{
// Passing in last used word(s) list array causes various problems - use nil for now...
// FIXME: The completions array should be some default dictionary words based on the
// partial word range...
return [_delegate textView: self
completions: [[GSAutocompleteWindow defaultWindow] words]
forPartialWordRange: range
indexOfSelectedItem: index];
completions: nil
forPartialWordRange: range
indexOfSelectedItem: index];
}
return nil;