diff options
| author | nyamatongwe <devnull@localhost> | 2004-10-24 01:50:09 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2004-10-24 01:50:09 +0000 | 
| commit | ae1701df0b25a38157c2adaca91b090aebbbcc3c (patch) | |
| tree | 359f24e5c2c86c8a5bd496f315b6df2cb4ece788 /src/ScintillaBase.cxx | |
| parent | df74730c0929fdf64d8bada8ad3101ff30e1ffa1 (diff) | |
| download | scintilla-mirror-ae1701df0b25a38157c2adaca91b090aebbbcc3c.tar.gz | |
Patch from Stephan Deibel to handle autocompletion for words
longer than 1000 characters.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index e67c03ac5..1d3867b7f 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -280,9 +280,9 @@ void ScintillaBase::AutoCompleteMoveToCurrentWord() {  	char wordCurrent[1000];  	int i;  	int startWord = ac.posStart - ac.startLen; -	for (i = startWord; i < currentPos; i++) +	for (i = startWord; i < currentPos && i - startWord < 1000; i++)  		wordCurrent[i - startWord] = pdoc->CharAt(i); -	wordCurrent[i - startWord] = '\0'; +	wordCurrent[Platform::Minimum(i - startWord, 999)] = '\0';  	ac.Select(wordCurrent);  } | 
