lichray / nvi2

A multibyte fork of the nvi editor for BSD
Other
144 stars 34 forks source link

In ruler show the current line number as a percentage of the total lines #131

Closed job closed 4 months ago

job commented 4 months ago

Modeled after control-G, will only show the percentage if the last line can be determined.

From OpenBSD https://github.com/openbsd/src/commit/b254483d64afb832597affd199aa63d6d99b70a3

lichray commented 4 months ago
error: use of undeclared identifier 'ulong'; did you mean 'long'?

I think u_long is what you're looking for.

Also, the buf may be too small for this.

job commented 4 months ago

@lichray thanks, better now?

lichray commented 4 months ago

LGTM. Thanks.