diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-02 23:10:43 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 14:20:15 +0100 |
| commit | b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (patch) | |
| tree | 4782b5eb06b24e85faef98116117ac5b65a40229 /ui.h | |
| parent | 78f1da727768cc398a09939fdb8d325fdcdca863 (diff) | |
| download | vis-b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe.tar.gz vis-b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe.tar.xz | |
Improve large file support
Disable absolute line numbers for large files (currently
anything bigger than 32MiB). This speeds up moving around
with for example nn% since no new lines need to be calculated.
Of course movements like :nn will be unaffected.
The optimizations can be disabled by explicitly enabling
absolute line numbers as in :set number
Diffstat (limited to 'ui.h')
| -rw-r--r-- | ui.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -25,6 +25,7 @@ enum UiOption { UI_OPTION_CURSOR_LINE = 1 << 7, UI_OPTION_STATUSBAR = 1 << 8, UI_OPTION_ONELINE = 1 << 9, + UI_OPTION_LARGE_FILE = 1 << 10, }; enum UiStyles { |
