aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-28 16:30:44 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-28 16:30:44 +0100
commita649cfb83e65cb88111527b6fe92e92ecc38a71e (patch)
tree7ff2cbf9fbc08988f8a66968bf7adffe64dd8671 /vis.h
parentd0ed5fef6a4098a7991a7e6ab44076a423721212 (diff)
downloadvis-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index 64713ef..96a9914 100644
--- a/vis.h
+++ b/vis.h
@@ -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,