Commit 3cf7c413 authored by Egmont Koblinger's avatar Egmont Koblinger

widget: Fix selection's padding adjustment

https://bugzilla.gnome.org/show_bug.cgi?id=722873
parent 335872ef
......@@ -6700,9 +6700,8 @@ vte_terminal_start_selection(VteTerminal *terminal, gdouble x, gdouble y,
/* Record that we have the selection, and where it started. */
delta = terminal->pvt->screen->scroll_delta;
terminal->pvt->has_selection = TRUE;
terminal->pvt->selection_last.x = x - terminal->pvt->inner_border.left;
terminal->pvt->selection_last.y = y - terminal->pvt->inner_border.top +
(terminal->char_height * delta);
terminal->pvt->selection_last.x = x;
terminal->pvt->selection_last.y = y + (terminal->char_height * delta);
/* Decide whether or not to restart on the next drag. */
switch (selection_type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment