Fixed.
authorueno <ueno>
Sun, 10 Sep 2006 02:45:33 +0000 (02:45 +0000)
committerueno <ueno>
Sun, 10 Sep 2006 02:45:33 +0000 (02:45 +0000)
epa-file.el

index d02e789..b1743ee 100644 (file)
                  (decode-coding-inserted-region
                   (point-min) (point-max)
                   (substring file 0 (string-match epa-file-name-regexp file))
-                  visit beg end replace))
-             (insert (decode-coding-string string (or coding-system-for-read
-                                                      'undecided))))
-           (setq length (length string))
+                  visit beg end replace)
+                 (setq length (- (point-max) (point-min))))
+             (setq string (decode-coding-string string
+                                                (or coding-system-for-read
+                                                    'undecided))
+                   length (length string))
+             (insert string))
            (if replace
                (delete-region (point) (point-max)))))
       (if (and local-copy