Fix selection when padding is present

This commit is contained in:
Tuomas Siipola 2017-06-06 17:10:43 +03:00 committed by Joe Wilm
parent 84fc7c0bf9
commit 1e064fb3e7
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
let prev_line = mem::replace(&mut self.ctx.mouse_mut().line, point.line);
let prev_col = mem::replace(&mut self.ctx.mouse_mut().column, point.col);
let cell_x = x as usize % size_info.cell_width as usize;
let cell_x = (x as usize - size_info.padding_x as usize) % size_info.cell_width as usize;
let half_cell_width = (size_info.cell_width / 2.0) as usize;
let cell_side = if cell_x > half_cell_width {