Fix another glitch reported in #6435

* when shrinking the gap, avoid that deleting the next character will shrink
  the gap again


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37989 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-09 16:39:43 +00:00
parent c2808ea7b2
commit a4bcdeaaf1

View File

@ -127,7 +127,7 @@ TextGapBuffer::RemoveRange(int32 start, int32 end)
fItemCount -= inNumItems;
if (fGapCount > kTextGapBufferBlockSize)
_ShrinkGapTo(kTextGapBufferBlockSize);
_ShrinkGapTo(kTextGapBufferBlockSize / 2);
}