[Konsole-devel] [Bug 217669] New: Wrong behavior for 'delete char' ansi code

Joel Porquet torpe at laposte.net
Mon Dec 7 00:20:50 UTC 2009


https://bugs.kde.org/show_bug.cgi?id=217669

           Summary: Wrong behavior for 'delete char' ansi code
           Product: konsole
           Version: unspecified
          Platform: Archlinux Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: torpe at laposte.net


Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Archlinux Packages

The character deletion ansi code "[P" fails to delete the last character of a
line.

This behavior is due to the void Screen::deleteChars(int n) function in
Screen.cpp. The line lenght check seems wrong:

208        if ( cuX+n >= screenLines[cuY].count() ) 
209            n = screenLines[cuY].count() - 1 - cuX;

should probably be:

208        if ( cuX+n > screenLines[cuY].count() ) 
209            n = screenLines[cuY].count() - cuX;

which would be coherent with the existing Q_ASSERT:

212        Q_ASSERT( cuX+n < screenLines[cuY].count() );

Regards,

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list