Skip to content

Commit

Permalink
Merge pull request #32 from atofigh/patch-1
Browse files Browse the repository at this point in the history
Fix bug in sqlup-user-pressed-returnp
  • Loading branch information
Trevoke committed Aug 24, 2015
2 parents cb48487 + 27bf164 commit 332590c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sqlup-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@
(sqlup-trigger-self-insert-characterp))))

(defun sqlup-user-pressed-returnp ()
(and (> 0 (length (this-command-keys-vector)))
(equal 13 (elt (this-command-keys-vector) 0))))
(and (< 0 (length (this-command-keys-vector)))
(or (equal 13 (elt (this-command-keys-vector) 0))
(equal 10 (elt (this-command-keys-vector) 0)))))

(defun sqlup-user-is-typingp ()
(string= "self-insert-command" (symbol-name this-command)))
Expand Down

0 comments on commit 332590c

Please sign in to comment.