From ad861b7224a12eb3ef35ecb18b4fa73983a12625 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 8 Sep 2012 00:12:06 -0400 Subject: [PATCH] rm unused variable --- termite.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termite.cc b/termite.cc index 2e9dd1f..3120f94 100644 --- a/termite.cc +++ b/termite.cc @@ -156,8 +156,8 @@ static void update_scroll(VteTerminal *vte) { GtkAdjustment *adjust = gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(vte)); const double scroll_row = gtk_adjustment_get_value(adjust); const long n_rows = vte_terminal_get_row_count(vte); - long cursor_col, cursor_row; - vte_terminal_get_cursor_position(vte, &cursor_col, &cursor_row); + long cursor_row; + vte_terminal_get_cursor_position(vte, nullptr, &cursor_row); if (cursor_row < scroll_row) { gtk_adjustment_set_value(adjust, (double)cursor_row);