Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
50b3eb2394
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/juce_appframework/gui/components/controls/juce_TextEditor.cpp

+ 1
- 1
src/juce_appframework/gui/components/controls/juce_TextEditor.cpp View File

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


Loading…
Cancel
Save