diff options
| author | Kim F. Storm | 2006-02-22 20:29:41 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-02-22 20:29:41 +0000 |
| commit | 78744fc3702626b26d56ab56704d27afdd6ea585 (patch) | |
| tree | 506644f0a0914824df6eddabd641185c8ea725d8 /src | |
| parent | c4336e88ccef2304f13862b794e3540e193b1e97 (diff) | |
| download | emacs-78744fc3702626b26d56ab56704d27afdd6ea585.tar.gz emacs-78744fc3702626b26d56ab56704d27afdd6ea585.zip | |
(Fvertical_motion): Only try to move back if we can.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index fa2acd0bc05..cc928f2171f 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2107,7 +2107,8 @@ whether or not it is currently displayed in some window. */) | |||
| 2107 | it.vpos = 0; | 2107 | it.vpos = 0; |
| 2108 | /* Do this even if LINES is 0, so that we move back | 2108 | /* Do this even if LINES is 0, so that we move back |
| 2109 | to the beginning of the current line as we ought. */ | 2109 | to the beginning of the current line as we ought. */ |
| 2110 | move_it_by_lines (&it, XINT (lines), 0); | 2110 | if (XINT (lines) >= 0 || IT_CHARPOS (it) > 0) |
| 2111 | move_it_by_lines (&it, XINT (lines), 0); | ||
| 2111 | 2112 | ||
| 2112 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); | 2113 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); |
| 2113 | } | 2114 | } |