← Commit list

52c4b7ac3

Ron Yorston
Ron Yorston
2021-06-14
SUCCESS Duration: 154s

Subject

vi: initialise tabstop once not for each file

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+1 -1
@@ -536,6 +536,7 @@ struct globals {
last_modified_count = -1; \
/* "" but has space for 2 chars: */ \
IF_FEATURE_VI_SEARCH(last_search_pattern = xzalloc(2);) \
+ tabstop = 8; \
} while (0)
#if ENABLE_FEATURE_VI_CRASHME
@@ -4619,7 +4620,6 @@ static void edit_file(char *fn)
cmd_mode = 0; // 0=command 1=insert 2='R'eplace
cmdcnt = 0;
- tabstop = 8;
offset = 0; // no horizontal offset
c = '\0';
#if ENABLE_FEATURE_VI_DOT_CMD