Commit 565b1004 authored by Waqar Ahmed's avatar 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
......@@ -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;
......
Supports Markdown
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