pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The calculation of `max_lines` takes in account the additionnal lines from URLs
[smdp.git]
/
src
/
viewer.c
diff --git
a/src/viewer.c
b/src/viewer.c
index
6b96ea5
..
bd533e2
100644
(file)
--- a/
src/viewer.c
+++ b/
src/viewer.c
@@
-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;