Bug when copying and then immediately pasting a relative url

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Bug when copying and then immediately pasting a relative url

Post by jeffy »

I've encountered a mysterious bug related to copy-paste. Please consider trying this, to confirm it happens for you, too.

Download the HTML-source for this webpage (view the page, then right-click to view the source):

http://jeffyepstein.com/posts/textpad/index.html

Save the file on your desktop as index.html (just to exactly duplicate what I'm doing).

Open the file in TextPad, and go to line 34.

Entirely select the url on that line:

../../textpad__tpkc/non_bootstrap_utils/z_phrase_creator_ddmenus/textpad__prefs_tpkc__pcddmenu.txt

Now copy and then immediately paste it (don't move the cursor, replace it with itself). I'm getting a "TextPad encountered an illegal argument" dialog, and the text on that line becomes somewhat garbled.

Dismiss the error, undo and it restores okay.

Redo, and you get the error again.

Now copy it again, press the right-arrow to move after the copied text, and then paste it. It works.

This also happens with the url on line 36.

Is this happening for you, too? Thanks for checking.

---

(Should I be reporting this stuff directly to support? Or is this topic--and the other recent bug-topics--I've posted enough?)
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

I followed your instructions (except saving to desktop, I saved to c:\temp - the desktop is no place for my files ...).

I copied the URL (on line 33, not 34). I pasted the url.
The only two things that happened were the appearance of the asterisk in the title bar, marking the file as unsaved and the unmarking the url, as it is no longer selected.

Same for the URL on line 35 (not 36).


Question: in which document class does the file get classified?
Any strange settings for that class?
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I also can't reproduce this. Sorry. :-)

Windows 7 SP1 64-bit.
TextPad 7.0.9.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

I restarted, un-installed and then re-installed 7.0.9, and it's still happening. Windows 7. Take a look:

http://youtu.be/yMIvu6k50lQ

:(
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Ah - your picture shows an important detail:
you have word-wrap activated.

I can reproduce the behaviour, but only if word-wrap is active AND the url is wrapped.

Even with word-wrap active the error does not appear if the url is still in one line.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

Glad I recorded it!

So: Is this post enough, or should I directly report this?
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

I've encountered this bug again, with different text, again only with word-wrap on, and only in a JavaDoc block in a *.java file.

Try this. I've eliminated everything but the problem line.

http://jeffyepstein.com/posts/textpad/N ... tUtil.java

Select the parameters (open through close parens) then delete or cut or backspace.

It does NOT occur if I rename the file to .txt, or .html, if the surrounding "/**" and "**/" are deleted.

It does still occur when the "[]" is deleted.
User avatar
bbadmin
Site Admin
Posts: 1020
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

We can reproduce this behaviour, so it will be fixed in the next release.

Thanks for reporting it.
Post Reply