about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-16 22:33:41 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-16 22:33:41 -0800
commit06edd8bda76518cdcf91964a01fc5ab56f0ecb7f (patch)
treef3cd6e72fbd9899891af1476f7e28ebe27ad1ae8
parentabc2ea467501c33c85d6923f96813a9832b3a6a0 (diff)
downloadteliva-06edd8bda76518cdcf91964a01fc5ab56f0ecb7f.tar.gz
editing apps: clean up some stale prints
-rw-r--r--src/kilo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 5840dba..f1e047e 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -1306,6 +1306,9 @@ int editFrom(lua_State* L, char* filename, int rowoff, int coloff, int cy, int c
     E.cy = cy;
     E.cx = cx;
     editorOpen(filename);
+    attrset(A_NORMAL);
+    clear();
+    draw_callers_of_current_definition(L);
     while(!Quit) {
         /* update on resize */
         E.startcol = LINE_NUMBER_SPACE;
@@ -1321,6 +1324,9 @@ int editFrom(lua_State* L, char* filename, int rowoff, int coloff, int cy, int c
 int resumeEdit(lua_State* L) {
     Quit = 0;
     Back_to_big_picture = 0;
+    attrset(A_NORMAL);
+    clear();
+    draw_callers_of_current_definition(L);
     while(!Quit) {
         /* update on resize */
         E.startcol = LINE_NUMBER_SPACE;