Allow option to trim spaces at end of line

In the ongoing issue with spaces at the end of lines, this allows for
an option to trim the spaces.  By default, it is disabled so only
people who need this will be affected.

Many thanks to David Smid <david@smidovi.eu>

CCBUG: 188528
This commit is contained in:
Kurt Hindenburg
2012-09-09 19:03:32 -04:00
parent c83e7b638d
commit ca9dd11bf5
12 changed files with 87 additions and 22 deletions

View File

@@ -117,9 +117,9 @@ QVector<LineProperty> ScreenWindow::getLineProperties()
return result;
}
QString ScreenWindow::selectedText(bool preserveLineBreaks) const
QString ScreenWindow::selectedText(bool preserveLineBreaks, bool trimTrailingSpaces) const
{
return _screen->selectedText(preserveLineBreaks);
return _screen->selectedText(preserveLineBreaks, trimTrailingSpaces);
}
void ScreenWindow::getSelectionStart(int& column , int& line)