diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-28 16:30:44 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-28 16:30:44 +0100 |
| commit | a649cfb83e65cb88111527b6fe92e92ecc38a71e (patch) | |
| tree | 7ff2cbf9fbc08988f8a66968bf7adffe64dd8671 /vis.h | |
| parent | d0ed5fef6a4098a7991a7e6ab44076a423721212 (diff) | |
| download | vis-a649cfb83e65cb88111527b6fe92e92ecc38a71e.tar.gz vis-a649cfb83e65cb88111527b6fe92e92ecc38a71e.tar.xz | |
vis: implement nn%
Moves to the given percentage of the file in bytes (not lines).
This is useful when dealing with huge files because it is a constant
time operation. Performance could still be improved by adapting the
display code not to rely on line numbers at all.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -228,6 +228,7 @@ enum VisMotion { VIS_MOVE_JUMPLIST_NEXT, VIS_MOVE_JUMPLIST_PREV, VIS_MOVE_NOP, + VIS_MOVE_PERCENT, VIS_MOVE_INVALID, /* denotes the end of the "real" motions */ /* pseudo motions: keep them at the end to save space in array definition */ VIS_MOVE_TOTILL_REPEAT, |
