mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
Fix sending input to SQL when point is not at EOB
* lisp/progmodes/sql.el (sql-send-string): Move point to EOB before sending input to the SQL process. Suggested by Gary Hollis <ghollisjr@gmail.com>. (Bug#69420)
This commit is contained in:
parent
b993c1b275
commit
bb9d81d514
@ -3721,6 +3721,8 @@ prompts (`sql-output-newline-count' is positive). In this case:
|
||||
(save-excursion
|
||||
;; Set product context
|
||||
(with-current-buffer sql-buffer
|
||||
;; Make sure point is at EOB before sending input to SQL.
|
||||
(goto-char (point-max))
|
||||
(when sql-debug-send
|
||||
(message ">>SQL> %S" s))
|
||||
(insert "\n")
|
||||
|
Loading…
Reference in New Issue
Block a user