forked from qt-creator/qt-creator
FakeVim: Use a FilePathAspect for .vimrc
Even if it's not used as such, it would be the right thing to use. Change-Id: I7f8931b581af6a97231c49c20e7adc56ad2efff6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1183,7 +1183,7 @@ void FakeVimPluginPrivate::maybeReadVimRc()
|
||||
//qDebug() << theFakeVimSetting(ConfigShiftWidth)->value();
|
||||
if (!settings().readVimRc())
|
||||
return;
|
||||
QString fileName = settings().vimRcPath();
|
||||
QString fileName = settings().vimRcPath().path();
|
||||
if (fileName.isEmpty()) {
|
||||
fileName = QStandardPaths::writableLocation(QStandardPaths::HomeLocation)
|
||||
+ QLatin1String(HostOsInfo::isWindowsHost() ? "/_vimrc" : "/.vimrc");
|
||||
|
||||
Reference in New Issue
Block a user