diff options
| author | Eli Zaretskii | 2012-12-07 17:28:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-12-07 17:28:20 +0200 |
| commit | 81d8cc5377be3560177ee576d314fe4331e275c3 (patch) | |
| tree | b14e761794b27c4ebae7c6a2655c0592094c6530 | |
| parent | 2cec368c81f0056f7d3f4ce9aa247ef56d3053a7 (diff) | |
| download | emacs-81d8cc5377be3560177ee576d314fe4331e275c3.tar.gz emacs-81d8cc5377be3560177ee576d314fe4331e275c3.zip | |
Fix bug #13108 introduced by the fix to bug #12930.
src/indent.c (Fvertical_motion): If a display string will be
displayed on the left or the right margin, don't consider it as a
factor in cursor positioning.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/indent.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f9edb039b1c..1cca404d2aa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-12-07 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * indent.c (Fvertical_motion): If a display string will be | ||
| 4 | displayed on the left or the right margin, don't consider it as a | ||
| 5 | factor in cursor positioning. (Bug#13108) | ||
| 6 | |||
| 1 | 2012-12-07 Martin Rudalics <rudalics@gmx.at> | 7 | 2012-12-07 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * editfns.c (Fcompare_buffer_substrings): Reword doc-string. | 9 | * editfns.c (Fcompare_buffer_substrings): Reword doc-string. |
diff --git a/src/indent.c b/src/indent.c index 33322287c9d..eb105806542 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2034,7 +2034,11 @@ whether or not it is currently displayed in some window. */) | |||
| 2034 | const char *s = SSDATA (it.string); | 2034 | const char *s = SSDATA (it.string); |
| 2035 | const char *e = s + SBYTES (it.string); | 2035 | const char *e = s + SBYTES (it.string); |
| 2036 | 2036 | ||
| 2037 | disp_string_at_start_p = it.string_from_display_prop_p; | 2037 | /* If it.area is anything but TEXT_AREA, we need not bother |
| 2038 | about the display string, as it doesn't affect cursor | ||
| 2039 | positioning. */ | ||
| 2040 | disp_string_at_start_p = | ||
| 2041 | it.string_from_display_prop_p && it.area == TEXT_AREA; | ||
| 2038 | while (s < e) | 2042 | while (s < e) |
| 2039 | { | 2043 | { |
| 2040 | if (*s++ == '\n') | 2044 | if (*s++ == '\n') |