X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/03389d6e67bfda5cb3ff1504db815f09715ec6f4..e15842af627de03845b9c949f1f1596d94e3be02:/ui-tree.c?ds=sidebyside diff --git a/ui-tree.c b/ui-tree.c index 7bf2ad2..94aff8f 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -23,19 +23,24 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) html("
");
- idx = 0;
- lineno = 0;
-
- if (size) {
- htmlf(numberfmt, ++lineno);
- while(idx < size - 1) { // skip absolute last newline
- if (buf[idx] == '\n')
- htmlf(numberfmt, ++lineno);
- idx++;
+ if (ctx.cfg.enable_tree_linenumbers) {
+ html(" |