The calculation of `max_lines` takes in account the additionnal lines from URLs
[smdp.git] / src / viewer.c
index 6b96ea5..bd533e2 100644 (file)
@@ -94,6 +94,10 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) {
         line = slide->line;
 
         while(line) {
+
+            if (line && line->text && line->text->text)
+                lc += url_count_inline(line->text->text);
+
             if(line->length > COLS) {
                 i = line->length;
                 offset = 0;