mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Fix zsh tab completion
This commit is contained in:
parent
edc2c7f5b9
commit
098eca8d10
1 changed files with 8 additions and 4 deletions
|
@ -779,7 +779,6 @@ impl ansi::Handler for Term {
|
||||||
/// 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 self.input_needs_wrap {
|
if self.input_needs_wrap {
|
||||||
|
|
||||||
if !self.mode.contains(mode::LINE_WRAP) {
|
if !self.mode.contains(mode::LINE_WRAP) {
|
||||||
|
@ -1124,9 +1123,14 @@ impl ansi::Handler for Term {
|
||||||
let template = self.empty_cell;
|
let template = self.empty_cell;
|
||||||
match mode {
|
match mode {
|
||||||
ansi::ClearMode::Below => {
|
ansi::ClearMode::Below => {
|
||||||
for row in &mut self.grid[self.cursor.point.line..] {
|
for cell in &mut self.grid[self.cursor.point.line][self.cursor.point.col..] {
|
||||||
for cell in row {
|
cell.reset(&template);
|
||||||
cell.reset(&template);
|
}
|
||||||
|
if self.cursor.point.line < self.grid.num_lines() - 1 {
|
||||||
|
for row in &mut self.grid[(self.cursor.point.line + 1)..] {
|
||||||
|
for cell in row {
|
||||||
|
cell.reset(&template);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue