summaryrefslogtreecommitdiff
path: root/lisp/ecomplete.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ecomplete.el')
-rw-r--r--lisp/ecomplete.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ecomplete.el b/lisp/ecomplete.el
index d5f3fc77560..aa415a3e9e3 100644
--- a/lisp/ecomplete.el
+++ b/lisp/ecomplete.el
@@ -199,7 +199,7 @@ matches."
(goto-char (point-min))
(forward-line line)
(save-restriction
- (narrow-to-region (point) (point-at-eol))
+ (narrow-to-region (point) (line-end-position))
(while (not (eobp))
;; Put the 'region face on any characters on this line that
;; aren't already highlighted.