Index: uspace/app/edit/edit.c
===================================================================
--- uspace/app/edit/edit.c	(revision affaf2e32d63acee2b44deef78a9bc2876c0cde3)
+++ uspace/app/edit/edit.c	(revision 5e7728887fb54c62e2ffe42b3f362b0e3091a271)
@@ -842,6 +842,6 @@
 		/* Fill until the end of display area. */
 
-		if (str_length(row_buf) < (unsigned) scr_columns)
-			fill = scr_columns - str_length(row_buf);
+		if ((unsigned)s_column < scr_columns)
+			fill = scr_columns - s_column;
 		else
 			fill = 0;
