Skip to content

Commit

Permalink
manage-traffic-jam: set wrap columns for vimdiff inspect mode
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Nov 22, 2023
1 parent 8586217 commit 066c4eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/gftools/scripts/manage_traffic_jam.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def vim_diff(self, item: Items):
json.dump(item.to_json(), tmp, indent=4)
tmp.flush()
files.append(tmp)
subprocess.call(["vimdiff"] + [f.name for f in files])
subprocess.call(
["vimdiff", "-c", "windo set wrap"] \
+ [f.name for f in files]
)
for f in files:
f.close()

Expand Down

0 comments on commit 066c4eb

Please sign in to comment.