diff --git a/src/changepars.c b/src/changepars.c index 02970c1..2d5bbb1 100644 --- a/src/changepars.c +++ b/src/changepars.c @@ -358,6 +358,8 @@ int changepars(void) { strcpy(cmdstring, "vi "); } else if (editor == EDITOR_MC) { strcpy(cmdstring, "mcedit "); + } else if (editor == EDITOR_NANO) { + strcpy(cmdstring, "nano "); } else { strcpy(cmdstring, "e3 "); } diff --git a/src/editlog.c b/src/editlog.c index e11c140..bf82bdb 100644 --- a/src/editlog.c +++ b/src/editlog.c @@ -53,6 +53,8 @@ int logedit(void) { strcat(comstr, "vi "); else if (editor == EDITOR_MC) strcat(comstr, "mcedit "); + else if (editor == EDITOR_NANO) + strcat(comstr, "nano "); else strcat(comstr, "e3 "); diff --git a/src/parse_logcfg.c b/src/parse_logcfg.c index 43b53a4..0de1085 100644 --- a/src/parse_logcfg.c +++ b/src/parse_logcfg.c @@ -934,6 +934,11 @@ int parse_logcfg(char *inputbuffer) { if (j != NULL) { editor = EDITOR_VI; break; + } + j = strstr(fields[1], "nano"); + if (j != NULL) { + editor = EDITOR_NANO; + break; } else { editor = EDITOR_E3; break; diff --git a/src/tlf.h b/src/tlf.h index ae11b76..61b5a61 100644 --- a/src/tlf.h +++ b/src/tlf.h @@ -119,6 +119,7 @@ enum { #define EDITOR_VI 1 #define EDITOR_E3 2 #define EDITOR_MC 3 +#define EDITOR_NANO 4 #define UNIQUECALL_ALL 1 #define UNIQUECALL_BAND 2