FakeVim: Correctly save input for macro

Change-Id: I648d1ec763c8a49b6d3e1bb5fb13fe1af5ae2368
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hluk
2013-04-16 21:21:00 +02:00
committed by hjk
parent a23c3cb863
commit ea75b0d183

View File

@@ -968,17 +968,23 @@ public:
QString toString() const
{
QString key = vimKeyNames().key(m_key);
bool namedKey = !key.isEmpty();
if (key.isEmpty()) {
if (!namedKey) {
if (m_xkey == '<')
key = _("<LT>");
else
key = QChar(m_xkey);
} else {
if (isShift())
}
bool shift = isShift();
bool ctrl = isControl();
if (shift)
key.prepend(_("S-"));
if (isControl())
if (ctrl)
key.prepend(_("C-"));
if (namedKey || shift || ctrl) {
key.prepend(QLatin1Char('<'));
key.append(QLatin1Char('>'));
}