Mercurial > emacs
comparison src/indent.c @ 19080:0d238726e4c3
(compute_motion): Correct the criterion for when to
move back 1 space when we terminate just after continuing the line.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 02 Aug 1997 09:30:17 +0000 |
parents | 801bc19b01dc |
children | 1d24f0a03f75 |
comparison
equal
deleted
inserted
replaced
19079:dfbef8117c6a | 19080:0d238726e4c3 |
---|---|
1150 } | 1150 } |
1151 | 1151 |
1152 if (vpos > tovpos || vpos == tovpos && hpos >= tohpos) | 1152 if (vpos > tovpos || vpos == tovpos && hpos >= tohpos) |
1153 { | 1153 { |
1154 if (contin_hpos && prev_hpos == 0 | 1154 if (contin_hpos && prev_hpos == 0 |
1155 && (contin_hpos == width || wide_column)) | 1155 && ((hpos > tohpos && contin_hpos == width) || wide_column)) |
1156 { /* Line breaks because we can't put the character at the | 1156 { /* Line breaks because we can't put the character at the |
1157 previous line any more. It is not the multi-column | 1157 previous line any more. It is not the multi-column |
1158 character continued in middle. Go back to previous | 1158 character continued in middle. Go back to previous |
1159 buffer position, screen position, and set tab offset | 1159 buffer position, screen position, and set tab offset |
1160 to previous value. It's the beginning of the | 1160 to previous value. It's the beginning of the |