Home
last modified time | relevance | path

Searched refs:linesize (Results 1 – 6 of 6) sorted by relevance

/Held/src/utils/ui/
H A Devent.rs94 let linesize = ui.buffer.get_linesize(ui.cursor.y()); in up() localVariable
97 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() localVariable
104 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() localVariable
124 if linesize == 0 { in down()
131 if linesize < ui.cursor.x() { in down()
[all …]
/Held/src/utils/ui/mode/
H A Dcommon.rs54 let linesize = ui.buffer.get_linesize(y); in remove_word() localVariable
57 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() localVariable
103 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() localVariable
124 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()
H A Dmode.rs270 let linesize = ui.buffer.get_linesize(y); in do_delete_on_d_clicked() localVariable
273 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() localVariable
315 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() localVariable
335 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 …]
H A Dnormal.rs278 let linesize = ui.buffer.get_linesize(ui.cursor.y()) as usize; in exec_l_cmd() localVariable
279 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() localVariable
354 ui.cursor.move_to_columu(linesize - 1)?; in exec_o_cmd()
/Held/src/utils/
H A Dcursor.rs295 let mut linesize = self.buf.get_linesize(self.y()) - 1; in move_right() localVariable
299 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()
H A Dbuffer.rs264 let linesize = buf.get(y).unwrap().size(); in input_enter() localVariable
265 if x as usize == linesize { in input_enter()
437 let linesize = self.get_linesize(y) as usize; in search_nextw_begin() localVariable
444 while left <= right && right < linesize { in search_nextw_begin()
469 let linesize = self.get_linesize(y) as usize; in search_nextw_end() localVariable
476 while left <= right && right < linesize { in search_nextw_end()