]> git.neil.brown.name Git - edlib.git/commit
linecount: use pane_too_long() to break up line count
authorNeilBrown <neil@brown.name>
Fri, 9 Jun 2023 08:18:13 +0000 (18:18 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:40 +0000 (17:51 +1000)
commit4f5ea80915f29f3618189409595199dbba407dad
tree523949dca2e8af66923b1bee76741c107133de2d
parent1bb141cd4f23e28856a5cf60432e6599e9287a4e
linecount: use pane_too_long() to break up line count

Rather than arbitrary numbers of lines to be counted before we take a
break and check for user activity, use pane_too_long() to decide when to
drop a mark, and when to take a break.

Also reduce the default and minimum timeout to 100ms which should help
interactivity a bit.

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