We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb48487 + 27bf164 commit 332590cCopy full SHA for 332590c
1 file changed
sqlup-mode.el
@@ -80,8 +80,9 @@
80
(sqlup-trigger-self-insert-characterp))))
81
82
(defun sqlup-user-pressed-returnp ()
83
- (and (> 0 (length (this-command-keys-vector)))
84
- (equal 13 (elt (this-command-keys-vector) 0))))
+ (and (< 0 (length (this-command-keys-vector)))
+ (or (equal 13 (elt (this-command-keys-vector) 0))
85
+ (equal 10 (elt (this-command-keys-vector) 0)))))
86
87
(defun sqlup-user-is-typingp ()
88
(string= "self-insert-command" (symbol-name this-command)))
0 commit comments