Closed bard closed 11 months ago
I noticed lefthook was hanging for several seconds when running inside Emacs shell. I tracked it down to termenv via lipgloss.
termenv
Edit: this also happens in Magit and any other Emacs subprocess.
This PR fixes the delay by adding a check for TERM=dumb, which is the default in Emacs shell, as it's already done for TERM=tmux and TERM=screen.
TERM=dumb
TERM=tmux
TERM=screen
Before:
Screencast from 2023-09-15 19-24-17.webm
After:
Screencast from 2023-09-15 19-23-34.webm
+1 for this fix!
@muesli Do you have a planning for looking at this PR?
Yep, will merge this! Thank you!
I noticed lefthook was hanging for several seconds when running inside Emacs shell. I tracked it down to
termenv
via lipgloss.Edit: this also happens in Magit and any other Emacs subprocess.
This PR fixes the delay by adding a check for
TERM=dumb
, which is the default in Emacs shell, as it's already done forTERM=tmux
andTERM=screen
.Before:
Screencast from 2023-09-15 19-24-17.webm
After:
Screencast from 2023-09-15 19-23-34.webm