From 4c669c09ddf8c94339943dea4ae73a90e503709b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 8 Apr 2007 23:59:33 +0000 Subject: [PATCH] (Fmove_to_column): Set next_boundary with correct start pt. --- src/ChangeLog | 4 ++++ src/indent.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index a28f3c45f2..0f446131c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-04-09 Martin Rudalics + + * indent.c (Fmove_to_column): Set next_boundary with correct start pt. + 2007-04-08 Richard Stallman * xdisp.c (syms_of_xdisp) : Default 100. diff --git a/src/indent.c b/src/indent.c index 828267c3ab..b43120ab56 100644 --- a/src/indent.c +++ b/src/indent.c @@ -951,7 +951,6 @@ The return value is the current column. */) pos = PT; pos_byte = PT_BYTE; end = ZV; - next_boundary = pos; /* If we're starting past the desired column, back up to beginning of line and scan from there. */ @@ -963,6 +962,8 @@ The return value is the current column. */) col = 0; } + next_boundary = pos; + while (pos < end) { while (pos == next_boundary) -- 2.39.2