21 lines
919 B
Diff
21 lines
919 B
Diff
diff -rupN sensible-utils.git/select-editor.in sensible-utils.git-new/select-editor.in
|
|
--- sensible-utils.git/select-editor.in 2017-11-15 11:33:17.000000000 +0100
|
|
+++ sensible-utils.git-new/select-editor.in 2018-03-13 10:11:14.612976126 +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
|