Skip to content

Commit 28c2378

Browse files
committed
Implement simple continuation.
Fixes #1.
1 parent 928ec29 commit 28c2378

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xinterpreter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ __get_cxx_version ()
279279
return kernel_res;
280280
}
281281

282-
nl::json interpreter::is_complete_request_impl(const std::string& /*code*/)
282+
nl::json interpreter::is_complete_request_impl(const std::string& code)
283283
{
284-
return xeus::create_is_complete_reply("complete", " ");
284+
if (code[code.size() - 1] == '\\')
285+
return xeus::create_is_complete_reply("incomplete", " ");
286+
return xeus::create_is_complete_reply("complete");
285287
}
286288

287289
nl::json interpreter::kernel_info_request_impl()

0 commit comments

Comments
 (0)