aboutsummaryrefslogtreecommitdiff
path: root/src/sdtui.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2013-05-15 13:19:36 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2013-05-15 13:19:36 +0200
commit776cebe535b8685cf68d9c830f11555901f603f2 (patch)
tree97efd857ab68d242d62c37d6d450d784f111b3f9 /src/sdtui.c
parente054f21ad54222df6bed182457bcfb52a435389b (diff)
downloadtdv-776cebe535b8685cf68d9c830f11555901f603f2.tar.gz
tdv-776cebe535b8685cf68d9c830f11555901f603f2.tar.xz
tdv-776cebe535b8685cf68d9c830f11555901f603f2.zip
Begone, bug.
Diffstat (limited to 'src/sdtui.c')
-rw-r--r--src/sdtui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdtui.c b/src/sdtui.c
index d2e0679..233bbb8 100644
--- a/src/sdtui.c
+++ b/src/sdtui.c
@@ -398,6 +398,7 @@ app_scroll_up (guint n)
if ((gint) (n_definitions - g_top_offset
- last_entry->definitions_length) >= LINES - 1)
{
+ n_definitions -= last_entry->definitions_length;
g_ptr_array_remove_index_fast
(g_entries, g_entries->len - 1);
}