mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-10 10:06:04 -05:00
Merge lines
This commit is contained in:
@@ -45,8 +45,7 @@ void LineEditCompleter::keyPressEvent(QKeyEvent * event)
|
||||
c->popup()->hide();
|
||||
//Truncate the line to last space or whole string
|
||||
QString textValue = text();
|
||||
int lastIndexof = textValue.lastIndexOf(" ");
|
||||
lastIndexof = qMax(0, lastIndexof);
|
||||
int lastIndexof = qMax(0, textValue.lastIndexOf(" "));
|
||||
QString finalString = textValue.left(lastIndexof);
|
||||
//Add a space if there's a word
|
||||
if (finalString != "")
|
||||
|
||||
Reference in New Issue
Block a user