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
wilder-portage
Robert Knight 19 years ago
parent c077d82562
commit f59c27ab9c
  1. 5
      src/Screen.cpp

@ -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.

Loading…
Cancel
Save