Cursor ends up in wrong place after pasting multiline content
Reported by Michal Hantl | October 21st, 2010 @ 10:20 PM
Cursor ends up in wrong place after pasting multiline content.
For example pasting
def my method
#blahblah
end
def my method2
#blahblah
end
Comments and changes to this ticket
-
tim.felgentreff (at student.hpi.uni-potsdam) October 24th, 2010 @ 08:36 AM
- Tag set to needs info
Well, for me, the cursor ends up after the pasted code, which is what I expect.
-
delisa October 25th, 2010 @ 03:36 AM
Is this a Unicode character problem? Is there a specific test case for this?
-
Michal Hantl October 25th, 2010 @ 06:24 AM
I am having a problem when I make a copy of methodA
def methodA #dostuff end
def methodB #dostuff end
End the resulting caret position is
def methodA #dostuff end
def methodA #dostuff end
def methodB #dostuff end
But can't seem to simulate it. I will watch out for a scenario when that happens.
It also might be UTF-8 / broken parser state related.
-
Michal Hantl October 25th, 2010 @ 06:25 AM
I am having a problem when I make a copy of methodA
def methodA #dostuff end
def methodB #dostuff enddef methodA #dostuff end def methodA #dostuff end def m<CARET>ethodB #dostuff end
But can't seem to simulate it. I will watch out for a scenario when that happens.
It also might be UTF-8 / broken parser state related.
-
agmcleod October 31st, 2010 @ 09:20 PM
Provided i followed your instructions in the gist correctly, my cursor ended up at the end of the closing script tag.
1) Opened redcar
2) Pasted the ERB tag that outputs the html code
3) Copied the script tag code
4) Pasted with my caret after the end of the erb tag(Mac OS X)
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A programmer's text editor for Gnome.