[vte/vte-0-40] widget: Fix missing braces
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-40] widget: Fix missing braces
- Date: Wed, 16 Mar 2016 21:15:42 +0000 (UTC)
commit 2a3636518d867fe462da751ce882188a472c2145
Author: Christian Persch <chpe gnome org>
Date: Thu Jan 14 13:34:59 2016 +0100
widget: Fix missing braces
Tracking the selection also only makes sense on the active screen,
so add the braces as the indentation already suggests.
Thanks, -Wmisleading-indentation !
(cherry picked from commit 6c58c04c2212d5d34eaf92f1d8adef15af2b59e9)
src/vte.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 01efd9d..df898ab 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7827,7 +7827,7 @@ vte_terminal_screen_set_size(VteTerminal *terminal, VteScreen *screen, glong old
markers[0] = &cursor_saved_absolute;
markers[1] = &below_viewport;
markers[2] = &below_current_paragraph;
- if (screen == terminal->pvt->screen)
+ if (screen == terminal->pvt->screen) {
/* Tracking the current cursor only makes sense on the active screen. */
markers[3] = &terminal->pvt->cursor;
if (terminal->pvt->has_selection) {
@@ -7835,6 +7835,7 @@ vte_terminal_screen_set_size(VteTerminal *terminal, VteScreen *screen, glong old
terminal->pvt->selection_end.col++;
markers[4] = &terminal->pvt->selection_start;
markers[5] = &terminal->pvt->selection_end;
+ }
}
old_top_lines = below_current_paragraph.row - screen->insert_delta;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]