[meld] filediff: Variable renaming for some slight clarity
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] filediff: Variable renaming for some slight clarity
- Date: Sun, 10 Jul 2016 00:54:13 +0000 (UTC)
commit 949260fab2ba116388ec15a0dfa191a0ebff0a0a
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jul 10 10:42:37 2016 +1000
filediff: Variable renaming for some slight clarity
meld/filediff.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 9144127..d8cdc1f 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1250,12 +1250,12 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
for chunk in need_highlighting:
clear = chunk == modified_chunks
- for i, c in enumerate(chunk):
+ for merge_cache_index, c in enumerate(chunk):
if not c or c[0] != "replace":
continue
- to_idx = 2 if i == 1 else 0
- bufs = self.textbuffer[1], self.textbuffer[to_idx]
- tags = alltags[1], alltags[to_idx]
+ to_pane = 2 if merge_cache_index == 1 else 0
+ bufs = self.textbuffer[1], self.textbuffer[to_pane]
+ tags = alltags[1], alltags[to_pane]
starts = [b.get_iter_at_line_or_eof(l) for b, l in
zip(bufs, (c[1], c[3]))]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]