Changeset View
Changeset View
Standalone View
Standalone View
src/vimode/config/configtab.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 118 | { | |||
---|---|---|---|---|---|
120 | if (!hasChanged()) { | 120 | if (!hasChanged()) { | ||
121 | return; | 121 | return; | ||
122 | } | 122 | } | ||
123 | m_changed = false; | 123 | m_changed = false; | ||
124 | 124 | | |||
125 | KateViewConfig::global()->configStart(); | 125 | KateViewConfig::global()->configStart(); | ||
126 | 126 | | |||
127 | // General options. | 127 | // General options. | ||
128 | KateViewConfig::global()->setViRelativeLineNumbers(ui->chkViRelLineNumbers->isChecked()); | 128 | KateViewConfig::global()->setValue(KateViewConfig::ViRelativeLineNumbers, ui->chkViRelLineNumbers->isChecked()); | ||
129 | KateViewConfig::global()->setViInputModeStealKeys(ui->chkViCommandsOverride->isChecked()); | 129 | KateViewConfig::global()->setValue(KateViewConfig::ViInputModeStealKeys, ui->chkViCommandsOverride->isChecked()); | ||
130 | 130 | | |||
131 | // Mappings. | 131 | // Mappings. | ||
132 | applyTab(ui->tblNormalModeMappings, Mappings::NormalModeMapping); | 132 | applyTab(ui->tblNormalModeMappings, Mappings::NormalModeMapping); | ||
133 | applyTab(ui->tblInsertModeMappings, Mappings::InsertModeMapping); | 133 | applyTab(ui->tblInsertModeMappings, Mappings::InsertModeMapping); | ||
134 | applyTab(ui->tblVisualModeMappings, Mappings::VisualModeMapping); | 134 | applyTab(ui->tblVisualModeMappings, Mappings::VisualModeMapping); | ||
135 | 135 | | |||
136 | KateViewConfig::global()->configEnd(); | 136 | KateViewConfig::global()->configEnd(); | ||
137 | } | 137 | } | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |