diff options
author | Fernando <25850740+FernandoPicazo@users.noreply.github.com> | 2020-06-02 19:01:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 00:01:26 +0000 |
commit | e00986962367db9332611798c630b19ae572ea1b (patch) | |
tree | 9ea6d8f2ef5527b124a8a575edbfadf39322470e | |
parent | c102e845cd96dd14fc3ea928eb3c56cf884f8f35 (diff) | |
download | alacritty-e00986962367db9332611798c630b19ae572ea1b.tar.gz alacritty-e00986962367db9332611798c630b19ae572ea1b.zip |
Add whitespace after dropped file paths
Fixes #3767.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/event.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f79a688..c78d3909 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Shift + Backspace` now sends `^?` instead of `^H` - Default color scheme is now `Tomorrow Night` with the bright colors of `Tomorrow Night Bright` - Set IUTF8 termios flag for improved UTF8 input support +- Dragging files into terminal now adds a space after each path ### Fixed diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 0de130b9..c8c7e02e 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -630,7 +630,7 @@ impl<N: Notify + OnResize> Processor<N> { }, WindowEvent::DroppedFile(path) => { let path: String = path.to_string_lossy().into(); - processor.ctx.write_to_pty(path.into_bytes()); + processor.ctx.write_to_pty((path + " ").into_bytes()); }, WindowEvent::CursorLeft { .. } => { processor.ctx.mouse.inside_grid = false; |