Commits

Andrey Lesnikov committed d9b611a

Added 'clear()' after 'join()' calls.

Comments (0)

Files changed (1)

 void
 removechar(){
   char *s = id2str(win->lines, win->cursor.y);
-  if(s[win->cursor.x] == '\n')
+  if(s[win->cursor.x] == '\n'){
     join(&win->lines, win->cursor);
-  else
+    clear();
+  }else
     strcpy(s + win->cursor.x, s + win->cursor.x + utf8len(s[win->cursor.x]));
 }
 
     remove_part_of_line(b, to.y, 0, to.x + 1);
     removelines(b, from.y + 1, to.y - from.y - 1);
     join(b, from);
+    clear();
   }
 }