Added BiDi example to demonstrate reordering works

and disabled `wrap simple` since it's not working properly.
This commit is contained in:
Hojjat 2022-12-01 17:59:03 -07:00 committed by Jeremy Soller
parent c344eec936
commit cd64388451
3 changed files with 6 additions and 9 deletions

View file

@ -225,7 +225,7 @@ impl<'a> Edit<'a> for SyntaxEditor<'a> {
// Update line attributes. This operation only resets if the line changes
line.set_attrs_list(attrs_list);
line.set_wrap_simple(true);
line.set_wrap_simple(false);
//TODO: efficiently do syntax highlighting without having to shape whole buffer
buffer.line_shape(line_i);
@ -246,7 +246,7 @@ impl<'a> Edit<'a> for SyntaxEditor<'a> {
if highlighted > 0 {
buffer.set_redraw(true);
#[cfg(feature = "std")]
log::debug!("Syntax highlighted {} lines in {:?}", highlighted, now.elapsed());
log::debug!("Syntax highlighted {} lines in {:?}", highlighted, now.elapsed());
}
self.editor.shape_as_needed();