Skip to content
GitLab
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
565b1004
Commit
565b1004
authored
Sep 04, 2022
by
Waqar Ahmed
Browse files
Diff: Ensure to return early if block has no lines
parent
f9fdf079
Pipeline
#227161
passed with stage
in 6 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/diff/diffeditor.cpp
View file @
565b1004
...
...
@@ -372,6 +372,9 @@ void DiffEditor::toggleFoldHunk(int blockNumber)
if
(
count
==
-
1
)
{
count
=
blockCount
()
-
blockNumber
;
}
if
(
count
<=
0
)
{
return
;
}
auto
block
=
document
()
->
findBlockByNumber
(
blockNumber
).
next
();
int
i
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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