Skip to content

Commit

Permalink
omit a static string that’s not needed in MKSH_SMALL without vi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Oct 31, 2020
1 parent 27d3a7f commit ecbd6ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#ifndef MKSH_NO_CMDLINE_EDITING

__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.356 2020/10/01 22:39:56 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.357 2020/10/31 05:02:17 tg Exp $");

/*
* in later versions we might use libtermcap for this, but since external
Expand All @@ -41,7 +41,9 @@ __RCSID("$MirOS: src/bin/mksh/edit.c,v 1.356 2020/10/01 22:39:56 tg Exp $");
#define MKSH_CLS_STRING KSH_ESC_STRING "[;H" KSH_ESC_STRING "[J"
#endif

#if !defined(MKSH_SMALL) || !MKSH_S_NOVI
static const char ctrl_x_e[] = "fc -e \"${VISUAL:-${EDITOR:-vi}}\" --";
#endif

/* tty driver characters we are interested in */
#define EDCHAR_DISABLED 0xFFFFU
Expand Down

0 comments on commit ecbd6ee

Please sign in to comment.