{"version":"2.1.248","anchor":"the-prompt-input-can-now-say-whether-enter-will-submit-or-ad","canonical_anchor":"the-prompt-input-can-now-say-whether-enter-will-submit-or-ad","heading":"The prompt input can now say whether Enter will submit or add a newline","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/the-prompt-input-can-now-say-whether-enter-will-submit-or-ad","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### The prompt input can now say whether Enter will submit or add a newline\n\nThe input box can now tell whether Return will submit or insert a newline.\n\n**What**\n\nThe text input now exposes a `willInsertNewline` value that is true when Return follows a backslash or is pressed with shift or meta, so surrounding UI can tell submission from line continuation.\n\n**Details**\n\n- The cursor-position guard for the backslash check moved into the shared predicate, fixing an inconsistency where the inner branch required a non-zero cursor offset and the outer one did not.\n\n**Evidence**\n\n`willInsertNewline`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}