vimplugin: remove option not on new line

This commit is contained in:
Riyyi
2018-01-31 23:02:09 +01:00
parent 859cd40e63
commit 67eac1691d
+2 -1
View File
@@ -124,7 +124,8 @@ update() {
remove() { remove() {
list list
echo "Enter the number to remove: " && read OPTION echo -n "Enter the number to remove: "
read OPTION
if [ -z "$(echo $OPTION | sed -nr 's/^([0-9]+)$/\1/p')" ]; then if [ -z "$(echo $OPTION | sed -nr 's/^([0-9]+)$/\1/p')" ]; then
echo "Please select a number" echo "Please select a number"