forked from qt-creator/qt-creator
Make document model API more consistent with entry vs document
Change-Id: Iae2fe480d9fcb564d566f1dcca142c21c99c2d5b Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -2154,12 +2154,12 @@ int FakeVimPluginPrivate::currentFile() const
|
||||
|
||||
void FakeVimPluginPrivate::switchToFile(int n)
|
||||
{
|
||||
int size = DocumentModel::documentCount();
|
||||
int size = DocumentModel::entryCount();
|
||||
QTC_ASSERT(size, return);
|
||||
n = n % size;
|
||||
if (n < 0)
|
||||
n += size;
|
||||
EditorManager::activateEditorForEntry(DocumentModel::documents().at(n));
|
||||
EditorManager::activateEditorForEntry(DocumentModel::entries().at(n));
|
||||
}
|
||||
|
||||
ExCommandMap &FakeVimExCommandsPage::exCommandMap()
|
||||
|
||||
Reference in New Issue
Block a user