parent
fb1d3bef3f
commit
2f1a390aaa
|
@ -31,6 +31,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Blurred icons in KDE task switcher (alacritty.ico is now high-res)
|
- Blurred icons in KDE task switcher (alacritty.ico is now high-res)
|
||||||
- Consecutive builds failing on macOS due to preexisting `/Application` symlink
|
- Consecutive builds failing on macOS due to preexisting `/Application` symlink
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- Config option `auto_scroll`, which is now always disabled
|
||||||
|
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
### Packaging
|
### Packaging
|
||||||
|
|
|
@ -87,9 +87,6 @@
|
||||||
# scrollback is enabled (history > 0).
|
# scrollback is enabled (history > 0).
|
||||||
#multiplier: 3
|
#multiplier: 3
|
||||||
|
|
||||||
# Scroll to the bottom when new text is written to the terminal.
|
|
||||||
#auto_scroll: false
|
|
||||||
|
|
||||||
# Spaces per Tab (changes require restart)
|
# Spaces per Tab (changes require restart)
|
||||||
#
|
#
|
||||||
# This setting defines the width of a tab in cells.
|
# This setting defines the width of a tab in cells.
|
||||||
|
|
|
@ -204,6 +204,14 @@ fn print_deprecation_warnings(config: &Config) {
|
||||||
lines"
|
lines"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.scrolling.auto_scroll.is_some() {
|
||||||
|
warn!(
|
||||||
|
target: LOG_TARGET_CONFIG,
|
||||||
|
"Config scrolling.auto_scroll has been removed and is now always disabled, it can be \
|
||||||
|
safely removed from the config"
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
@ -11,8 +11,10 @@ pub struct Scrolling {
|
||||||
history: ScrollingHistory,
|
history: ScrollingHistory,
|
||||||
#[serde(deserialize_with = "failure_default")]
|
#[serde(deserialize_with = "failure_default")]
|
||||||
multiplier: ScrollingMultiplier,
|
multiplier: ScrollingMultiplier,
|
||||||
|
|
||||||
|
// TODO: REMOVED
|
||||||
#[serde(deserialize_with = "failure_default")]
|
#[serde(deserialize_with = "failure_default")]
|
||||||
pub auto_scroll: bool,
|
pub auto_scroll: Option<bool>,
|
||||||
|
|
||||||
// TODO: DEPRECATED
|
// TODO: DEPRECATED
|
||||||
#[serde(deserialize_with = "failure_default")]
|
#[serde(deserialize_with = "failure_default")]
|
||||||
|
|
|
@ -775,9 +775,6 @@ pub struct Term<T> {
|
||||||
/// Number of spaces in one tab
|
/// Number of spaces in one tab
|
||||||
tabspaces: usize,
|
tabspaces: usize,
|
||||||
|
|
||||||
/// Automatically scroll to bottom when new lines are added
|
|
||||||
auto_scroll: bool,
|
|
||||||
|
|
||||||
/// Clipboard access coupled to the active window
|
/// Clipboard access coupled to the active window
|
||||||
clipboard: Clipboard,
|
clipboard: Clipboard,
|
||||||
|
|
||||||
|
@ -911,7 +908,6 @@ impl<T> Term<T> {
|
||||||
default_cursor_style: config.cursor.style,
|
default_cursor_style: config.cursor.style,
|
||||||
dynamic_title: config.dynamic_title(),
|
dynamic_title: config.dynamic_title(),
|
||||||
tabspaces,
|
tabspaces,
|
||||||
auto_scroll: config.scrolling.auto_scroll,
|
|
||||||
clipboard,
|
clipboard,
|
||||||
event_proxy,
|
event_proxy,
|
||||||
is_focused: true,
|
is_focused: true,
|
||||||
|
@ -936,7 +932,6 @@ impl<T> Term<T> {
|
||||||
}
|
}
|
||||||
self.default_cursor_style = config.cursor.style;
|
self.default_cursor_style = config.cursor.style;
|
||||||
self.dynamic_title = config.dynamic_title();
|
self.dynamic_title = config.dynamic_title();
|
||||||
self.auto_scroll = config.scrolling.auto_scroll;
|
|
||||||
self.grid.update_history(config.scrolling.history() as usize, &self.cursor.template);
|
self.grid.update_history(config.scrolling.history() as usize, &self.cursor.template);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1299,11 +1294,6 @@ impl<T: EventListener> Handler for Term<T> {
|
||||||
/// A character to be displayed
|
/// A character to be displayed
|
||||||
#[inline]
|
#[inline]
|
||||||
fn input(&mut self, c: char) {
|
fn input(&mut self, c: char) {
|
||||||
// If enabled, scroll to bottom when character is received
|
|
||||||
if self.auto_scroll {
|
|
||||||
self.scroll_display(Scroll::Bottom);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Number of cells the char will occupy
|
// Number of cells the char will occupy
|
||||||
let width = match c.width() {
|
let width = match c.width() {
|
||||||
Some(width) => width,
|
Some(width) => width,
|
||||||
|
|
Loading…
Reference in New Issue