Author xoviat
Recipients Jim Fasarakis-Hilliard, brett.cannon, emilyemorehouse, serhiy.storchaka, terry.reedy, xoviat
Date 2017-02-02.21:13:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486070037.9.0.377823224578.issue29339@psf.upfronthosting.co.za>
In-reply-to
Content
The user is going to have to outdent anyway if we return them to the previous indentation level. Essentially it would be this:


[ENTER]

set_cursor_to_previous_indentation_level()

if first_char_in_is_space:
    erase_first_char_in()
    reset_cursor_to_zero_indentation()
    type_first_char()
else:
    pass


So if we have this line:

        some_line

[ENTER]

        some_line
        ^

[BACKSPACEX4]

        some_line
    ^
<---- cursor direction

The other case is

        some_line

[ENTER]

        some_line
        ^

[SPACEX4]

        some_line
    ^
----> cursor direction

Does that make sense?
History
Date User Action Args
2017-02-02 21:13:57xoviatsetrecipients: + xoviat, brett.cannon, terry.reedy, serhiy.storchaka, emilyemorehouse, Jim Fasarakis-Hilliard
2017-02-02 21:13:57xoviatsetmessageid: <1486070037.9.0.377823224578.issue29339@psf.upfronthosting.co.za>
2017-02-02 21:13:57xoviatlinkissue29339 messages
2017-02-02 21:13:57xoviatcreate