diff options
| author | Stefan Monnier | 2011-02-02 10:53:20 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-02-02 10:53:20 -0500 |
| commit | aca092acca790a33da095cacda454c788e8b554d (patch) | |
| tree | a59c33bdbf6f2604d6ddf15949163ce26246e096 /src | |
| parent | 2d871302f49717b9396fcfe34550b69d00551557 (diff) | |
| download | emacs-aca092acca790a33da095cacda454c788e8b554d.tar.gz emacs-aca092acca790a33da095cacda454c788e8b554d.zip | |
* src/editfns.c (save_restriction_restore): Don't forget to invalidate the
current_column cache.
Fixes: debbugs:7946
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/editfns.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8bc84675c92..a665fd73047 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-02 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * editfns.c (save_restriction_restore): Don't forget to invalidate the | ||
| 4 | current_column cache (bug#7946). | ||
| 5 | |||
| 1 | 2011-02-02 Kenichi Handa <handa@m17n.org> | 6 | 2011-02-02 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined. | 8 | * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined. |
diff --git a/src/editfns.c b/src/editfns.c index e8c1aef3503..fe5b039625f 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3347,6 +3347,9 @@ save_restriction_restore (data) | |||
| 3347 | } | 3347 | } |
| 3348 | } | 3348 | } |
| 3349 | 3349 | ||
| 3350 | /* Changing the buffer bounds invalidates any recorded current column. */ | ||
| 3351 | invalidate_current_column (); | ||
| 3352 | |||
| 3350 | if (cur) | 3353 | if (cur) |
| 3351 | set_buffer_internal (cur); | 3354 | set_buffer_internal (cur); |
| 3352 | 3355 | ||