Skip to content

User should be able to return control without inserting a newline #587

Closed
@ScarletEmerald

Description

@ScarletEmerald

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new bug or useful enhancement to share.

Current Behavior

In Interactive mode, if the user presses return, a newline is entered into the input. This makes it impossible to return control without inserting a newline.

A special-case exception was recently added for when the user enters only a newline and no other text. #529 #571 This returns control without inserting a newline. However, this only works for the special case of zero length input.

Expected Behavior

The newline entered by the user to return control should never be included in the text. 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.

This is what would be desired in Interactive mode. In Instruct mode, perhaps the desired behavior would the current behavior of including the final newlines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions