diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index ecd0d18ce85..85415eba44a 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -179,9 +179,9 @@ decode_options (argc, argv) | |||
| 179 | else | 179 | else |
| 180 | tty = 1; | 180 | tty = 1; |
| 181 | 181 | ||
| 182 | /* `emacsclient --no-wait' should open a new permanent frame, then exit. | 182 | /* --no-wait implies --current-frame on ttys when there are file |
| 183 | Otherwise, --no-wait always implies --current-frame. */ | 183 | arguments or expressions given. */ |
| 184 | if (nowait && argc - optind > 0) | 184 | if (nowait && tty && argc - optind > 0) |
| 185 | current_frame = 1; | 185 | current_frame = 1; |
| 186 | 186 | ||
| 187 | if (current_frame) | 187 | if (current_frame) |