Differences From Artifact [8ced81a2df]:
- File src/util.c — part of check-in [fc60e44417] at 2025-03-16 19:15:02 on branch trunk — Add the "fossil which" command, which even works on Windows. Enhance the fossil_text_editor() function so that it looks for common text editor names if it does not find a user-specified preference. (user: drh size: 26457)
To Artifact [cc0f6d12d0]:
- File src/util.c — part of check-in [cd03acbde2] at 2025-03-17 12:04:42 on branch trunk — 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] (user: drh size: 26507)
| ︙ | ︙ | |||
690 691 692 693 694 695 696 697 698 699 700 701 702 703 |
while( zEditor==0 && i<count(azStdEd) ){
if( fossil_app_on_path(azStdEd[i],0) ){
zEditor = azStdEd[i];
}else{
i++;
}
}
return zEditor;
}
/*
** Construct a temporary filename.
**
** The returned string is obtained from sqlite3_malloc() and must be
| > | 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
while( zEditor==0 && i<count(azStdEd) ){
if( fossil_app_on_path(azStdEd[i],0) ){
zEditor = azStdEd[i];
}else{
i++;
}
}
if( zEditor && is_false(zEditor) ) zEditor = 0;
return zEditor;
}
/*
** Construct a temporary filename.
**
** The returned string is obtained from sqlite3_malloc() and must be
|
| ︙ | ︙ |