diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index ca154c91a2f..3188c00fdb7 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -474,7 +474,9 @@ If specified column is within a character, point goes after that character.\n\ | |||
| 474 | If it's past end of line, point goes to end of line.\n\n\ | 474 | If it's past end of line, point goes to end of line.\n\n\ |
| 475 | A non-nil second (optional) argument FORCE means, if the line\n\ | 475 | A non-nil second (optional) argument FORCE means, if the line\n\ |
| 476 | is too short to reach column COLUMN then add spaces/tabs to get there,\n\ | 476 | is too short to reach column COLUMN then add spaces/tabs to get there,\n\ |
| 477 | and if COLUMN is in the middle of a tab character, change it to spaces.") | 477 | and if COLUMN is in the middle of a tab character, change it to spaces.\n\ |
| 478 | \n\ | ||
| 479 | The return value is the current column.") | ||
| 478 | (column, force) | 480 | (column, force) |
| 479 | Lisp_Object column, force; | 481 | Lisp_Object column, force; |
| 480 | { | 482 | { |
| @@ -764,6 +766,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 764 | /* Truncating: skip to newline. */ | 766 | /* Truncating: skip to newline. */ |
| 765 | pos = find_before_next_newline (pos, to, 1); | 767 | pos = find_before_next_newline (pos, to, 1); |
| 766 | hpos = width; | 768 | hpos = width; |
| 769 | /* If we just skipped next_boundary, | ||
| 770 | loop around in the main while | ||
| 771 | and handle it. */ | ||
| 772 | if (pos >= next_boundary) | ||
| 773 | next_boundary = pos + 1; | ||
| 767 | } | 774 | } |
| 768 | else | 775 | else |
| 769 | { | 776 | { |
| @@ -914,6 +921,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 914 | everything from a ^M to the end of the line is invisible. | 921 | everything from a ^M to the end of the line is invisible. |
| 915 | Stop *before* the real newline. */ | 922 | Stop *before* the real newline. */ |
| 916 | pos = find_before_next_newline (pos, to, 1); | 923 | pos = find_before_next_newline (pos, to, 1); |
| 924 | /* If we just skipped next_boundary, | ||
| 925 | loop around in the main while | ||
| 926 | and handle it. */ | ||
| 927 | if (pos > next_boundary) | ||
| 928 | next_boundary = pos; | ||
| 917 | /* Allow for the " ..." that is displayed for them. */ | 929 | /* Allow for the " ..." that is displayed for them. */ |
| 918 | if (selective_rlen) | 930 | if (selective_rlen) |
| 919 | { | 931 | { |