Fixed bug in download procedure.
authorTim Vaughan <tgvaughan@gmail.com>
Wed, 24 Apr 2019 15:01:35 +0000 (17:01 +0200)
committerTim Vaughan <tgvaughan@gmail.com>
Wed, 24 Apr 2019 15:01:35 +0000 (17:01 +0200)
elopher.el

index c6d0bde..b8170c5 100644 (file)
@@ -484,7 +484,7 @@ The result is stored as a string in the variable elopher-selector-string."
                (filename-proposal (file-name-nondirectory selector))
                (filename (read-file-name "Name of file to write: "
                                          nil nil nil
-                                         (if (> 0 (length filename-proposal))
+                                         (if (> (length filename-proposal) 0)
                                              filename-proposal
                                            "gopher.file"))))
           (elopher-download-node node filename))