Changeset View
Changeset View
Standalone View
Standalone View
src/inputmode/kateviinputmode.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 169 | { | |||
---|---|---|---|---|---|
170 | QString currentMode = viModeToString(m_viModeManager->getCurrentViMode()); | 170 | QString currentMode = viModeToString(m_viModeManager->getCurrentViMode()); | ||
171 | 171 | | |||
172 | if (m_viModeManager->macroRecorder()->isRecording()) { | 172 | if (m_viModeManager->macroRecorder()->isRecording()) { | ||
173 | currentMode.prepend(QLatin1String("(") + i18n("recording") + QLatin1String(") ")); | 173 | currentMode.prepend(QLatin1String("(") + i18n("recording") + QLatin1String(") ")); | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | QString cmd = m_viModeManager->getVerbatimKeys(); | 176 | QString cmd = m_viModeManager->getVerbatimKeys(); | ||
177 | if (!cmd.isEmpty()) { | 177 | if (!cmd.isEmpty()) { | ||
178 | currentMode.prepend(QStringLiteral("<em>%1</em> ").arg(cmd)); | 178 | currentMode.prepend(QStringLiteral("%1 ").arg(cmd)); | ||
179 | } | 179 | } | ||
180 | 180 | | |||
181 | return QStringLiteral("<b>%1</b>").arg(currentMode); | 181 | return QStringLiteral("%1").arg(currentMode); | ||
182 | } | 182 | } | ||
183 | 183 | | |||
184 | void KateViInputMode::gotFocus() | 184 | void KateViInputMode::gotFocus() | ||
185 | { | 185 | { | ||
186 | // nothing to do | 186 | // nothing to do | ||
187 | } | 187 | } | ||
188 | 188 | | |||
189 | void KateViInputMode::lostFocus() | 189 | void KateViInputMode::lostFocus() | ||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |