Page 1 of 1

Select text from wrapped line

Posted: Mon Jan 05, 2004 1:24 pm
by Glg11
Hi Textpad users, programmers.

with the actual version of textpad (4.7.2) I have following problem:
I can't mark any words in a wrapped text line (with mouse and keyboard too), if the line begins with spaces. You can try this:

Fill a large line with spaces until the right border of the window, then enter any text which will be wrapped into the next line (which has the same line number). Then try to select the words at the end of the line. It doesn't work.
It looks like

Code: Select all

+--------------------+
|1 abc               |
|2                   |
|3 ..................|
|  ..def             |
|4 ghi               |
+--------------------+
the word "def" behind the spaces "..." cannot be selected.

Is this a known bug? Is there a workaround available?

Thanks for your help.

Heiko

Posted: Mon Jan 05, 2004 1:38 pm
by MudGuard
What are your settings in your document class for

Maintain indentation
Wordwrap long lines

any other setting that might have an influence and which I don't remember right now...

I can't reproduce the problem.

Posted: Mon Jan 05, 2004 1:39 pm
by s_reynisson
Just to confirm that I get the same result. Also this as I type, where ... =
space, only one line of text:

Code: Select all

1 .................................
                                  a
                                  s
                                  d
                                  f
                                  g
                                  h
                                  j
Edit: my settings under Preferences:
* View: Horizontal scroll bar: Yes
* Document Classes -> Default
Maintain indentation: Yes
Automatically indent blocks: No
Word wrap long lines: Yes
Word wrapped text: Save with no breaks in lines
Word break at column number: No - 70
* Configure -> Word Wrap: Yes
TP 4.7.2, Windows XP Pro, SP1.

Posted: Mon Jan 05, 2004 3:57 pm
by Glg11
MudGuard wrote:What are your settings in your document class for

Maintain indentation
Wordwrap long lines

any other setting that might have an influence and which I don't remember right now...
Hi MudGuard - oder lieber auf deutsch: Hallo MudGuard! :-)

here my settings in menue "Preferences":
* View:
Horizontal scroll bar: Yes
* Document Classes -> Default
Maintain indentation: Yes
Automatically indent blocks: Yes
Word wrap long lines: Yes
Word wrapped text: Save with no breaks in lines
Word break at column number: No - 70

Do you need more info?

Heiko

Posted: Mon Jan 05, 2004 9:49 pm
by MudGuard
Just configured my Textpad (temporarily) the same way and still could not reproduce your problem...

Posted: Mon Jan 05, 2004 11:20 pm
by Bob Hansen
I duplicated the sample but cannot duplicate the problem. No problem in selecting "def", doing copy/paste to another location, etc.

Version 4.7.2, Win98SE, Configuration per your messages.

Posted: Tue Jan 06, 2004 1:11 am
by mo
If i insert a line of spaces I come to the end of the line and the cursor just stops there. If I then type in some characters, those word wrap, but the currsor remains at the right hand margin.
Going to another line, I do not have a cursor unless I click with the mouse. I am unable to select in the initial line that began with spaces. Exception: I can select the line (not individual words) going backwards from a good line.


w2kprosp4

Posted: Tue Jan 06, 2004 1:33 am
by Bob Hansen
Hi mo....

That sounds similar to what I saw at first. But then I changed a setting per his configuration: Automatically indent blocks: Yes . Only then could I duplicate his example.

Posted: Tue Jan 06, 2004 2:22 pm
by mo
I think there is something in this related to odd TextPad crashes without warning and the business of extra stuff at the end of lines. TextPad is adding an extra line or new line at the end of selected text.

try this:

Open a new blank page.

type in:

<p>"Line of text here."</p>

Select and Copy all this from the start of the first word to the period at the end: I think there is something in this related to odd TextPad crashes without warning and the business of extra stuff at the end of lines.

Then Select the copy between the quotation marks in the taged paragraph:
(that is: just: Line of text here.)

Then Paste in the copied text.

What I get looks like this (numbers are line numbers):

1 <p>"Line of text here."</p>
2
3 Select and Copy all this from the start of the first word to the period at the end: I think there is something in this related to odd TextPad crashes without warning and the business of extra stuff at the end of lines.
4
5<p>"Select and Copy all this from the start of the first word to the period at the end: I think there is something in this related to odd TextPad crashes without warning and the business of extra stuff at the end of lines.
6"</p>


Maybe I'm just doing something wrong, in which case I would love to be told what that is because this is annoying.

W2KProSp4
Settings:
Maintain indentation.
Word-wrap long lines.
Save with no break in lines.
Strip trailing spaces in lines when saving.

Posted: Fri Jan 09, 2004 6:48 pm
by s_reynisson
Just adding my latest find on here, fwiw, it could be related.
I was working with a long line, 4707 bytes, ran a regular expression
that selected the first 4701 bytes, replaced with nothing.
The last six bytes did not shift to the left, in fact the line looked empty and
TP reported the cursor at line 1 column 1 which it was not, I could not
see it anywhere. Pressed end and the last six bytes became visible with
cursor at the end of the line.

Just for fun I put word wrap on and started again, the above did not
happen, ie. the last six bytes just shifted left.