mirror of
https://github.com/alacritty/alacritty.git
synced 2025-02-24 16:06:43 -05:00
parent
c10888b0f0
commit
3bfc4c2808
2 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
- The `--help` output was reworked with a new colorful syntax
|
- The `--help` output was reworked with a new colorful syntax
|
||||||
- OSC 52 is now disabled on unfocused windows
|
- OSC 52 is now disabled on unfocused windows
|
||||||
|
- `SpawnNewInstance` no longer inherits initial `--command`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -364,6 +364,11 @@ impl<'a, N: Notify + 'a, T: EventListener> input::ActionContext<T> for ActionCon
|
||||||
// Reuse the arguments passed to Alacritty for the new instance.
|
// Reuse the arguments passed to Alacritty for the new instance.
|
||||||
#[allow(clippy::while_let_on_iterator)]
|
#[allow(clippy::while_let_on_iterator)]
|
||||||
while let Some(arg) = env_args.next() {
|
while let Some(arg) = env_args.next() {
|
||||||
|
// New instances shouldn't inherit command.
|
||||||
|
if arg == "-e" || arg == "--command" {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// On unix, the working directory of the foreground shell is used by `start_daemon`.
|
// On unix, the working directory of the foreground shell is used by `start_daemon`.
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
if arg == "--working-directory" {
|
if arg == "--working-directory" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue