https://bugs.documentfoundation.org/show_bug.cgi?id=169477

--- Comment #4 from yarma22 <[email protected]> ---
Thanks Regina for confirming the bug(s)!

While reading through the description of the bug, I noticed this step under the
`Bug #2` section is not very clear

> 2. Now, click at the end of the line

What I meant is:
2. Now, click at the end of the first of these 2 lines (i.e. "explorer of the
truth, the master-")

Also, for clarity, I probably should've named the bug I reported in `Comment 2`
so it's easier to refer to each bug in the future. Especially since I have more
to come! Let's call it `Bug #5`. As for the main bug described in this bug
report, though it's implied, let's call it `Bug #1`.

I found another series of bugs today, similar to these hyphen-related bugs.
Only this time, it's with a URL whose members are automatically split over
several lines after the `/` (a.k.a. slash).

Interestingly, though these slash-related bugs are quite similar to the
hyphen-related bugs, their behavior is sometimes slightly different.

As a convenience, I attached a document with a URL that's split over 2 lines
("https://bugs.documentfoundation.org/"; and "show_bug.cgi?id=169477"—yes,
that's the very URL of this bug!). I'm referring to this document in the
following steps.

Interestingly, that series of bugs happens only with URLs. Indeed, as shown at
the bottom of this same document (the paragraph "Note: this bug only happens if
the/slash separates members of a URL, unlike in this very sentence."), notice
that "the/slash" is not split over 2 lines, even though there's technically
enough space to fit "the/" on the first line.

Bug #6
------
Note: It's the same as `Bug #1`, but with a URL.

1. Open the URL bug example document
2. Find the line "https://bugs.documentfoundation.org/";
3. Place the cursor on that line
4. Press the `End` key to move the cursor at the end of the line
5. Press the `Home` key

Actual Results:
The cursor is now at the beginning of the next line (i.e.
"show_bug.cgi?id=169477")

Expected Results:
The cursor should be at the beginning of the current line (i.e.
"https://bugs.documentfoundation.org/";), like it's normally the case when
pressing the `End` and `Home` keys consecutively

Additional Info:
Notice how pressing `End` will result in the cursor being placed _after_ the
slash. To the contrary, when clicking with the mouse at the end of the line,
the cursor automatically gets placed at the beginning of the next line.

Bug #7
------
Note: It's the same as `Bug #2`, but with a URL.

1. Select the 2 lines containing the URL (i.e.
"https://bugs.documentfoundation.org/"; and "show_bug.cgi?id=169477")
2. Now, click at the end of the first of these 2 lines (i.e.
"https://bugs.documentfoundation.org/";)

Notice how this time the cursor is placed after the slash, instead of on the
next line, contrary to the mouse click behavior.

Bug #8
------
Note: This one is a bit similar to `Bug #3`. However, following the `Bug #3`
procedure on a URL actually doesn't cause a bug. The procedure for this bug is
slightly different.

1. Select the 2 lines containing the URL (i.e.
"https://bugs.documentfoundation.org/"; and "show_bug.cgi?id=169477")
2. Now, click at the end of the first of these 2 lines (i.e.
"https://bugs.documentfoundation.org/";)
3. Press `Up` and notice the cursor moves on the line above the URL (i.e. "that
are extremely painful."), where we expect it to be
4. Press `Down` and notice the cursor moves to the beginning of the second line
of the URL (i.e. "show_bug.cgi?id=169477")
  - Note: though the cursor went down 2 lines, it ends up at the same place as
when clicking at the end of the first line of the URL, so let's consider this
is an expected behavior
5. Then press `Up` again

Notice the cursor remains on the same line. Normally, the cursor goes on the
previous line, above the last character of the line that was selected.

And it keeps getting worse:
6. Press `Up` a bunch more times and notice _the cursor still doesn't move_
7. Press `Down` a couple of times and notice the cursor moving to the next
lines (okay, but we're not out of trouble yet)
8. Press `Up` a couple of times until coming back to the line that starts with
the second part of the URL
9. Then press `Up` again

Notice the cursor won't go up, no matter how many times you press `Up`.

At this point, the only ways to get unstuck are the same as for `Bug #3`:
- Pressing `Right` then `Up`
- clicking with the mouse
- switching to another window (i.e. `Alt + Tab`) and then back to Writer

Note: There's a variant of this bug for steps #3 and #4, but since all the
other steps are the same, they can probably be packaged together. The modified
steps #3 and #4 go as follows:

3. Press `Down` and notice the cursor moves to the end of the second line of
the URL (i.e. "show_bug.cgi?id=169477"), where we expect it to be
4. Press `Up` and notice the cursor moves to the beginning of the second line
of the URL (i.e. "show_bug.cgi?id=169477"), instead of moving on the first line
of the URL

>From here, the behavior is the same.

Bug #8
------
Note: It's the same as `Bug #5`, but with a URL.

1. Open the URL bug example document
2. Find the line "https://bugs.documentfoundation.org/";
3. Place the cursor on that line
4. Press the `End` key to move the cursor at the end of the line
5. Press the `End` key once again

Actual Results:
The cursor is now at the end of the next line (i.e. "show_bug.cgi?id=169477")

Expected Results:
The cursor should be at the end of the current line (i.e.
""https://bugs.documentfoundation.org/"";), like it's normally the case when
pressing the `end` key twice in a row

Note
----
As of right now, I didn't manage to find a use-case to reproduce `Bug #4` with
a URL.

Note
----
I found another strange behavior which I also think is a bug. Notice how the
URL at the end of the document is split on 3 lines instead of 2 lines for the
URL used to describe the bugs above, even though these 2 URLs are the same. The
only difference is that the first one is inline with the text that precedes,
while the second one is on its own paragraph.
However, since this seems to be unrelated to the main bug reported here, I
created a separate bug report:
https://bugs.documentfoundation.org/show_bug.cgi?id=169565

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to