| Summary: | Selecting the whole screen using the Ctrl+Alt keys lets Konsole crash | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Tijmen Baarda <tijmenbaarda> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Tijmen Baarda
2005-02-26 15:45:37 UTC
konsole: /home/kvh/CVS/KDE/CVS-kde/kdebase/konsole/konsole/TEScreen.cpp:1336: void TEScreen::getSelText(bool, QTextStream*): Assertion `d <= columns' failed. KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = konsole path = <unknown> pid = 2269 I can only reproduce when selecting horizontally the full width of the screen. Putting a debug in the LINE_END, I get konsole: LINE_END d=1900; columns=100 CVS commit by waba:
Don't crash when selecting full line with Ctrl+Alt
BUG: 100308
M +5 -0 TEScreen.cpp 1.88
--- kdebase/konsole/konsole/TEScreen.cpp #1.87:1.88
@@ -1323,4 +1323,9 @@ void TEScreen::getSelText(bool preserve_
newlineneeded = true;
}
+ if (((s - hist_BR) % columns == 0) && newlineneeded)
+ {
+ LINE_END;
+ newlineneeded = false;
+ }
}
else {
It failed to put in linebreaks when the selection was the full screen width. |