Skip to content

Commit 0ca7d9c

Browse files
Move cursor down only on sending line to FSI
1 parent 14adf4e commit 0ca7d9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/Fsi.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ module Fsi =
5353
| _ -> msg
5454

5555
fsiProcess |> Option.iter (fun fp -> fp.stdin.write(msg', "utf-8" |> unbox) |> ignore)
56-
commands.executeCommand "cursorDown" |> ignore
56+
5757

5858
let private sendLine () =
5959
let editor = window.activeTextEditor
6060
let file = editor.document.fileName
6161
let pos = editor.selection.start
6262
let line = editor.document.lineAt pos
6363
send line.text file
64+
commands.executeCommand "cursorDown" |> ignore
6465

6566
let private sendSelection () =
6667
let editor = window.activeTextEditor

0 commit comments

Comments
 (0)