We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07b7a0 commit 14ac115Copy full SHA for 14ac115
cider-interaction.el
@@ -1300,11 +1300,14 @@ When invoked with a prefix ARG the command doesn't prompt for confirmation."
1300
1301
(defun cider--dummy-file-contents (form start-pos)
1302
(let ((current-ns (cider-current-ns))
1303
- (start-line (line-number-at-pos start-pos)))
+ (start-line (line-number-at-pos start-pos))
1304
+ (start-column (save-excursion (goto-char start-pos) (current-column))))
1305
(with-temp-buffer
1306
(insert (format "(ns %s)" current-ns))
1307
(dotimes (_ (1- start-line))
1308
(insert "\n"))
1309
+ (dotimes (_ start-column)
1310
+ (insert " "))
1311
(insert form)
1312
(buffer-string))))
1313
0 commit comments