diff options
| author | Kim F. Storm | 2006-01-23 13:14:01 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-01-23 13:14:01 +0000 |
| commit | d126cb60422a574c2479327e58ce3e58a96611de (patch) | |
| tree | f5f9ae3a23030406d4e358b095cc1a5adf159863 /src | |
| parent | 1ff4535b17963aab1ad08592b32e7c2e06c99839 (diff) | |
| download | emacs-d126cb60422a574c2479327e58ce3e58a96611de.tar.gz emacs-d126cb60422a574c2479327e58ce3e58a96611de.zip | |
(handle_single_display_spec): Fix handling of space
property on char from string: set *position rather than
it->current.pos.
(produce_stretch_glyph): Reduce width of stretch glyphs so they
don't get wider than the window (unless truncate-lines is on).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index a6632ddedf5..fa09c076467 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4148,7 +4148,7 @@ handle_single_display_spec (it, spec, object, position, | |||
| 4148 | { | 4148 | { |
| 4149 | it->method = GET_FROM_STRETCH; | 4149 | it->method = GET_FROM_STRETCH; |
| 4150 | it->object = value; | 4150 | it->object = value; |
| 4151 | it->current.pos = it->position = start_pos; | 4151 | *position = it->position = start_pos; |
| 4152 | } | 4152 | } |
| 4153 | #ifdef HAVE_WINDOW_SYSTEM | 4153 | #ifdef HAVE_WINDOW_SYSTEM |
| 4154 | else | 4154 | else |
| @@ -19671,6 +19671,10 @@ produce_stretch_glyph (it) | |||
| 19671 | else | 19671 | else |
| 19672 | ascent = (height * FONT_BASE (font)) / FONT_HEIGHT (font); | 19672 | ascent = (height * FONT_BASE (font)) / FONT_HEIGHT (font); |
| 19673 | 19673 | ||
| 19674 | if (width > 0 && !it->truncate_lines_p | ||
| 19675 | && it->current_x + width > it->last_visible_x) | ||
| 19676 | width = it->last_visible_x - it->current_x - 1; | ||
| 19677 | |||
| 19674 | if (width > 0 && height > 0 && it->glyph_row) | 19678 | if (width > 0 && height > 0 && it->glyph_row) |
| 19675 | { | 19679 | { |
| 19676 | Lisp_Object object = it->stack[it->sp - 1].string; | 19680 | Lisp_Object object = it->stack[it->sp - 1].string; |