Author: zooey Date: 2010-08-09 18:39:43 +0200 (Mon, 09 Aug 2010) New Revision: 37989 Changeset: http://dev.haiku-os.org/changeset/37989 Ticket: http://dev.haiku-os.org/ticket/6435 Modified: haiku/trunk/src/kits/interface/textview_support/TextGapBuffer.cpp Log: Fix another glitch reported in #6435 * when shrinking the gap, avoid that deleting the next character will shrink the gap again Modified: haiku/trunk/src/kits/interface/textview_support/TextGapBuffer.cpp =================================================================== --- haiku/trunk/src/kits/interface/textview_support/TextGapBuffer.cpp 2010-08-09 16:31:40 UTC (rev 37988) +++ haiku/trunk/src/kits/interface/textview_support/TextGapBuffer.cpp 2010-08-09 16:39:43 UTC (rev 37989) @@ -127,7 +127,7 @@ fItemCount -= inNumItems; if (fGapCount > kTextGapBufferBlockSize) - _ShrinkGapTo(kTextGapBufferBlockSize); + _ShrinkGapTo(kTextGapBufferBlockSize / 2); }