Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 4 of 4) sorted by relevance

/Held/src/utils/
H A Dbuffer.rs26 pub flags: LineState, field
43 flags: LineState::empty(), in new()
223 if previous_line.flags.contains(LineState::LOCKED) in merge_line()
224 || cur_line.flags.contains(LineState::LOCKED) in merge_line()
279 pub fn add_line_flags(&self, line_index: usize, flags: LineState) { in add_line_flags()
290 line.flags.insert(flags); in add_line_flags()
293 if flags.contains(LineState::FLAGED) { in add_line_flags()
298 if flags.contains(LineState::LOCKED) { in add_line_flags()
303 pub fn remove_line_flags(&self, line_index: usize, flags: LineState) { in remove_line_flags()
314 line.flags.remove(flags); in remove_line_flags()
[all …]
H A Dcursor.rs422 let flags = line.flags; in update_line_prefix() localVariable
423 flags.set_style()?; in update_line_prefix()
/Held/src/utils/ui/mode/
H A Dmode.rs141 flags: LineState, in jump_to_next_flag()
154 let idx = content.iter().position(|x| x.flags.contains(flags)); in jump_to_next_flag()
171 flags: LineState, in jump_to_previous_flag()
183 let idx = content.iter().rposition(|x| x.flags.contains(flags)); in jump_to_previous_flag()
598 if line.flags.contains(LineState::LOCKED) { in enter()
666 if line.flags.contains(LineState::LOCKED) { in input_data()
/Held/src/utils/ui/
H A Devent.rs64 if line.flags.contains(LineState::LOCKED) { in backspace()