mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
CodeDocument fix.
This commit is contained in:
parent
ab10aeca89
commit
386cb19ddd
1 changed files with 1 additions and 1 deletions
|
|
@ -877,7 +877,7 @@ void CodeDocument::insert (const String& text, const int insertPos, const bool u
|
|||
{
|
||||
CodeDocument::Position& p = *positionsToMaintain.getUnchecked(i);
|
||||
|
||||
if (p.getPosition() > insertPos)
|
||||
if (p.getPosition() >= insertPos)
|
||||
p.setPosition (p.getPosition() + newTextLength);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue