summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-08-02 09:30:17 +0000
committerRichard M. Stallman <rms@gnu.org>1997-08-02 09:30:17 +0000
commit1d78452128d820d792df7beffe4ae65359624938 (patch)
treeea420b98408baf9f63687c79f658df910f4db4fe /src
parent8626cfa223b3aecded530a48f3a1f5b354c7037e (diff)
(compute_motion): Correct the criterion for when to
move back 1 space when we terminate just after continuing the line.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 6f2738b4165..5b51e405b6a 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1152,7 +1152,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
if (vpos > tovpos || vpos == tovpos && hpos >= tohpos)
{
if (contin_hpos && prev_hpos == 0
- && (contin_hpos == width || wide_column))
+ && ((hpos > tohpos && contin_hpos == width) || wide_column))
{ /* Line breaks because we can't put the character at the
previous line any more. It is not the multi-column
character continued in middle. Go back to previous