imlemented per-view edit location navigation

This commit is contained in:
mae
2009-07-17 18:08:59 +02:00
parent 7c57f260c1
commit f16d0c4d65
6 changed files with 209 additions and 142 deletions

View File

@@ -2601,7 +2601,7 @@ void BaseTextEditor::updateCurrentLineHighlight()
void BaseTextEditor::slotCursorPositionChanged()
{
if (!d->m_contentsChanged && d->m_lastCursorChangeWasInteresting) {
Core::EditorManager::instance()->addCurrentPositionToNavigationHistory(d->m_tempNavigationState);
Core::EditorManager::instance()->addCurrentPositionToNavigationHistory(editableInterface(), d->m_tempNavigationState);
d->m_lastCursorChangeWasInteresting = false;
} else if (d->m_contentsChanged) {
saveCurrentCursorPositionForNavigation();