1
0
Fork 0
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:
Joe Wilm 2017-02-06 12:11:35 -08:00 committed by Joe Wilm
parent edc2c7f5b9
commit 098eca8d10

View file

@ -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);
}
} }
} }
}, },