Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a01f89af
Commit
a01f89af
authored
Sep 18, 2013
by
Eli Zaretskii
Browse files
Fixed minor issues with truncation of menu items.
parent
42a1ea04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/term.c
src/term.c
+5
-0
src/xdisp.c
src/xdisp.c
+1
-1
No files found.
src/term.c
View file @
a01f89af
...
...
@@ -3749,6 +3749,10 @@ tty_menu_show (struct frame *f, int x, int y, int for_click, int keymaps,
if (ulx < 0) x -= ulx;
if (uly < 0) y -= uly;
#if 0
/* This code doesn't make sense on a TTY, since it can easily annul
the adjustments above that carefully avoid truncation of the menu
items. */
if (! for_click)
{
/* If position was not given by a mouse click, adjust so upper left
...
...
@@ -3757,6 +3761,7 @@ tty_menu_show (struct frame *f, int x, int y, int for_click, int keymaps,
x += width/2;
y += 1.5*height/(maxlines+2);
}
#endif
pane = selidx = 0;
...
...
src/xdisp.c
View file @
a01f89af
...
...
@@ -20646,7 +20646,7 @@ display_tty_menu_item (const char *item_text, int width, int face_id,
init_iterator (&it, w, -1, -1, f->desired_matrix->rows + y, MENU_FACE_ID);
it.first_visible_x = 0;
it.last_visible_x = FRAME_COLS (f);
it.last_visible_x = FRAME_COLS (f)
- 1
;
row = it.glyph_row;
/* Start with the row contents from the current matrix. */
deep_copy_glyph_row (row, f->current_matrix->rows + y);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment