mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Fix for browser plugins using tabs in firefox 3.6. Minor CodeEditorComponent fix.
This commit is contained in:
parent
0768b3bb12
commit
3057acf0b3
3 changed files with 1227 additions and 1220 deletions
|
|
@ -372,10 +372,13 @@ void CodeDocument::Position::moveBy (int characterDelta) throw()
|
|||
setPosition (getPosition());
|
||||
|
||||
// If moving right, make sure we don't get stuck between the \r and \n characters..
|
||||
CodeDocumentLine* const l = owner->lines.getUnchecked (line);
|
||||
if (indexInLine + characterDelta < l->lineLength
|
||||
&& indexInLine + characterDelta >= l->lineLengthWithoutNewLines + 1)
|
||||
++characterDelta;
|
||||
if (line < owner->lines.size())
|
||||
{
|
||||
CodeDocumentLine* const l = owner->lines.getUnchecked (line);
|
||||
if (indexInLine + characterDelta < l->lineLength
|
||||
&& indexInLine + characterDelta >= l->lineLengthWithoutNewLines + 1)
|
||||
++characterDelta;
|
||||
}
|
||||
}
|
||||
|
||||
setPosition (characterPos + characterDelta);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue