aboutsummaryrefslogtreecommitdiff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-13 18:55:18 +0000
committerGitHub <noreply@github.com>2019-03-13 18:55:18 +0000
commitb1032bcc6b79135f87f327548e43563da05657fb (patch)
tree94915b15d11094006dcd3381b8ff0d0d3ed5de9b /src/config/mod.rs
parent0b9ae4ce936dfafbf5ea1929a170c97391cdea0b (diff)
downloadr-alacritty-b1032bcc6b79135f87f327548e43563da05657fb.tar.gz
r-alacritty-b1032bcc6b79135f87f327548e43563da05657fb.tar.bz2
r-alacritty-b1032bcc6b79135f87f327548e43563da05657fb.zip
Add text reflow
Alacritty will now automatically reflow lines and shrink them when they would usually exceed the new width of the terminal instead of truncation. If a line had to be truncated, it will also be reflown into the previous line after growing the terminal width. The reflow behavior when not at the bottom of the history is similar to that of VTE and aims to keep the viewport stationary whenever possible. Opposed to VTE, reflow will also be performed in the alternate screen buffer. There will be bugs when resizing the terminal emulator to a size smaller than the prompt, though these issues were present in all terminal emulators with reflow support. This fixes #591.
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index b8dd9f82..2fa60dad 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -170,7 +170,7 @@ impl Default for Url {
fn deserialize_modifiers<'a, D>(deserializer: D) -> ::std::result::Result<ModifiersState, D::Error>
where D: de::Deserializer<'a>
{
- ModsWrapper::deserialize(deserializer).map(|wrapper| wrapper.into_inner())
+ ModsWrapper::deserialize(deserializer).map(ModsWrapper::into_inner)
}
/// `VisualBellAnimations` are modeled after a subset of CSS transitions and Robert
@@ -1665,7 +1665,7 @@ impl Config {
}
None
})
- .map(|path| path.into())
+ .map(Into::into)
}
// TODO: Remove old configuration location warning (Deprecated 03/12/2018)
@@ -1810,7 +1810,7 @@ impl Config {
pub fn path(&self) -> Option<&Path> {
self.config_path
.as_ref()
- .map(|p| p.as_path())
+ .map(PathBuf::as_path)
}
pub fn shell(&self) -> Option<&Shell<'_>> {