Changeset View
Changeset View
Standalone View
Standalone View
src/vimode/emulatedcommandbar/commandmode.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
55 | cmds.push_back(AppCommands::self()); | 55 | cmds.push_back(AppCommands::self()); | ||
56 | cmds.push_back(SedReplace::self()); | 56 | cmds.push_back(SedReplace::self()); | ||
57 | cmds.push_back(BufferCommands::self()); | 57 | cmds.push_back(BufferCommands::self()); | ||
58 | 58 | | |||
59 | Q_FOREACH (KTextEditor::Command *cmd, KateScriptManager::self()->commandLineScripts()) { | 59 | Q_FOREACH (KTextEditor::Command *cmd, KateScriptManager::self()->commandLineScripts()) { | ||
60 | cmds.push_back(cmd); | 60 | cmds.push_back(cmd); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | Q_FOREACH (KTextEditor::Command *cmd, cmds) { | 63 | for (KTextEditor::Command *cmd : qAsConst(cmds)) { | ||
64 | QStringList l = cmd->cmds(); | 64 | QStringList l = cmd->cmds(); | ||
65 | 65 | | |||
66 | for (int z = 0; z < l.count(); z++) { | 66 | for (int z = 0; z < l.count(); z++) { | ||
67 | m_cmdDict.insert(l[z], cmd); | 67 | m_cmdDict.insert(l[z], cmd); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | m_cmdCompletion.insertItems(l); | 70 | m_cmdCompletion.insertItems(l); | ||
71 | } | 71 | } | ||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |