Author Topic: Ctrl-D would not duplicate the first line in file  (Read 2667 times)

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Ctrl-D would not duplicate the first line in file
« on: August 04, 2009, 10:55:56 PM »
If you would highlight several lines and the selection begins at the first line the Ctrl-D command would not capture the very first line of text.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2214
  • Karma: +37/-3
    • HippoEDIT
Re: Ctrl-D would not duplicate the first line in file
« Reply #1 on: August 06, 2009, 02:50:54 PM »
Hi Arthur,

thanks for a bug report. Reproduced and fixed with 1.45.700, published today. History coming soon.

Best regards,
Alex.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Ctrl-D would not duplicate the first line in file
« Reply #2 on: August 06, 2009, 04:32:52 PM »
Thank you, but it does not work consistently as in case for lines below the top.

Pictures below explain.

Image "Expected" is how I thought the end result should look like.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2214
  • Karma: +37/-3
    • HippoEDIT
Re: Ctrl-D would not duplicate the first line in file
« Reply #3 on: August 06, 2009, 05:23:48 PM »
Hi Arthur,

which version you have used? (asking, because 700 I have uploaded does not run on my test machine)

Best regards,
Alex.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Ctrl-D would not duplicate the first line in file
« Reply #4 on: August 06, 2009, 05:51:42 PM »
The latest I just taken: 1.45.700 on WinXP SP3

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2214
  • Karma: +37/-3
    • HippoEDIT
Re: Ctrl-D would not duplicate the first line in file
« Reply #5 on: August 06, 2009, 06:25:43 PM »
Strange... For me this worked as you want, but only selection is set to new text but not original (this is designed like this)

Maybe you can paste here the text (I have retype it, but in any case paste here, maybe something was missing). And also tell me exact selection coordinates and where is cursor.

Thanks a lot.

Best regards,
Alex.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Ctrl-D would not duplicate the first line in file
« Reply #6 on: August 06, 2009, 07:38:17 PM »
I did Ctrl-A and copied the whole text:

Randomize
Wscript.Echo Int( ( 3394 - 1 + 1 ) * Rnd + 1 )

myString = "PRINCE GEORGE"
WScript.Echo LeftPad( myString, 3, "+" )
WScript.Echo LeftPad( myString, 30, " " )
Function LeftPad( strText, intLen, chrPad )
    LeftPad = Left( strText & String( intLen, chrPad ), intLen )
End Function

From 2-47 (last char on the 2nd row) I highlighted it up to 1-1 and did the Ctrl-D

Yeah, besides, I expected HE to highlight only the newly added text, but it did the one in the middle.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • My Blog
Re: Ctrl-D would not duplicate the first line in file
« Reply #7 on: August 06, 2009, 07:42:18 PM »
Just to confirm your suspicion: it does not work as intended if you select that my way, but does if you will from 1-1 down, not wise-versa.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2214
  • Karma: +37/-3
    • HippoEDIT
Re: Ctrl-D would not duplicate the first line in file
« Reply #8 on: August 07, 2009, 02:29:50 PM »
Hi Arthur,

thanks for the detail description! I was able to reproduce the bug. Already fixed and probably would be uploaded today evening. Still fighting with installer (does not run on all machines).

Best regards,
Alex.