summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index e586e5633..53070af52 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -1372,7 +1372,7 @@ u_alloc_line(size)
/* In this block find a chunk with enough space. */
mprev = curbuf->b_m_search;
mp = curbuf->b_m_search->m_next;
- while (1)
+ for (;;)
{
if (mp == NULL) /* at end of the list */
mp = &(mbp->mb_info); /* wrap around to begin */