[vte] widget: Fix missing braces



commit bdd40c32bf33daab34e994045cd27f909687fdf0
Author: Christian Persch <chpe gnome org>
Date:   Thu Jan 14 17:05:38 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 ba8453e..e5ee24d 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7788,7 +7788,7 @@ VteTerminalPrivate::screen_set_size(VteScreen *screen_,
         markers[0] = &cursor_saved_absolute;
         markers[1] = &below_viewport;
         markers[2] = &below_current_paragraph;
-        if (screen_ == m_screen)
+        if (screen_ == m_screen) {
                 /* Tracking the current cursor only makes sense on the active screen_. */
                 markers[3] = &m_cursor;
                 if (m_has_selection) {
@@ -7796,6 +7796,7 @@ VteTerminalPrivate::screen_set_size(VteScreen *screen_,
                         m_selection_end.col++;
                         markers[4] = &m_selection_start;
                         markers[5] = &m_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]