Commit fa9f3a3d authored by Kåre Särs's avatar Kåre Särs
Browse files

Make sure the inline note is after the cursor.

parent 363e4d35
......@@ -70,7 +70,7 @@ QVector<int> GitBlameInlineNoteProvider::inlineNotes(int line) const
int lineLen = m_doc->line(line).size();
for (const auto view: m_doc->views()) {
if (view->cursorPosition().line() == line) {
return QVector<int>{lineLen};
return QVector<int>{qMax(lineLen, 1)};
}
}
return QVector<int>();
......
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