Skip to content

Commit 332590c

Browse files
committed
Merge pull request #32 from atofigh/patch-1
Fix bug in sqlup-user-pressed-returnp
2 parents cb48487 + 27bf164 commit 332590c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sqlup-mode.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@
8080
(sqlup-trigger-self-insert-characterp))))
8181

8282
(defun sqlup-user-pressed-returnp ()
83-
(and (> 0 (length (this-command-keys-vector)))
84-
(equal 13 (elt (this-command-keys-vector) 0))))
83+
(and (< 0 (length (this-command-keys-vector)))
84+
(or (equal 13 (elt (this-command-keys-vector) 0))
85+
(equal 10 (elt (this-command-keys-vector) 0)))))
8586

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

0 commit comments

Comments
 (0)