[vte/vte-0-42] widget: Fix missing braces
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-42] widget: Fix missing braces
- Date: Sun, 17 Jan 2016 12:39:50 +0000 (UTC)
commit 6c58c04c2212d5d34eaf92f1d8adef15af2b59e9
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 !
src/vte.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 91af4a6..3a9a116 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8075,7 +8075,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) {
@@ -8083,6 +8083,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]