Selecting a block, do something, then undo.

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Selecting a block, do something, then undo.

Post by syrupcore »

When you select a block of code, do something to it (cut it or wrap it with tags) and then UNDO the action you just did, the selection is off. Hard to describe. Can some one else try it and see if that's happening.

The process:
1. Select a block of code.
2. Cut it
3. Undo the cut
4. Cut it again

5. There should be some code left over that was cut the first time around.

No big deal but it's a little weird.


Will
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Just to confirm - this occurs when the selection includes a blank line (ie, a carriage return and newline character) - each blank line throws the selection out by two characters.
ScotDiddle
Posts: 20
Joined: Fri Jun 17, 2005 4:33 pm
Location: Richmond VA, United States of America
Contact:

Selecting a block, do something, then undo.

Post by ScotDiddle »

Confirming the issue... and yes, it does not happen if there are no blank lines in the text that was cut... (Not a practical solution... :) )

Scot L. Diddle, Richmond VA
...No Digital... None of the Time...
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

cool, I'm not crazy. I played around a little more and came up with some other oddities with selections and undo/redo but I couldn't get most to reproduce.

Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Will see what an be done about this...
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

This one is still a problem for me, at times a code wrecking problem - killing a closing semicolon or cutting the end of a line by half the characters.

any news?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I need exact steps to reproduce (the best way would be a series of screen shots or a video) a case when some code is lost, otherwise we can not do anything about this.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Small example here:
http://www.creapsoft.co.uk/download?id=44ac4856

Some text highlighted, cut and then undone - the selection is different from the 'original' selection.

This doesn't occur if 'blank' lines are not selected, so it appears the characters from the blank line (carriage return and newline) is throwing it out somewhere.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Hi Karlis,

I can't seem to replicate the code snipping but it should be easy to see how this might happen. Likely it's this problem plus a half ounce of user error. :)

make a large selection that includes blank lines
cut it
undo
cut
undo
cut
undo
...
and you'll see the selection get smaller and smaller.

Thanks for looking into it.

Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yeah, something like this something does happen. We will look into this, but it is going to take a lot of time as the undo routines are so very complex.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: Selecting a block, do something, then undo.

Post by syrupcore »

a two year bump. Man I've been using the software for a while - I had no idea. :)

Is this still on the list?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Selecting a block, do something, then undo.

Post by Karlis »

Yes, it is. Unfortunately it is in the low priority list as it is very minor for most of us. The solution is ~4 weeks worth of programming and the benefit is rather small... this is why we have not fixed the undo yet. Complex third party code is not easy to update :(
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Boofo
Posts: 69
Joined: Mon Sep 15, 2008 6:15 pm
Location: Des Moines, Iowa (USA)
Contact:

Re: Selecting a block, do something, then undo.

Post by Boofo »

How do we move it up higher on the list? This is kindof serious, I think.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Re: Selecting a block, do something, then undo.

Post by syrupcore »

Karlis wrote:Yes, it is. Unfortunately it is in the low priority list as it is very minor for most of us. The solution is ~4 weeks worth of programming and the benefit is rather small... this is why we have not fixed the undo yet. Complex third party code is not easy to update :(
I totally understand. Thanks.

Will
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Selecting a block, do something, then undo.

Post by Karlis »

Boofo wrote:How do we move it up higher on the list? This is kindof serious, I think.
If enough separate requests from separate users are received, the item moves up. If it is an easy to implement item, it is done right away. Harder it is to do and less requests it causes, slower it moves up the list. For example, this problem has triggered 3 requests within last few years while PHP debugger improvements have been requested over 100 times, so naturally we did them first. Nothing is forgotten, however, everything is registered and sooner or later processed.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply