Searched refs:linesize (Results 1 – 6 of 6) sorted by relevance
94 let linesize = ui.buffer.get_linesize(ui.cursor.y()); in up() localVariable97 if linesize - 1 < ui.cursor.x() { in up()98 ui.cursor.move_to_columu(linesize - 1)?; in up()102 let linesize = ui.buffer.get_linesize(ui.cursor.y() - 1); in up() localVariable104 if linesize == 0 { in up()111 if linesize - 1 < ui.cursor.x() { in up()112 ui.cursor.move_to_columu(linesize - 1)?; in up()122 let mut linesize = ui.buffer.get_linesize(ui.cursor.y() + 1); in down() localVariable124 if linesize == 0 { in down()131 if linesize < ui.cursor.x() { in down()[all …]
54 let linesize = ui.buffer.get_linesize(y); in remove_word() localVariable57 if next_word_pos < linesize.into() { in remove_word()100 let linesize = ui.buffer.get_linesize_abs(abs_y) as usize; in locate_nextw_ending() localVariable103 if x as usize + 2 >= linesize { in locate_nextw_ending()110 let x = if linesize > 0 { linesize - 1 } else { 0 }; in locate_nextw_ending()118 return (next_end_pos.min(linesize as u16 - 1), abs_y); in locate_nextw_ending()123 let linesize = ui.buffer.get_linesize_abs(abs_pos.1) as usize; in locate_next_word() localVariable124 if abs_pos.0 as usize + 2 >= linesize { in locate_next_word()130 let x = if linesize > 0 { linesize - 1 } else { 0 }; in locate_next_word()136 return (next_end_pos.min(linesize as u16 - 1), abs_pos.1); in locate_next_word()
270 let linesize = ui.buffer.get_linesize(y); in do_delete_on_d_clicked() localVariable273 if next_word_pos < linesize.into() { in do_delete_on_d_clicked()313 let linesize = ui.buffer.get_linesize(y); in jump_to_next_word() localVariable315 if pos < linesize as usize { in jump_to_next_word()324 ui.cursor.move_to_columu(linesize as u16 - 1)?; in jump_to_next_word()332 let linesize = ui.buffer.get_linesize(y) as usize; in jump_to_nextw_ending() localVariable335 let final_char_pos = linesize - 2; in jump_to_nextw_ending()343 ui.cursor.move_to_columu(linesize as u16 - 1)?; in jump_to_nextw_ending()351 .move_to_columu(next_end_pos.min(linesize as u16 - 2))?; in jump_to_nextw_ending()450 let linesize = ui.buffer.get_linesize(ui.cursor.y()); in input_data() localVariable[all …]
278 let linesize = ui.buffer.get_linesize(ui.cursor.y()) as usize; in exec_l_cmd() localVariable279 let max_count = linesize - old_x as usize - 1; in exec_l_cmd()283 if old_x == linesize as u16 - 1 { in exec_l_cmd()353 let linesize = ui.buffer.get_linesize(ui.cursor.y()); in exec_o_cmd() localVariable354 ui.cursor.move_to_columu(linesize - 1)?; in exec_o_cmd()
295 let mut linesize = self.buf.get_linesize(self.y()) - 1; in move_right() localVariable299 linesize += self.line_prefix_width; in move_right()305 if self.x + count > linesize { in move_right()306 CursorManager::move_to_columu(linesize)?; in move_right()307 self.x = linesize; in move_right()
264 let linesize = buf.get(y).unwrap().size(); in input_enter() localVariable265 if x as usize == linesize { in input_enter()437 let linesize = self.get_linesize(y) as usize; in search_nextw_begin() localVariable444 while left <= right && right < linesize { in search_nextw_begin()469 let linesize = self.get_linesize(y) as usize; in search_nextw_end() localVariable476 while left <= right && right < linesize { in search_nextw_end()