Select text from wrapped line

General questions about using TextPad

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

Post Reply
Glg11
Posts: 5
Joined: Mon Jan 05, 2004 1:01 pm

Select text from wrapped line

Post 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
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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.
Last edited by s_reynisson on Mon Jan 05, 2004 11:44 pm, edited 1 time in total.
Then I open up and see
the person fumbling here is me
a different way to be
Glg11
Posts: 5
Joined: Mon Jan 05, 2004 1:01 pm

Post 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
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Just configured my Textpad (temporarily) the same way and still could not reproduce your problem...
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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
Best Wishes!
Mike Olds
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
mo
Posts: 306
Joined: Tue Mar 11, 2003 1:40 am

Post 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.
Best Wishes!
Mike Olds
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post 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.
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply