From a4bcdeaaf1c5d8cbbbbdb2f4a87bd6bed14b796c Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 9 Aug 2010 16:39:43 +0000 Subject: [PATCH] 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 --- src/kits/interface/textview_support/TextGapBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/textview_support/TextGapBuffer.cpp b/src/kits/interface/textview_support/TextGapBuffer.cpp index 9f5161ad58..af122f0c6c 100644 --- a/src/kits/interface/textview_support/TextGapBuffer.cpp +++ b/src/kits/interface/textview_support/TextGapBuffer.cpp @@ -127,7 +127,7 @@ TextGapBuffer::RemoveRange(int32 start, int32 end) fItemCount -= inNumItems; if (fGapCount > kTextGapBufferBlockSize) - _ShrinkGapTo(kTextGapBufferBlockSize); + _ShrinkGapTo(kTextGapBufferBlockSize / 2); }