vim-flight entertainment (#3574)

- vim2 compiling (but mostly commented out)
- More code written, similar lack of workingness so far

Still todo:
[ ] Figure out the focus/blur stuff
[ ] Uncoment more code
[ ] Fix VimTestContext
[ ] Uncomment the tests

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2023-12-11 12:11:13 -07:00
committed by GitHub
150 changed files with 22093 additions and 55 deletions
+6 -1
View File
@@ -1049,7 +1049,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(