Changeset 1275


Ignore:
Timestamp:
Mar 28, 2007, 1:51:13 AM (12 years ago)
Author:
bruno
Message:

find_my_editor now uses first the value of the env var EDITOR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c

    r1268 r1275  
    13611361{
    13621362    static char output[MAX_STR_LEN];
    1363 
     1363    char *p;
     1364
     1365    if ((p = getenv("EDITOR")) != NULL) {
     1366        strcpy(output, p);
     1367    }
    13641368    if (find_home_of_exe("pico")) {
    13651369        strcpy(output, "pico");
    13661370    } else if (find_home_of_exe("nano")) {
    13671371        strcpy(output, "nano");
    1368     } else if (find_home_of_exe("e3em")) {
    1369         strcpy(output, "e3em");
    1370     } else if (find_home_of_exe("e3vi")) {
    1371         strcpy(output, "e3vi");
     1372    } else if (find_home_of_exe("vim")) {
     1373        strcpy(output, "vim");
    13721374    } else {
    13731375        strcpy(output, "vi");
Note: See TracChangeset for help on using the changeset viewer.