summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2006-04-23 09:02:19 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-23 09:02:19 +0000
commitce4935574b8b5aa252663488cc1c237658ea8f3c (patch)
treee27118be9b8ed3fe8686ebb7c3318127c250c53c
parent1375bfe7189dc1a316ebee510175baf48fcee0cd (diff)
Minor.
-rw-r--r--src/vte.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vte.c b/src/vte.c
index c515200..757de1a 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -4316,15 +4316,16 @@ vte_cell_is_selected(VteTerminal *terminal, glong col, glong row, gpointer data)
return FALSE;
}
- /* Now it boils down to whether or not the point is between the
- * begin and endpoint of the selection. */
- ret = vte_cell_is_between(col, row, ss.x, ss.y, se.x, se.y, TRUE);
- /* Limit selection to block mode. */
+ /* Limit selection in block mode. */
if (ret && terminal->pvt->block_mode) {
if (col < ss.x || col > se.x) {
return FALSE;
}
}
+
+ /* Now it boils down to whether or not the point is between the
+ * begin and endpoint of the selection. */
+ ret = vte_cell_is_between(col, row, ss.x, ss.y, se.x, se.y, TRUE);
return ret;
}