]> code.delx.au - gnu-emacs/blobdiff - lisp/term/mac-win.el
Merge from emacs--rel--22
[gnu-emacs] / lisp / term / mac-win.el
index 60f27052892edf6a259b3743a64cb207275145df..e15f2e4c87349722f694eaba47379bf930d653c8 100644 (file)
@@ -1802,11 +1802,11 @@ if possible.  If there's no such frame, a new frame is created."
             (let ((line (car selection-range))
                   (start (cadr selection-range))
                   (end (nth 2 selection-range)))
-              (if (> line 0)
-                  (goto-line line)
-                (if (and (> start 0) (> end 0))
-                    (progn (set-mark start)
-                           (goto-char end))))))
+              (if (>= line 0)
+                  (goto-line (1+ line))
+                (if (and (>= start 0) (>= end 0))
+                    (progn (set-mark (1+ start))
+                           (goto-char (1+ end)))))))
            ((stringp search-text)
             (re-search-forward
              (mapconcat 'regexp-quote (split-string search-text) "\\|")