Fossil SCM
Add "jove" to the list of text editors that Fossil searches for if the "editor" setting and the VISUAL and EDITOR environment variables are not available.
Commit
486f81b931dea1a3d131c1c6b5d8a592ca17563e6b9891c684601417bca64a9d
Parent
478a0fa79cacdd1…
2 files changed
+1
-1
+2
-2
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -4788,11 +4788,11 @@ | ||
| 4788 | 4788 | ** text editor command used for check-in comments. |
| 4789 | 4789 | ** |
| 4790 | 4790 | ** If this value is not set, then environment variables VISUAL and |
| 4791 | 4791 | ** EDITOR are consulted, in that order. If neither of those are set, |
| 4792 | 4792 | ** then a search is made for common text editors, including |
| 4793 | -** "notepad", "nano", "pico", "edit", "vi", "vim", and "ed". | |
| 4793 | +** "notepad", "nano", "pico", "jove", "edit", "vi", "vim", and "ed". | |
| 4794 | 4794 | ** |
| 4795 | 4795 | ** If this setting is false ("off", "no", "false", or "0") then no |
| 4796 | 4796 | ** text editor is used. |
| 4797 | 4797 | */ |
| 4798 | 4798 | /* |
| 4799 | 4799 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4788,11 +4788,11 @@ | |
| 4788 | ** text editor command used for check-in comments. |
| 4789 | ** |
| 4790 | ** If this value is not set, then environment variables VISUAL and |
| 4791 | ** EDITOR are consulted, in that order. If neither of those are set, |
| 4792 | ** then a search is made for common text editors, including |
| 4793 | ** "notepad", "nano", "pico", "edit", "vi", "vim", and "ed". |
| 4794 | ** |
| 4795 | ** If this setting is false ("off", "no", "false", or "0") then no |
| 4796 | ** text editor is used. |
| 4797 | */ |
| 4798 | /* |
| 4799 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4788,11 +4788,11 @@ | |
| 4788 | ** text editor command used for check-in comments. |
| 4789 | ** |
| 4790 | ** If this value is not set, then environment variables VISUAL and |
| 4791 | ** EDITOR are consulted, in that order. If neither of those are set, |
| 4792 | ** then a search is made for common text editors, including |
| 4793 | ** "notepad", "nano", "pico", "jove", "edit", "vi", "vim", and "ed". |
| 4794 | ** |
| 4795 | ** If this setting is false ("off", "no", "false", or "0") then no |
| 4796 | ** text editor is used. |
| 4797 | */ |
| 4798 | /* |
| 4799 |
+2
-2
| --- src/util.c | ||
| +++ src/util.c | ||
| @@ -671,16 +671,16 @@ | ||
| 671 | 671 | ** (1) The local "editor" setting |
| 672 | 672 | ** (2) The global "editor" setting |
| 673 | 673 | ** (3) The VISUAL environment variable |
| 674 | 674 | ** (4) The EDITOR environment variable |
| 675 | 675 | ** (5) Any of the following programs that are available: |
| 676 | -** notepad, nano, pico, edit, vi, vim, ed, | |
| 676 | +** notepad, nano, pico, jove, edit, vi, vim, ed, | |
| 677 | 677 | */ |
| 678 | 678 | const char *fossil_text_editor(void){ |
| 679 | 679 | const char *zEditor = db_get("editor", 0); |
| 680 | 680 | const char *azStdEd[] = { |
| 681 | - "notepad", "nano", "pico", "edit", "vi", "vim", "ed" | |
| 681 | + "notepad", "nano", "pico", "jove", "edit", "vi", "vim", "ed" | |
| 682 | 682 | }; |
| 683 | 683 | int i = 0; |
| 684 | 684 | if( zEditor==0 ){ |
| 685 | 685 | zEditor = fossil_getenv("VISUAL"); |
| 686 | 686 | } |
| 687 | 687 |
| --- src/util.c | |
| +++ src/util.c | |
| @@ -671,16 +671,16 @@ | |
| 671 | ** (1) The local "editor" setting |
| 672 | ** (2) The global "editor" setting |
| 673 | ** (3) The VISUAL environment variable |
| 674 | ** (4) The EDITOR environment variable |
| 675 | ** (5) Any of the following programs that are available: |
| 676 | ** notepad, nano, pico, edit, vi, vim, ed, |
| 677 | */ |
| 678 | const char *fossil_text_editor(void){ |
| 679 | const char *zEditor = db_get("editor", 0); |
| 680 | const char *azStdEd[] = { |
| 681 | "notepad", "nano", "pico", "edit", "vi", "vim", "ed" |
| 682 | }; |
| 683 | int i = 0; |
| 684 | if( zEditor==0 ){ |
| 685 | zEditor = fossil_getenv("VISUAL"); |
| 686 | } |
| 687 |
| --- src/util.c | |
| +++ src/util.c | |
| @@ -671,16 +671,16 @@ | |
| 671 | ** (1) The local "editor" setting |
| 672 | ** (2) The global "editor" setting |
| 673 | ** (3) The VISUAL environment variable |
| 674 | ** (4) The EDITOR environment variable |
| 675 | ** (5) Any of the following programs that are available: |
| 676 | ** notepad, nano, pico, jove, edit, vi, vim, ed, |
| 677 | */ |
| 678 | const char *fossil_text_editor(void){ |
| 679 | const char *zEditor = db_get("editor", 0); |
| 680 | const char *azStdEd[] = { |
| 681 | "notepad", "nano", "pico", "jove", "edit", "vi", "vim", "ed" |
| 682 | }; |
| 683 | int i = 0; |
| 684 | if( zEditor==0 ){ |
| 685 | zEditor = fossil_getenv("VISUAL"); |
| 686 | } |
| 687 |