Enable curser.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 8 Aug 2007 10:34:04 +0000 (10:34 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 8 Aug 2007 10:34:04 +0000 (10:34 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1094 959494ce-11ee-0310-bf91-de5d638817bd

planime

diff --git a/planime b/planime
index 62c01a4..2fca326 100755 (executable)
--- a/planime
+++ b/planime
@@ -63,6 +63,9 @@ file=
 tqual=
 if [ $# -eq 0 ]; then
     nextep=y
+    if [ -r curser ]; then
+       base="$base $(<curser)"
+    fi
 elif [ $# -eq 1 ]; then
     if [ -r "$1" ]; then
        file="$1"
@@ -79,11 +82,19 @@ elif [ $# -eq 2 ]; then
        ep="$1"
        tqual="$2"
     else
-       base="$base $1"
+       if [ "$1" = . -a -r curser ]; then
+           base="$base $(<curser)"
+       else
+           base="$base $1"
+       fi
        ep="$2"
     fi
 else
-    base="$base $1"
+    if [ "$1" = . -a -r curser ]; then
+       base="$base $(<curser)"
+    else
+       base="$base $1"
+    fi
     ep="$2"
     tqual="$3"
 fi