Permalink
Browse files

Fix losing keymap at eob #207

  • Loading branch information...
1 parent 23579f9 commit c1aaba0cc710284febb0ebaed24f9038ebee1f45 Tomohiro Matsuyama committed Mar 30, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 auto-complete.el
View
@@ -902,8 +902,7 @@ You can not use it in source definition like (prefix . `NAME')."
(unless ac-prefix-overlay
(let (newline)
;; Insert newline to make sure that cursor always on the overlay
- (when (and (eq ac-point (point-max))
- (eq ac-point (point)))
+ (when (eobp)
(popup-save-buffer-state
(insert "\n"))
(setq newline t))

0 comments on commit c1aaba0

Please sign in to comment.