Commit f59c27ab authored by Robert Knight's avatar Robert Knight

Fix insertion of characters. Newly inserted characters should be spaces...

Fix insertion of characters.  Newly inserted characters should be spaces rather than null characters, drop any characters which go beyond the width of the screen (in columns).

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=693468
parent c077d825
......@@ -298,7 +298,10 @@ void Screen::insertChars(int n)
{
if (n == 0) n = 1; // Default
screenLines[cuY].insert(cuX,n);
screenLines[cuY].insert(cuX,n,' ');
if ( screenLines[cuY].count() > columns )
screenLines[cuY].resize(columns);
}
/*! delete `n' lines starting from (including) the cursor position.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment