From 737ede4a0c13dc33b7c43f3cc4c0f4aa7337b4f2 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 12 Jan 2020 23:06:34 +0000 Subject: [PATCH] Eliminate the unnecessary calls to format() in previous commit. --- exec/sbbslist.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/exec/sbbslist.js b/exec/sbbslist.js index 9a7c29be97..724f4e652d 100644 --- a/exec/sbbslist.js +++ b/exec/sbbslist.js @@ -829,8 +829,7 @@ function list_bbs_entry(bbs, selected, sort, is_first_on_page) if(sort=="name") color |= color_cfg.sorted; console_color(color, selected); - var txt = format("%-*s%c", lib.max_len.name, bbs.name, selected ? '<' : ' '); - printf(txt); + printf("%-*s%c", lib.max_len.name, bbs.name, selected ? '<' : ' '); color = LIGHTMAGENTA; if(!js.global.console || console.screen_columns >= 80) { @@ -852,8 +851,7 @@ function list_bbs_entry(bbs, selected, sort, is_first_on_page) fmt = "%*.*s"; if (selected && console.term_supports(USER_PETSCII) && !is_first_on_page) --len; - txt = format(fmt, len, len, lib.property_value(bbs, list_formats[list_format][i])); - printf(txt); + printf(fmt, len, len, lib.property_value(bbs, list_formats[list_format][i])); } } /* Ensure the rest of the line has the correct color */ -- GitLab