← Commit list

e6bc8a29a

Ron Yorston
Ron Yorston
2021-04-28
SUCCESS Duration: 154s

Subject

vi: preserve state when switching 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+0 -2
@@ -4462,7 +4462,6 @@ static void edit_file(char *fn)
mark[26] = mark[27] = text; // init "previous context"
#endif
- last_search_char = '\0';
#if ENABLE_FEATURE_VI_CRASHME
last_input_char = '\0';
#endif
@@ -4489,7 +4488,6 @@ static void edit_file(char *fn)
#if ENABLE_FEATURE_VI_DOT_CMD
free(ioq_start);
ioq_start = NULL;
- lmc_len = 0;
adding2q = 0;
#endif