]> git.neil.brown.name Git - edlib.git/commitdiff
linecount: ensure counts are uptodate for goto-line
authorNeilBrown <neil@brown.name>
Sat, 3 Jun 2023 01:27:56 +0000 (11:27 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
We need fully up-to-date counts for goto.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linecount.c

index ba51efa1ff6ac57b69886e7c18d7ac41b0edd763..5f119baa9ffd91a045b19c24e9abcb706326536b 100644 (file)
@@ -241,7 +241,8 @@ DEF_CMD(linecount_notify_goto)
        if (!ci->mark)
                return 1;
 
-       /* FIXME I might need to recalculate here */
+       /* Ensure counts are up-to-date */
+       count_calculate(d, NULL, ci->home, cli->view_num);
        m = vmark_first(d, cli->view_num, ci->home);
        if (!m)
                return 1;