Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
fa9f3a3d
Commit
fa9f3a3d
authored
Feb 24, 2021
by
Kåre Särs
Browse files
Make sure the inline note is after the cursor.
parent
363e4d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/git-blame/kategitblameplugin.cpp
View file @
fa9f3a3d
...
@@ -70,7 +70,7 @@ QVector<int> GitBlameInlineNoteProvider::inlineNotes(int line) const
...
@@ -70,7 +70,7 @@ QVector<int> GitBlameInlineNoteProvider::inlineNotes(int line) const
int
lineLen
=
m_doc
->
line
(
line
).
size
();
int
lineLen
=
m_doc
->
line
(
line
).
size
();
for
(
const
auto
view
:
m_doc
->
views
())
{
for
(
const
auto
view
:
m_doc
->
views
())
{
if
(
view
->
cursorPosition
().
line
()
==
line
)
{
if
(
view
->
cursorPosition
().
line
()
==
line
)
{
return
QVector
<
int
>
{
lineLen
};
return
QVector
<
int
>
{
qMax
(
lineLen
,
1
)
};
}
}
}
}
return
QVector
<
int
>
();
return
QVector
<
int
>
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment