Page 1 of 1

Bug when copying and then immediately pasting a relative url

Posted: Thu Aug 29, 2013 5:37 pm
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?)

Posted: Thu Aug 29, 2013 6:37 pm
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?

Posted: Thu Aug 29, 2013 6:43 pm
by ben_josephs
I also can't reproduce this. Sorry. :-)

Windows 7 SP1 64-bit.
TextPad 7.0.9.

Posted: Sat Aug 31, 2013 2:36 pm
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

:(

Posted: Sat Aug 31, 2013 6:13 pm
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.

Posted: Sat Aug 31, 2013 9:15 pm
by jeffy
Glad I recorded it!

So: Is this post enough, or should I directly report this?

Posted: Wed Oct 30, 2013 3:50 pm
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.

Posted: Thu Oct 31, 2013 5:05 pm
by bbadmin
We can reproduce this behaviour, so it will be fixed in the next release.

Thanks for reporting it.