mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
fix(emacs): fix check for open frames w/ extra output (#10992)
This commit is contained in:
parent
8168ec0174
commit
4c82a2eedf
@ -11,7 +11,7 @@ emacsfun() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Check if there are suitable frames
|
# Check if there are suitable frames
|
||||||
frames="$(emacsclient -a '' -n -e "$cmd" 2>/dev/null)"
|
frames="$(emacsclient -a '' -n -e "$cmd" 2>/dev/null |sed 's/.*\x07//g' )"
|
||||||
|
|
||||||
# Only create another X frame if there isn't one present
|
# Only create another X frame if there isn't one present
|
||||||
if [ -z "$frames" -o "$frames" = nil ]; then
|
if [ -z "$frames" -o "$frames" = nil ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user