mirror of https://github.com/Wilfred/difftastic/
Revert to term_size
Git invokes difftastic and then pipes stdout to less, but stderr still goes to the terminal. term_size queries both stdout and stderr, so it can still find the terminal width in this situation. Previously, we'd always use a width of 80 when invoked by git. terminal_size discussion: https://github.com/eminence/terminal-size/issues/23 term_size does claim to support Windows, and #71 was not fixed by changing libraries, so this seems reasonable.pull/78/head
parent
382d498559
commit
cb900c3463
Loading…
Reference in New Issue