#144 open

[bug] double indentation

Reported by Swizec | January 4th, 2011 @ 01:25 AM

What I did: Accidentally selected text beyond the end of a line before going to a new line.

What I expected to happen: A new line to appear.

What actually happened: No new line was created, but the next line got another set of indentation.

Here's an example:

| represents the caret

  def __init__(self):<selection to the end of visible line>|
    super(ContactForm, self).__init__(*args, **kwargs)

After pressing enter this is what happenes

  def __init__(self):
  |   super(ContactForm, self).__init__(*args, **kwargs)

Not that even making that selection shouldn't be possible since it's beyond the scope of the text. The way I managed to get it was by going to the end of the line, holding shift and pressing the right arrow key.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket