aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-05-08 04:17:48 +0000
committerKenichi Handa1998-05-08 04:17:48 +0000
commitc38bd4283991629d6b1fbade919be1006e984108 (patch)
tree7438f69351164a84a9f927b856a8f2d752aafb47 /src
parent33fe7d20594231746cb7c0be094c2a924f8dee43 (diff)
downloademacs-c38bd4283991629d6b1fbade919be1006e984108.tar.gz
emacs-c38bd4283991629d6b1fbade919be1006e984108.zip
(compute_motion): Fix, in a different way, the bug of handling
wide-column character around right margin.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/indent.c b/src/indent.c
index 639cfdae818..b4dc11c13cc 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1259,8 +1259,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
1259 if (vpos > tovpos || vpos == tovpos && hpos >= tohpos) 1259 if (vpos > tovpos || vpos == tovpos && hpos >= tohpos)
1260 { 1260 {
1261 if (contin_hpos && prev_hpos == 0 1261 if (contin_hpos && prev_hpos == 0
1262 && ((hpos > tohpos && contin_hpos == width) 1262 && wide_column_end_hpos > width)
1263 || (wide_column_end_hpos > width)))
1264 { /* Line breaks because we can't put the character at the 1263 { /* Line breaks because we can't put the character at the
1265 previous line any more. It is not the multi-column 1264 previous line any more. It is not the multi-column
1266 character continued in middle. Go back to previous 1265 character continued in middle. Go back to previous