]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
main : Fix Ctrl+D/newline handling (#12951)
authorDaniel Tang <redacted>
Fri, 18 Apr 2025 20:02:55 +0000 (16:02 -0400)
committerGitHub <redacted>
Fri, 18 Apr 2025 20:02:55 +0000 (22:02 +0200)
commit6408210082cc0a61b992b487be7e2ff2efbb9e36
tree916fc727705f229644428e4c80a010f556cff9df
parentaff9d107b066c9d464f7ab1324280acfdcebf569
main : Fix Ctrl+D/newline handling (#12951)

This restores the behavior from #491. This does not affect Ctrl+D's ability to
terminate --multiline-input lines (#1040).

This also actually implements #587: "If the user wants the text to end in a
newline, this should be accomplished by explicitly adding a newline by using
\ followed by return, then returning control by pressing return again."

Fixes #12949
examples/main/main.cpp