Author Topic: Cursor position inconsistent after paste  (Read 5065 times)

mp

  • Community Member
  • Posts: 12
  • Hero Points: 0
Cursor position inconsistent after paste
« on: June 21, 2011, 07:13:59 PM »
Windows 7 x86 SP1
Slickedit 15.0.1.3

I recently moved into a new computer, same Win and SE versions as before.  I saved and imported my SE customizations, and everything works as expected, except for this:

Sometimes when I paste, the cursor advances one row at the insert position instead of remaining positioned after the last char inserted.  E.g. given this text:

1234567890
abcdefghij

if I place the cursor between 5 and 6 and paste "C:\Windows\Downloaded Program Files" copied from an Explorer address box, after text is pasted, I get this:

12345C:\Windows\Downloaded Program Files67890
abcdefghij                              |

The cursor is under the "6".  (The example would be more accurate in a fixed pitch font).  Other times, it remains properly between the "s" and "6"

I cannot reproduce this consistently.  I can reproduce it more often if I start with a new file, type the two lines of text, then immediately paste.  If I undo and paste again, sometimes it will do it, sometimes it won't.  When trying to create a repeatable example for this post, I found that once it pastes properly, the all subsequent pastes worked properly until I started a new file.  This may not mean anything, for I didn't work on any one file extensively.

Anyone experience this, and have a cure for it?



 

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: Cursor position inconsistent after paste
« Reply #1 on: June 21, 2011, 09:52:04 PM »
I've seen this before, and I reported it either in the forums or in a support case.  But I can't find it in the forums, and I can't find it in my email archive of support case emails.

I don't remember what causes it, though, sorry.

JeffB

  • Senior Community Member
  • Posts: 327
  • Hero Points: 14
Re: Cursor position inconsistent after paste
« Reply #2 on: June 23, 2011, 09:14:31 PM »
I'm glad someone reported this...it has annoyed me for some time and back to at least v15.  I'm using the 32-bit Linux version. I usually paste with the middle mouse button, and since no one else reported it, I assumed it was a linux/X specific type problem.

Unfortunately, I can't reproduce it at-will either.

Jeff

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: Cursor position inconsistent after paste
« Reply #3 on: July 15, 2011, 05:35:03 AM »
I ran into it again and remembered:

Remote Desktop Connection by default replicates the clipboard between the local and remote computers.  When the clipboard gets replicated, SlickEdit often (always?) does two undesirable things:

1.  Puts the cursor on the next line after the pasted text, instead of at the end of the pasted text.
2.  Marks the next line after the paste as having been inserted, even though it hasn't been touched at all.

It might occur on a local computer when another process changes the clipboard and then you hit Paste in SlickEdit, but I'm not sure about that.

JeffB

  • Senior Community Member
  • Posts: 327
  • Hero Points: 14
Re: Cursor position inconsistent after paste
« Reply #4 on: July 15, 2011, 05:17:15 PM »
Thanks, chrisant.

You may be right.  I use rdesktop (to WinXp) nearly all the time.  I was able to reproduce the problem again when I saw your post, although when I closed rdesktop and all my vs windows to try to do it from scratch, the problem went away.  I then re-opened 2 vs windows and rdesktop and cannot get it to happen again.

Jeff