bugfixes
This commit is contained in:
+3
-1
@@ -26,10 +26,12 @@ int open_editor() {
|
||||
|
||||
Editor editor = editor_from("this is some text to edit\nthis is the second line\nand this is the third lol");
|
||||
|
||||
fprintf(stderr, "%d %d %d %d", editor.lines, editor.screen_line, editor.screen_col, editor.editmode);
|
||||
|
||||
while (true) {
|
||||
refresh();
|
||||
int c = getch();
|
||||
if (editor.editmode) {
|
||||
if (editor.editmode == true) {
|
||||
switch (c) {
|
||||
case 27:
|
||||
editor.editmode = false;
|
||||
|
||||
Reference in New Issue
Block a user