summaryrefslogtreecommitdiffstats
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-22 21:14:53 +0000
commitebfec1c531f32d424bb2aca6e7391ef3bfcbfe20 (patch)
treed017ab5fcc15f2eef851de089c3b2aef39d7a387 /src/diff.c
parent3d79f0a4309995956bd8889940cca22f7a15881d (diff)
patch 9.0.1234: the code style has to be checked manuallyv9.0.1234
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c
index ec8c8f175d..a155c5eae4 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1680,9 +1680,8 @@ diff_read(
{
if (dio->dio_internal)
{
- if (line_idx >= dout->dout_ga.ga_len) {
+ if (line_idx >= dout->dout_ga.ga_len)
break; // did last line
- }
hunk = ((diffhunk_T **)dout->dout_ga.ga_data)[line_idx++];
}
else