Commit cfa8116f authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Revert "Dont record locations resulting from typing text"

This reverts commit 93c73bff.
parent ea2d8c90
......@@ -216,12 +216,6 @@ KTextEditor::View *KateViewSpace::createView(KTextEditor::Document *doc)
addJump(view->document()->url(), newPosition);
});
connect(v, &KTextEditor::View::textInserted, this, [this](KTextEditor::View *view, const KTextEditor::Cursor &, const QString &) {
if (view) {
m_textWasInserted = true;
}
});
// register document, it is shown below through showView() then
registerDocument(doc);
......@@ -482,12 +476,6 @@ void KateViewSpace::focusNextTab()
void KateViewSpace::addJump(const QUrl &url, KTextEditor::Cursor c)
{
// are we typing text? => no jump record
if (m_textWasInserted) {
m_textWasInserted = false;
return;
}
// we are in the middle of jumps somewhere?
if (!m_locations.isEmpty() && currentLocation + 1 < m_locations.size()) {
// erase all forward history
......
......@@ -183,7 +183,6 @@ private:
QVector<Location> m_locations;
int currentLocation = 0;
bool m_textWasInserted = false;
/**
* all documents this view space is aware of
......
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