Changeset View
Changeset View
Standalone View
Standalone View
src/vimode/emulatedcommandbar/commandmode.cpp
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Line(s) | 204 | } else { | |||
---|---|---|---|---|---|
219 | } | 219 | } | ||
220 | } | 220 | } | ||
221 | } else { | 221 | } else { | ||
222 | commandResponseMessage = i18n("No such command: \"%1\"", cmd); | 222 | commandResponseMessage = i18n("No such command: \"%1\"", cmd); | ||
223 | } | 223 | } | ||
224 | } | 224 | } | ||
225 | 225 | | |||
226 | // the following commands change the focus themselves | 226 | // the following commands change the focus themselves | ||
227 | static const QRegularExpression reCmds(QLatin1String("^(buffer|b|new|vnew|bp|bprev|tabp|tabprev|bn|bnext|tabn|tabnext|bf|bfirst|tabf|tabfirst|bl|blast|tabl|tablast|e|edit|tabe|tabedit|tabnew)$")); | 227 | static const QRegularExpression reCmds(QStringLiteral("^(buffer|b|new|vnew|bp|bprev|tabp|tabprev|bn|bnext|tabn|tabnext|bf|bfirst|tabf|tabfirst|bl|blast|tabl|tablast|e|edit|tabe|tabedit|tabnew)$")); | ||
228 | if (!reCmds.match(cmd.split(QLatin1Char(' ')).at(0)).hasMatch()) { | 228 | if (!reCmds.match(cmd.split(QLatin1Char(' ')).at(0)).hasMatch()) { | ||
229 | view()->setFocus(); | 229 | view()->setFocus(); | ||
230 | } | 230 | } | ||
231 | 231 | | |||
232 | viInputModeManager()->reset(); | 232 | viInputModeManager()->reset(); | ||
233 | return commandResponseMessage; | 233 | return commandResponseMessage; | ||
234 | 234 | | |||
235 | } | 235 | } | ||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |