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:
hjk
2023-06-28 16:47:54 +02:00
parent 5e86d20fae
commit 2f7ecdaf06
3 changed files with 11 additions and 4 deletions

View File

@@ -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");