[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/apps/konsole/src
From: Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date: 2010-04-28 2:45:32
Message-ID: 20100428024532.D0885AC8A5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1119960 by hindenburg:
Correct ANSI's 'delete char' to delete the last character in a line.
Patch provided by Alexandre Becoulet
CCBUG: 217669
M +3 -3 Screen.cpp
--- branches/KDE/4.4/kdebase/apps/konsole/src/Screen.cpp #1119959:1119960
@@ -205,11 +205,11 @@
if ( cuX >= screenLines[cuY].count() )
return;
- if ( cuX+n >= screenLines[cuY].count() )
- n = screenLines[cuY].count() - 1 - cuX;
+ if ( cuX+n > screenLines[cuY].count() )
+ n = screenLines[cuY].count() - cuX;
Q_ASSERT( n >= 0 );
- Q_ASSERT( cuX+n < screenLines[cuY].count() );
+ Q_ASSERT( cuX+n <= screenLines[cuY].count() );
screenLines[cuY].remove(cuX,n);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic