summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando <25850740+FernandoPicazo@users.noreply.github.com>2020-06-02 19:01:26 -0500
committerGitHub <noreply@github.com>2020-06-03 00:01:26 +0000
commite00986962367db9332611798c630b19ae572ea1b (patch)
tree9ea6d8f2ef5527b124a8a575edbfadf39322470e
parentc102e845cd96dd14fc3ea928eb3c56cf884f8f35 (diff)
Add whitespace after dropped file paths
Fixes #3767.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/event.rs2
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;