From 706eec3f245dce9e15e076e03cdb0361a64c2e57 Mon Sep 17 00:00:00 2001 From: Marcian Lytwyn Date: Mon, 24 Feb 2014 22:18:38 +0000 Subject: [PATCH] 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 --- Source/NSTextView.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 4f58803f2..2ddb96335 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -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;