Skip to content

Prevent _replModeStart line number from becoming negative

Matan Ziv-Av requested to merge matan/konsole:negative_mode_start into master

I am not sure this is the same as https://bugs.kde.org/show_bug.cgi?id=458015 and https://bugs.kde.org/show_bug.cgi?id=457920, but it was the only path I could find that results in negative startIndex in call to Screen::writeToStream.

Reproduce crash:

  1. Enable semantic shell integration
  2. Run command with output longer than scrollback buffer.
  3. Before command ends, and without selecting text, copy to clipboard.

Merge request reports