[BACK]Return to tmux.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tmux.c between version 1.199 and 1.200

version 1.199, 2020/05/16 14:26:33 version 1.200, 2020/05/16 15:24:28
Line 443 
Line 443 
   
         /* Override keys to vi if VISUAL or EDITOR are set. */          /* Override keys to vi if VISUAL or EDITOR are set. */
         if ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {          if ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {
                   options_set_string(global_options, "editor", 0, "%s", s);
                 if (strrchr(s, '/') != NULL)                  if (strrchr(s, '/') != NULL)
                         s = strrchr(s, '/') + 1;                          s = strrchr(s, '/') + 1;
                 if (strstr(s, "vi") != NULL)                  if (strstr(s, "vi") != NULL)

Legend:
Removed from v.1.199  
changed lines
  Added in v.1.200