aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyose <ayosec@gmail.com>2021-04-01 20:16:04 +0100
committerAyose <ayosec@gmail.com>2021-04-01 20:16:04 +0100
commitb4adf34bb9ce6e28fa0c15ab8b9eaea20303e982 (patch)
tree257086569277a6f2265dc797bed6fa1140240235
parent08ceb315108895390792459943fef4069124494f (diff)
parent58cae8f2edf44e6bf0721543c61edb57bdf7d776 (diff)
downloadr-alacritty-b4adf34bb9ce6e28fa0c15ab8b9eaea20303e982.tar.gz
r-alacritty-b4adf34bb9ce6e28fa0c15ab8b9eaea20303e982.tar.bz2
r-alacritty-b4adf34bb9ce6e28fa0c15ab8b9eaea20303e982.zip
Merge remote-tracking branch 'vendor/master' into tmp1
-rw-r--r--CHANGELOG.md3
-rw-r--r--alacritty.yml2
-rw-r--r--alacritty/src/config/mouse.rs5
-rw-r--r--alacritty/src/config/window.rs6
-rw-r--r--alacritty/src/display/content.rs63
-rw-r--r--alacritty/src/display/cursor.rs6
-rw-r--r--alacritty/src/display/hint.rs4
-rw-r--r--alacritty/src/display/mod.rs58
-rw-r--r--alacritty/src/display/wayland_theme.rs4
-rw-r--r--alacritty/src/event.rs161
-rw-r--r--alacritty/src/input.rs163
-rw-r--r--alacritty/src/main.rs3
-rw-r--r--alacritty/src/message_bar.rs6
-rw-r--r--alacritty/src/renderer/graphics/draw.rs6
-rw-r--r--alacritty/src/renderer/mod.rs5
-rw-r--r--alacritty/src/renderer/rects.rs17
-rw-r--r--alacritty/src/url.rs67
-rw-r--r--alacritty_config_derive/tests/config.rs2
-rw-r--r--alacritty_terminal/src/ansi.rs46
-rw-r--r--alacritty_terminal/src/grid/mod.rs302
-rw-r--r--alacritty_terminal/src/grid/resize.rs139
-rw-r--r--alacritty_terminal/src/grid/row.rs24
-rw-r--r--alacritty_terminal/src/grid/storage.rs156
-rw-r--r--alacritty_terminal/src/grid/tests.rs242
-rw-r--r--alacritty_terminal/src/index.rs595
-rw-r--r--alacritty_terminal/src/selection.rs323
-rw-r--r--alacritty_terminal/src/term/cell.rs4
-rw-r--r--alacritty_terminal/src/term/mod.rs452
-rw-r--r--alacritty_terminal/src/term/search.rs261
-rw-r--r--alacritty_terminal/src/tty/unix.rs5
-rw-r--r--alacritty_terminal/src/tty/windows/conpty.rs9
-rw-r--r--alacritty_terminal/src/vi_mode.rs188
-rw-r--r--alacritty_terminal/tests/ref.rs8
-rw-r--r--alacritty_terminal/tests/ref/alt_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/alt_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/clear_underline/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/clear_underline/size.json2
-rw-r--r--alacritty_terminal/tests/ref/colored_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/colored_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/csi_rep/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/csi_rep/size.json2
-rw-r--r--alacritty_terminal/tests/ref/decaln_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/decaln_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/deccolm_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/deccolm_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/delete_chars_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/delete_chars_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/delete_lines/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/delete_lines/size.json2
-rw-r--r--alacritty_terminal/tests/ref/erase_chars_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/erase_chars_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/fish_cc/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/fish_cc/size.json2
-rw-r--r--alacritty_terminal/tests/ref/grid_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/grid_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/history/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/history/size.json2
-rw-r--r--alacritty_terminal/tests/ref/indexed_256_colors/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/indexed_256_colors/size.json2
-rw-r--r--alacritty_terminal/tests/ref/insert_blank_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/insert_blank_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/issue_855/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/issue_855/size.json2
-rw-r--r--alacritty_terminal/tests/ref/ll/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/ll/size.json2
-rw-r--r--alacritty_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/newline_with_cursor_beyond_scroll_region/size.json2
-rw-r--r--alacritty_terminal/tests/ref/region_scroll_down/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/region_scroll_down/size.json2
-rw-r--r--alacritty_terminal/tests/ref/row_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/row_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/saved_cursor/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/saved_cursor/size.json2
-rw-r--r--alacritty_terminal/tests/ref/saved_cursor_alt/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/saved_cursor_alt/size.json2
-rw-r--r--alacritty_terminal/tests/ref/scroll_up_reset/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/scroll_up_reset/size.json2
-rw-r--r--alacritty_terminal/tests/ref/selective_erasure/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/selective_erasure/size.json2
-rw-r--r--alacritty_terminal/tests/ref/sgr/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/sgr/size.json2
-rw-r--r--alacritty_terminal/tests/ref/tab_rendering/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/tab_rendering/size.json2
-rw-r--r--alacritty_terminal/tests/ref/tmux_git_log/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/tmux_git_log/size.json2
-rw-r--r--alacritty_terminal/tests/ref/tmux_htop/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/tmux_htop/size.json2
-rw-r--r--alacritty_terminal/tests/ref/underline/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/underline/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_24bitcolors_bce/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_24bitcolors_bce/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_large_window_scroll/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_large_window_scroll/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_simple_edit/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vim_simple_edit/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_cursor_movement_1/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_cursor_movement_1/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_insert/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_insert/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_origin_mode_1/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_origin_mode_1/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_origin_mode_2/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_origin_mode_2/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_scroll/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_scroll/size.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_tab_clear_set/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/vttest_tab_clear_set/size.json2
-rw-r--r--alacritty_terminal/tests/ref/wrapline_alt_toggle/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/wrapline_alt_toggle/size.json2
-rw-r--r--alacritty_terminal/tests/ref/zerowidth/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/zerowidth/size.json2
-rw-r--r--alacritty_terminal/tests/ref/zsh_tab_completion/grid.json2
-rw-r--r--alacritty_terminal/tests/ref/zsh_tab_completion/size.json2
113 files changed, 1523 insertions, 1972 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 59478697..74391ed8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Alacritty failing to start on X11 with invalid DPI reported by XRandr
- Text selected after search without any match
- Incorrect vi cursor position after leaving search
+- Clicking on URLs on Windows incorrectly opens File Explorer
+- Incorrect underline cursor thickness on wide cell
+- Viewport moving around when resizing while scrolled into history
### Removed
diff --git a/alacritty.yml b/alacritty.yml
index 2ffadc2d..d049e665 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -456,7 +456,7 @@
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
- # - (Windows) explorer
+ # - (Windows) cmd /c start ""
#launcher:
# program: xdg-open
# args: []
diff --git a/alacritty/src/config/mouse.rs b/alacritty/src/config/mouse.rs
index f562ebe0..2aa7557c 100644
--- a/alacritty/src/config/mouse.rs
+++ b/alacritty/src/config/mouse.rs
@@ -38,7 +38,10 @@ impl Default for Url {
#[cfg(target_os = "macos")]
launcher: Some(Program::Just(String::from("open"))),
#[cfg(windows)]
- launcher: Some(Program::Just(String::from("explorer"))),
+ launcher: Some(Program::WithArgs {
+ program: String::from("cmd"),
+ args: vec!["/c".to_string(), "start".to_string(), "".to_string()],
+ }),
modifiers: Default::default(),
}
}
diff --git a/alacritty/src/config/window.rs b/alacritty/src/config/window.rs
index 2d501b91..d74390d8 100644
--- a/alacritty/src/config/window.rs
+++ b/alacritty/src/config/window.rs
@@ -8,7 +8,7 @@ use serde::{Deserialize, Deserializer};
use alacritty_config_derive::ConfigDeserialize;
use alacritty_terminal::config::LOG_TARGET_CONFIG;
-use alacritty_terminal::index::{Column, Line};
+use alacritty_terminal::index::Column;
use crate::config::ui_config::Delta;
@@ -74,7 +74,7 @@ impl WindowConfig {
#[inline]
pub fn dimensions(&self) -> Option<Dimensions> {
if self.dimensions.columns.0 != 0
- && self.dimensions.lines.0 != 0
+ && self.dimensions.lines != 0
&& self.startup_mode != StartupMode::Maximized
{
Some(self.dimensions)
@@ -145,7 +145,7 @@ pub struct Dimensions {
pub columns: Column,
/// Window Height in character lines.
- pub lines: Line,
+ pub lines: usize,
}
/// Window class hint.
diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs
index aa63836c..2a638a41 100644
--- a/alacritty/src/display/content.rs
+++ b/alacritty/src/display/content.rs
@@ -1,5 +1,5 @@
use std::borrow::Cow;
-use std::cmp::max;
+use std::cmp::{max, min};
use std::mem;
use std::ops::{Deref, DerefMut, RangeInclusive};
@@ -127,12 +127,17 @@ impl<'a> RenderableContent<'a> {
let text_color = text_color.color(cell.fg, cell.bg);
let cursor_color = cursor_color.color(cell.fg, cell.bg);
+ // Convert cursor point to viewport position.
+ let cursor_point = self.terminal_cursor.point;
+ let line = (cursor_point.line + self.terminal_content.display_offset as i32).0 as usize;
+ let point = Point::new(line, cursor_point.column);
+
Some(RenderableCursor {
- point: self.terminal_cursor.point,
shape: self.terminal_cursor.shape,
cursor_color,
text_color,
is_wide,
+ point,
})
}
}
@@ -148,9 +153,10 @@ impl<'a> Iterator for RenderableContent<'a> {
fn next(&mut self) -> Option<Self::Item> {