diff options
| author | Eli Zaretskii | 2013-09-18 19:20:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-18 19:20:37 +0300 |
| commit | 42a1ea04113c71d69acc316919b57e335290832d (patch) | |
| tree | 8f27bdd10048e14ea638f8118787768579844f93 /src | |
| parent | 8a0529f22e612f284129a574c436e2887bdf48dc (diff) | |
| download | emacs-42a1ea04113c71d69acc316919b57e335290832d.tar.gz emacs-42a1ea04113c71d69acc316919b57e335290832d.zip | |
No need to pay attention to window margins.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index b2e60549fcd..4e0709c59d7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20656,17 +20656,13 @@ display_tty_menu_item (const char *item_text, int width, int face_id, | |||
| 20656 | row->reversed_p = 0; | 20656 | row->reversed_p = 0; |
| 20657 | row->enabled_p = 1; | 20657 | row->enabled_p = 1; |
| 20658 | 20658 | ||
| 20659 | /* We can only write over TEXT_AREA, as display_string cannot do | ||
| 20660 | display margins. */ | ||
| 20661 | x += row->used[LEFT_MARGIN_AREA]; | ||
| 20662 | |||
| 20663 | /* Arrange for the menu item glyphs to start at (X,Y) and have the | 20659 | /* Arrange for the menu item glyphs to start at (X,Y) and have the |
| 20664 | desired face. */ | 20660 | desired face. */ |
| 20665 | it.current_x = it.hpos = x; | 20661 | it.current_x = it.hpos = x; |
| 20666 | it.current_y = it.vpos = y; | 20662 | it.current_y = it.vpos = y; |
| 20667 | saved_used = row->used[TEXT_AREA]; | 20663 | saved_used = row->used[TEXT_AREA]; |
| 20668 | saved_truncated = row->truncated_on_right_p; | 20664 | saved_truncated = row->truncated_on_right_p; |
| 20669 | row->used[TEXT_AREA] = x - row->used[LEFT_MARGIN_AREA]; | 20665 | row->used[TEXT_AREA] = x; |
| 20670 | it.face_id = face_id; | 20666 | it.face_id = face_id; |
| 20671 | it.line_wrap = TRUNCATE; | 20667 | it.line_wrap = TRUNCATE; |
| 20672 | 20668 | ||
| @@ -20694,7 +20690,7 @@ display_tty_menu_item (const char *item_text, int width, int face_id, | |||
| 20694 | display_string (item_text, Qnil, Qnil, 0, 0, &it, | 20690 | display_string (item_text, Qnil, Qnil, 0, 0, &it, |
| 20695 | width, 0, FRAME_COLS (f) - 1, -1); | 20691 | width, 0, FRAME_COLS (f) - 1, -1); |
| 20696 | 20692 | ||
| 20697 | row->used[TEXT_AREA] = saved_used; | 20693 | row->used[TEXT_AREA] = max (saved_used, row->used[TEXT_AREA]); |
| 20698 | row->truncated_on_right_p = saved_truncated; | 20694 | row->truncated_on_right_p = saved_truncated; |
| 20699 | row->hash = row_hash (row); | 20695 | row->hash = row_hash (row); |
| 20700 | row->full_width_p = saved_width; | 20696 | row->full_width_p = saved_width; |