diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 739e6d5949e..4fe3a588b19 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1117,7 +1117,9 @@ find_tty (const char **tty_type, const char **tty_name, int noabort) | |||
| 1117 | } | 1117 | } |
| 1118 | } | 1118 | } |
| 1119 | 1119 | ||
| 1120 | if (strcmp (type, "eterm") == 0) | 1120 | const char *inside_emacs = egetenv ("INSIDE_EMACS"); |
| 1121 | if (inside_emacs && strstr (inside_emacs, ",term:") | ||
| 1122 | && strprefix ("eterm", type)) | ||
| 1121 | { | 1123 | { |
| 1122 | if (noabort) | 1124 | if (noabort) |
| 1123 | return 0; | 1125 | return 0; |