HippoEDIT homepage Welcome, Guest. Please login or register.
September 10, 2010, 09:24:35 pm
Home Help Search Login Register

+  HippoEDIT - Programmers text editor
|-+  General Category
| |-+  Bug reports
| | |-+  Solved (Moderators: alex, Stefan)
| | | |-+  Ctrl-D would not duplicate the first line in file
« previous next »
Pages: [1] Print
Author Topic: Ctrl-D would not duplicate the first line in file  (Read 488 times)
Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« on: August 04, 2009, 09: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.
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1336



View Profile WWW
« Reply #1 on: August 06, 2009, 01: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.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #2 on: August 06, 2009, 03: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.


* Before Ctrl-D.png (1.83 KB, 404x56 - viewed 38 times.)

* After Ctrl-D.png (2.62 KB, 413x91 - viewed 44 times.)

* Expected.png (2.52 KB, 405x72 - viewed 51 times.)
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1336



View Profile WWW
« Reply #3 on: August 06, 2009, 04: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.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #4 on: August 06, 2009, 04:51:42 pm »

The latest I just taken: 1.45.700 on WinXP SP3
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1336



View Profile WWW
« Reply #5 on: August 06, 2009, 05: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.
Logged

Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #6 on: August 06, 2009, 06: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.
Logged
Arthur
Hero Member
*****

Karma: +1/-0
Offline Offline

Gender: Male
Posts: 600


He who is ashamed of asking is afraid of learning.


View Profile WWW
« Reply #7 on: August 06, 2009, 06: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.
Logged
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1336



View Profile WWW
« Reply #8 on: August 07, 2009, 01: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.
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC