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:
parent
c2808ea7b2
commit
a4bcdeaaf1
@ -127,7 +127,7 @@ TextGapBuffer::RemoveRange(int32 start, int32 end)
|
||||
fItemCount -= inNumItems;
|
||||
|
||||
if (fGapCount > kTextGapBufferBlockSize)
|
||||
_ShrinkGapTo(kTextGapBufferBlockSize);
|
||||
_ShrinkGapTo(kTextGapBufferBlockSize / 2);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user