rm unused variable

This commit is contained in:
Daniel Micay 2012-09-08 00:12:06 -04:00
parent a1591e795a
commit ad861b7224
1 changed files with 2 additions and 2 deletions

View File

@ -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);