top: improve scroll coordinates message handling
With the introduction of intra-column scrolling, the scroll coordinates message was enhanced to give some hint of positioning within a scrolled column. Rather than rebuild this somewhat costly string from scratch with each frame, we'll now do the bulk of the work only when column headers are constructed. The only remaining per frame costs will then be the addition of a few terminfo escapes and the current Frame_maxtask count. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -221,7 +221,7 @@ static void build_norm_nlstab (void) {
|
||||
Norm_nlstab[HILIGHT_cant_txt] = _("Nothing to highlight!");
|
||||
Norm_nlstab[GET_user_ids_txt] = _("Which user (blank for all)");
|
||||
Norm_nlstab[UNKNOWN_cmds_txt] = _("Unknown command - try 'h' for help");
|
||||
Norm_nlstab[SCROLL_coord_fmt] = _("scroll coordinates: y = %d/%d (tasks), x = %d/%d (fields)");
|
||||
Norm_nlstab[SCROLL_coord_fmt] = _("scroll coordinates: y = %d/%%d (tasks), x = %d/%d (fields)");
|
||||
Norm_nlstab[FAIL_alloc_c_txt] = _("failed memory allocate");
|
||||
Norm_nlstab[FAIL_alloc_r_txt] = _("failed memory re-allocate");
|
||||
Norm_nlstab[BAD_numfloat_txt] = _("Unacceptable floating point");
|
||||
|
Reference in New Issue
Block a user