Skip to content
Snippets Groups Projects
Commit fb1e56cb authored by Martin Aumüller's avatar Martin Aumüller Committed by hjk
Browse files

fakevim: use FakeVim indentation settings instead of creator's


Merge-request: 2160
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 85b39966
No related branches found
No related tags found
No related merge requests found
File mode changed from 100755 to 100644
......@@ -649,8 +649,10 @@ void FakeVimPluginPrivate::indentRegion(int *amount, int beginLine, int endLine,
if (!bt)
return;
TextEditor::TabSettings tabSettings =
TextEditor::TextEditorSettings::instance()->tabSettings();
TextEditor::TabSettings tabSettings;
tabSettings.m_indentSize = theFakeVimSetting(ConfigShiftWidth)->value().toInt();
tabSettings.m_tabSize = theFakeVimSetting(ConfigTabStop)->value().toInt();
tabSettings.m_spacesForTabs = theFakeVimSetting(ConfigExpandTab)->value().toBool();
typedef SharedTools::Indenter<TextEditor::TextBlockIterator> Indenter;
Indenter &indenter = Indenter::instance();
indenter.setIndentSize(tabSettings.m_indentSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment