diff --git a/src/text.c b/src/text.c
index 1b9f3a69af1585bfdbdd0c4c5faf40f1d238c3c0..6a0cc5282b3530b6095ee482618520259c6e8a41 100644
--- a/src/text.c
+++ b/src/text.c
@@ -363,8 +363,10 @@ void do_indent(ssize_t cols)
 			openfile->mark_begin_x >= indent_len)
 		openfile->mark_begin_x += line_indent_len;
 
-	    if (f == openfile->current && openfile->current_x >= indent_len)
+	    if (f == openfile->current && openfile->current_x >= indent_len) {
 		openfile->current_x += line_indent_len;
+		openfile->placewewant = xplustabs();
+	    }
 
 	    /* If the NO_NEWLINES flag isn't set, and this is the
 	     * magicline, add a new magicline. */
@@ -405,6 +407,7 @@ void do_indent(ssize_t cols)
 			openfile->current_x = indent_new;
 		    else
 			openfile->current_x -= indent_shift;
+		    openfile->placewewant = xplustabs();
 		}
 
 		/* We've unindented, so the indentation changed. */