aboutsummaryrefslogtreecommitdiff
path: root/src/window.rs
diff options
context:
space:
mode:
authorDavid Hewitt <1939362+davidhewitt@users.noreply.github.com>2019-03-07 20:37:11 +0000
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-07 20:37:11 +0000
commitea87c1546b98265332239ccf6ff7eb45d7549ee2 (patch)
tree9b8cb69559008ddb5110f57e9c03ad52077d4e3b /src/window.rs
parent9ba7c4fae4d927e109c7981f7e11ca7acdc14eb3 (diff)
downloadr-alacritty-ea87c1546b98265332239ccf6ff7eb45d7549ee2.tar.gz
r-alacritty-ea87c1546b98265332239ccf6ff7eb45d7549ee2.tar.bz2
r-alacritty-ea87c1546b98265332239ccf6ff7eb45d7549ee2.zip
Add dynamic title support for Window
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.rs b/src/window.rs
index cdc3bdc7..cceffcab 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -224,11 +224,8 @@ impl Window {
/// Set the window title
#[inline]
- pub fn set_title(&self, _title: &str) {
- // Because winpty doesn't know anything about OSC escapes this gets set to an empty
- // string on windows
- #[cfg(not(windows))]
- self.window.set_title(_title);
+ pub fn set_title(&self, title: &str) {
+ self.window.set_title(title);
}
#[inline]