More code written, similar lack of workingness so far
This commit is contained in:
parent
32837d67be
commit
a4ea7bf928
7 changed files with 188 additions and 190 deletions
|
@ -1043,7 +1043,12 @@ impl EditorElement {
|
|||
.chars_at(cursor_position)
|
||||
.next()
|
||||
.and_then(|(character, _)| {
|
||||
let text = SharedString::from(character.to_string());
|
||||
// todo!() currently shape_line panics if text conatins newlines
|
||||
let text = if character == '\n' {
|
||||
SharedString::from(" ")
|
||||
} else {
|
||||
SharedString::from(character.to_string())
|
||||
};
|
||||
let len = text.len();
|
||||
cx.text_system()
|
||||
.shape_line(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue