Commit e91c8d77 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Fix a few krazy/api issues

parent 3e8de095
......@@ -362,7 +362,7 @@ void ProfileManager::changeProfile(Profile::Ptr profile,
newName = QStringLiteral("Profile ") + QString::number(nameSuffix);
newTranslatedName = i18nc("The default name of a profile", "Profile #%1", nameSuffix);
// TODO: remove the # above and below - too many issues
newTranslatedName.remove("#");
newTranslatedName.remove('#');
nameSuffix++;
} while (existingProfileNames.contains(newName));
......
......@@ -740,9 +740,9 @@ void Session::reportBackgroundColor(const QColor& c)
{
#define to65k(a) (QString("%1").arg((int)(a*0xFFFF), 4, 16, QChar('0')))
QString msg = "\033]11;rgb:"
+ to65k(c.redF()) + "/"
+ to65k(c.greenF()) + "/"
+ to65k(c.blueF()) + "\a";
+ to65k(c.redF()) + '/'
+ to65k(c.greenF()) + '/'
+ to65k(c.blueF()) + '\a';
_emulation->sendString(msg.toUtf8());
#undef to65k
}
......
......@@ -663,8 +663,8 @@ signals:
void selectionChanged(const QString& text);
/**
* Emitted when background request ('\033]11;?\a') terminal code received.
* Terminal is expected send '\033]11;rgb:RRRR/GGGG/BBBB\a' response.
* Emitted when background request ("\033]11;?\a") terminal code received.
* Terminal is expected send "\033]11;rgb:RRRR/GGGG/BBBB\a" response.
*
* Originally implemented to support vim's background detection feature
* (without explictly setting 'bg=dark' within local/remote vimrc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment