Commit ccb31d51 authored by Michal Humpula's avatar Michal Humpula

vi-mode: restore only user marks to bookmarks

REVIEW: 118992
parent 1b0ba433
......@@ -842,8 +842,16 @@ void KateViInputModeManager::syncViMarksAndBookmarks() {
}
}
// For each vi mark line should be bookmarked.
foreach( QChar markerChar, m_marks.keys() ) {
// For specific vi mark line should be bookmarked.
QList<QChar> marksToSync;
foreach(QChar markerChar, m_marks.keys()) {
if (QLatin1Char('a') <= markerChar && markerChar <= QLatin1Char('z')) {
marksToSync << markerChar;
}
}
foreach(QChar markerChar, marksToSync) {
bool thereIsKateMarkForThisLine = false;
for (QHash<int, Mark*>::const_iterator it = m.constBegin(); it != m.constEnd(); ++it) {
if (it.value()->type & MarkInterface::markType01 ) {
......
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