summaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-18 22:03:40 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-18 22:03:40 +0000
commit2414a96faae906da8519229f12bebe5fe00078e7 (patch)
tree90691b143b8110fd0a8e8b132624939b5bd261bc /editors/vi.c
parentb69e872229958cb0682ff37eb44c0f575ffc671c (diff)
downloadbusybox-w32-2414a96faae906da8519229f12bebe5fe00078e7.tar.gz
busybox-w32-2414a96faae906da8519229f12bebe5fe00078e7.tar.bz2
busybox-w32-2414a96faae906da8519229f12bebe5fe00078e7.zip
vi: comment out dead code
Diffstat (limited to '')
-rw-r--r--editors/vi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 594edfd51..6faaef36e 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -330,16 +330,16 @@ int vi_main(int argc, char **argv)
330 last_status_cksum = 0; 330 last_status_cksum = 0;
331 text = NULL; 331 text = NULL;
332 332
333 if (ENABLE_FEATURE_VI_READONLY && strncmp(applet_name, "view", 4) == 0) { 333#ifdef NO_SUCH_APPLET_YET
334 /* If we aren't "vi", we are "view" */
335 if (ENABLE_FEATURE_VI_READONLY && applet_name[2]) {
334 SET_READONLY_MODE(readonly_mode); 336 SET_READONLY_MODE(readonly_mode);
335 } 337 }
338#endif
336 339
337 vi_setops = VI_AUTOINDENT | VI_SHOWMATCH | VI_IGNORECASE | VI_ERR_METHOD; 340 vi_setops = VI_AUTOINDENT | VI_SHOWMATCH | VI_IGNORECASE | VI_ERR_METHOD;
338#if ENABLE_FEATURE_VI_YANKMARK 341#if ENABLE_FEATURE_VI_YANKMARK
339 //for (i = 0; i < 28; i++) { 342 memset(reg, 0, sizeof(reg)); // init the yank regs
340 // reg[i] = 0;
341 //} // init the yank regs
342 memset(reg, 0, sizeof(reg));
343#endif 343#endif
344#if ENABLE_FEATURE_VI_DOT_CMD || ENABLE_FEATURE_VI_YANKMARK 344#if ENABLE_FEATURE_VI_DOT_CMD || ENABLE_FEATURE_VI_YANKMARK
345 modifying_cmds = (char *) "aAcCdDiIJoOpPrRsxX<>~"; // cmds modifying text[] 345 modifying_cmds = (char *) "aAcCdDiIJoOpPrRsxX<>~"; // cmds modifying text[]