21 lines
938 B
Diff
21 lines
938 B
Diff
diff -rupN --no-dereference sensible-utils.git/select-editor.in sensible-utils.git-new/select-editor.in
|
|
--- sensible-utils.git/select-editor.in 2021-01-12 22:49:54.000000000 +0100
|
|
+++ sensible-utils.git-new/select-editor.in 2021-01-15 21:05:18.830354488 +0100
|
|
@@ -14,7 +14,7 @@ EASIEST="/bin/nano"
|
|
touch "$HOME/.selected_editor" || exit 1
|
|
|
|
sorted_list_of_editors() {
|
|
- update-alternatives --query editor | while read emptyline; do
|
|
+ update-alternatives --config editor | while read emptyline; do
|
|
# skip the first entry (header) as well as the rest of processed entries
|
|
if [ -z "$emptyline" ]; then continue; fi
|
|
|
|
@@ -35,7 +35,7 @@ sorted_list_of_editors() {
|
|
}
|
|
|
|
|
|
-editors=`update-alternatives --list editor | wc -l`
|
|
+editors=`update-alternatives --config editor | wc -l`
|
|
if [ $editors -gt 1 ]; then
|
|
# fix simple to 1 see #777168
|
|
simple=1
|