Make m m .1 work again.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 25 Feb 2017 11:59:46 +0000 (06:59 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 25 Feb 2017 11:59:46 +0000 (06:59 -0500)
sst.py

diff --git a/sst.py b/sst.py
index c36f13771ac008df35b5ae4aefd8c968e7711247..7c7d075a8c9527a484e089dcfd070ae77badfade 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -4011,15 +4011,16 @@ def getcourse(isprobe):
             iprompt = True
             key = scanner.nexttok()
         itemp = "verbose"
-        if key != "IHREAL":
+        if key == "IHREAL":
+            delta.j = scanner.real
+        else:
             huh()
             raise TrekError
-        delta.j = scanner.real
         key = scanner.nexttok()
-        if key != "IHREAL":
-            huh()
-            raise TrekError
-        delta.i = scanner.real
+        if key == "IHREAL":
+            delta.i = scanner.real
+        else:
+            delta.i = 0
     # Check for zero movement
     if delta.i == 0 and delta.j == 0:
         scanner.chew()