Lines Matching refs:buffer
6 buffer::LineState,
121 let buf_line_max = ui.buffer.line_count() as u16; in goto()
124 let mut x = x.unwrap_or(1).min(ui.buffer.get_linesize(y)); in goto()
147 let y = ui.buffer.goto_line(y as usize); in goto()
166 ui.buffer in flag()
178 ui.buffer.add_line_flags(line - 1, LineState::FLAGED); in flag()
191 ui.buffer in lock()
204 ui.buffer.add_line_flags(line - 1, LineState::LOCKED); in lock()
219 ui.buffer in unflag()
232 ui.buffer.remove_line_flags(line - 1, LineState::FLAGED); in unflag()
247 ui.buffer in unlock()
260 ui.buffer.remove_line_flags(line - 1, LineState::LOCKED); in unlock()
273 let offset = ui.buffer.offset() + ui.cursor.y() as usize; in delete_lines()
274 let count = ui.buffer.delete_lines(offset, offset + 1); in delete_lines()
291 let offset = ui.buffer.offset() + line; in delete_lines()
292 let count = ui.buffer.delete_lines(offset, offset + 1); in delete_lines()
310 let count = ui.buffer.delete_lines(start.unwrap() - 1, end.unwrap() - 1); in delete_lines()