aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/vis.c b/vis.c
index c05eb3c..811b39d 100644
--- a/vis.c
+++ b/vis.c
@@ -28,9 +28,6 @@
#include "vis-core.h"
#include "sam.h"
-/* enable large file optimization for files larger than: */
-#define LARGE_FILE (1 << 25)
-
static Macro *macro_get(Vis *vis, enum VisRegister);
static void macro_replay(Vis *vis, const Macro *macro);
static void vis_keys_process(Vis *vis);
@@ -170,13 +167,6 @@ Win *window_new_file(Vis *vis, File *file) {
file->refcount++;
view_tabwidth_set(win->view, vis->tabwidth);
- if (text_size(file->text) > LARGE_FILE) {
- enum UiOption opt = view_options_get(win->view);
- opt |= UI_OPTION_LARGE_FILE;
- opt &= ~UI_OPTION_LINE_NUMBERS_ABSOLUTE;
- view_options_set(win->view, opt);
- }
-
if (vis->windows)
vis->windows->prev = win;
win->next = vis->windows;
@@ -1373,12 +1363,3 @@ View *vis_view(Vis *vis) {
Win *vis_window(Vis *vis) {
return vis->win;
}
-
-Text *vis_file_text(File *file) {
- return file->text;
-}
-
-const char *vis_file_name(File *file) {
- return file->name;
-}
-