1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
jules 2007-08-06 17:28:29 +00:00
parent 136023ab95
commit 50b3eb2394

View file

@ -2383,7 +2383,7 @@ int TextEditor::findWordBreakBefore (const int position) const throw()
if (position <= 0)
return 0;
const int startOfBuffer = position - jmin (512, position);
const int startOfBuffer = jmax (0, position - 512);
const String t (getTextSubstring (startOfBuffer, position));
int i = position - startOfBuffer;