diff options
| author | Gerd Moellmann | 1999-10-12 11:48:43 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-12 11:48:43 +0000 |
| commit | b07ea410a382deb8e8eae336302cc085269c8342 (patch) | |
| tree | ea5f58b823e6ae2cd2be2989b0a7b98247b5a657 /lisp/quickurl.el | |
| parent | b581dd19c036ffc5352e91fac42675801e5bec4f (diff) | |
| download | emacs-b07ea410a382deb8e8eae336302cc085269c8342.tar.gz emacs-b07ea410a382deb8e8eae336302cc085269c8342.zip | |
(quickurl-list-insert): `count-lines' was returning
a value one line to high if the cursor wasn't at the start of a
line. A `beginning-of-line' is now performed before making the
call to `count-lines'.
Diffstat (limited to 'lisp/quickurl.el')
| -rw-r--r-- | lisp/quickurl.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/quickurl.el b/lisp/quickurl.el index 3089e44754d..71d73ffd541 100644 --- a/lisp/quickurl.el +++ b/lisp/quickurl.el | |||
| @@ -506,7 +506,10 @@ TYPE dictates what will be inserted, options are: | |||
| 506 | `with-lookup' - Insert \"lookup <URL:url>\" | 506 | `with-lookup' - Insert \"lookup <URL:url>\" |
| 507 | `with-desc' - Insert \"description <URL:url>\" | 507 | `with-desc' - Insert \"description <URL:url>\" |
| 508 | `lookup' - Insert the lookup for that URL" | 508 | `lookup' - Insert the lookup for that URL" |
| 509 | (let ((url (nth (count-lines (point-min) (point)) quickurl-urls))) | 509 | (let ((url (nth (save-excursion |
| 510 | (beginning-of-line) | ||
| 511 | (count-lines (point-min) (point))) | ||
| 512 | quickurl-urls))) | ||
| 510 | (if url | 513 | (if url |
| 511 | (with-current-buffer quickurl-list-last-buffer | 514 | (with-current-buffer quickurl-list-last-buffer |
| 512 | (insert | 515 | (insert |