Fossil SCM

Setting the text editor (either the "editor" setting, or the VISUAL or EDITOR environment variables) to "off", "no", "false", or "0" cause the use of a text editor for checkin comment entry to be bypassed. [forum:/forumpost/9b613281b45a3df7|Forum post 9b613281b]

drh 2025-03-17 12:04 trunk
Commit cd03acbde25ad08c439c272c37b5712169990169782e6876405a5f0c718cd74c
1 file changed +1
+1
--- src/util.c
+++ src/util.c
@@ -692,10 +692,11 @@
692692
zEditor = azStdEd[i];
693693
}else{
694694
i++;
695695
}
696696
}
697
+ if( zEditor && is_false(zEditor) ) zEditor = 0;
697698
return zEditor;
698699
}
699700
700701
/*
701702
** Construct a temporary filename.
702703
--- src/util.c
+++ src/util.c
@@ -692,10 +692,11 @@
692 zEditor = azStdEd[i];
693 }else{
694 i++;
695 }
696 }
 
697 return zEditor;
698 }
699
700 /*
701 ** Construct a temporary filename.
702
--- src/util.c
+++ src/util.c
@@ -692,10 +692,11 @@
692 zEditor = azStdEd[i];
693 }else{
694 i++;
695 }
696 }
697 if( zEditor && is_false(zEditor) ) zEditor = 0;
698 return zEditor;
699 }
700
701 /*
702 ** Construct a temporary filename.
703

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button