some minor cleanup

This commit is contained in:
Daniel Micay 2012-08-14 20:06:30 -04:00
parent c4a9494123
commit e4c2900c4f
1 changed files with 2 additions and 4 deletions

View File

@ -151,14 +151,12 @@ static void toggle_visual(VteTerminal *vte, select_info *select, vi_mode mode) {
static long first_row(VteTerminal *vte) {
GtkAdjustment *adjust = gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(vte));
const double scroll_lower = gtk_adjustment_get_lower(adjust);
return (long)scroll_lower;
return (long)gtk_adjustment_get_lower(adjust);
}
static long last_row(VteTerminal *vte) {
GtkAdjustment *adjust = gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(vte));
const double scroll_upper = gtk_adjustment_get_upper(adjust);
return (long)scroll_upper - 1;
return (long)gtk_adjustment_get_upper(adjust) - 1;
}
static void update_scroll(VteTerminal *vte, const select_info *select) {