Commit 50d06fe7 authored by hjk's avatar hjk
Browse files

fakevim: compile fix

parent d55e3208
...@@ -222,7 +222,6 @@ public: ...@@ -222,7 +222,6 @@ public:
bool m_wasReadOnly; // saves read-only state of document bool m_wasReadOnly; // saves read-only state of document
FakeVimHandler *q; FakeVimHandler *q;
Core::ICore *m_core;
Mode m_mode; Mode m_mode;
SubMode m_submode; SubMode m_submode;
SubSubMode m_subsubmode; SubSubMode m_subsubmode;
...@@ -242,7 +241,6 @@ public: ...@@ -242,7 +241,6 @@ public:
QString m_commandBuffer; QString m_commandBuffer;
QString m_currentFileName; QString m_currentFileName;
Core::IFile* m_currentFile;
QString m_currentMessage; QString m_currentMessage;
bool m_lastSearchForward; bool m_lastSearchForward;
...@@ -305,8 +303,6 @@ FakeVimHandler::Private::Private(FakeVimHandler *parent) ...@@ -305,8 +303,6 @@ FakeVimHandler::Private::Private(FakeVimHandler *parent)
m_visualMode = NoVisualMode; m_visualMode = NoVisualMode;
m_desiredColumn = 0; m_desiredColumn = 0;
m_core = ExtensionSystem::PluginManager::instance()->getObject<Core::ICore>();
m_config[ConfigStartOfLine] = ConfigOn; m_config[ConfigStartOfLine] = ConfigOn;
m_config[ConfigTabStop] = "8"; m_config[ConfigTabStop] = "8";
m_config[ConfigSmartTab] = ConfigOff; m_config[ConfigSmartTab] = ConfigOff;
......
...@@ -240,8 +240,7 @@ void FakeVimPluginPrivate::writeFile(const QString &fileName, ...@@ -240,8 +240,7 @@ void FakeVimPluginPrivate::writeFile(const QString &fileName,
const QString &contents) const QString &contents)
{ {
if (m_currentFile && fileName == m_currentFile->fileName()) { if (m_currentFile && fileName == m_currentFile->fileName()) {
// handle that as a special case for nicer interation with // Handle that as a special case for nicer interaction with core
// Creator core
m_core->fileManager()->blockFileChange(m_currentFile); m_core->fileManager()->blockFileChange(m_currentFile);
m_currentFile->save(fileName); m_currentFile->save(fileName);
m_core->fileManager()->unblockFileChange(m_currentFile); m_core->fileManager()->unblockFileChange(m_currentFile);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment