aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1992-04-18 16:01:05 +0000
committerRichard M. Stallman1992-04-18 16:01:05 +0000
commite51eab7c0e66c1a6c683c4a9be966ab0139feca1 (patch)
tree8c109f37dcea7f9c5ccbf74a31559876b57e61ef /src
parent8323dcf4aee8c443ac003c170e19db42662e734a (diff)
downloademacs-e51eab7c0e66c1a6c683c4a9be966ab0139feca1.tar.gz
emacs-e51eab7c0e66c1a6c683c4a9be966ab0139feca1.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/indent.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indent.c b/src/indent.c
index 977383d3b40..50536120d8b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -461,7 +461,7 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
461 { 461 {
462 while (++pos < to && FETCH_CHAR (pos) != '\n'); 462 while (++pos < to && FETCH_CHAR (pos) != '\n');
463 } 463 }
464 while (selective > 0 && position_indentation (pos + 1) >= selective); 464 while (pos < to && position_indentation (pos + 1) >= selective);
465 pos--; 465 pos--;
466 /* Allow for the " ..." that is displayed for them. */ 466 /* Allow for the " ..." that is displayed for them. */
467 if (selective_rlen) 467 if (selective_rlen)
@@ -470,16 +470,17 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
470 if (hpos >= width) 470 if (hpos >= width)
471 hpos = width; 471 hpos = width;
472 } 472 }
473 /* We have skipped the invis text, but not the newline after. */
473 } 474 }
474 else 475 else
475 { 476 {
476 /* A visible line. */ 477 /* A visible line. */
477 vpos++; 478 vpos++;
478 hpos = 0; 479 hpos = 0;
480 hpos -= hscroll;
481 if (hscroll > 0) hpos++; /* Count the ! on column 0 */
482 tab_offset = 0;
479 } 483 }
480 hpos -= hscroll;
481 if (hscroll > 0) hpos++; /* Count the ! on column 0 */
482 tab_offset = 0;
483 } 484 }
484 else if (c == CR && selective < 0) 485 else if (c == CR && selective < 0)
485 { 486 {
@@ -518,6 +519,7 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
518 /* Truncating: skip to newline. */ 519 /* Truncating: skip to newline. */
519 while (pos < to && FETCH_CHAR (pos) != '\n') pos++; 520 while (pos < to && FETCH_CHAR (pos) != '\n') pos++;
520 pos--; 521 pos--;
522 hpos = width;
521 } 523 }
522 else 524 else
523 { 525 {