summaryrefslogtreecommitdiffhomepage
path: root/editors
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
parentb69e872229958cb0682ff37eb44c0f575ffc671c (diff)
vi: comment out dead code
Diffstat (limited to 'editors')
-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)
last_status_cksum = 0;
text = NULL;
- if (ENABLE_FEATURE_VI_READONLY && strncmp(applet_name, "view", 4) == 0) {
+#ifdef NO_SUCH_APPLET_YET
+ /* If we aren't "vi", we are "view" */
+ if (ENABLE_FEATURE_VI_READONLY && applet_name[2]) {
SET_READONLY_MODE(readonly_mode);
}
+#endif
vi_setops = VI_AUTOINDENT | VI_SHOWMATCH | VI_IGNORECASE | VI_ERR_METHOD;
#if ENABLE_FEATURE_VI_YANKMARK
- //for (i = 0; i < 28; i++) {
- // reg[i] = 0;
- //} // init the yank regs
- memset(reg, 0, sizeof(reg));
+ memset(reg, 0, sizeof(reg)); // init the yank regs
#endif
#if ENABLE_FEATURE_VI_DOT_CMD || ENABLE_FEATURE_VI_YANKMARK
modifying_cmds = (char *) "aAcCdDiIJoOpPrRsxX<>~"; // cmds modifying text[]