#581656 gedit: cursor placement ignores character directly before line wrap with certain character combinations

Package:
gedit
Source:
gedit
Description:
popular text editor for the GNOME desktop environment
Submitter:
Zach Wheeler
Date:
2025-08-17 17:47:31 UTC
Severity:
normal
Tags:
#581656#5
Date:
2010-05-14 18:08:21 UTC
From:
To:
Example (pipe indicates cursor placement):
A (no wrap):
1   sample text. sample text.(sample text)
<note absence of space between '.' and '('>
B (wrap at column 26):
1   sample text. sample text|.
    (sample text)
<press right arrow key and...>
C: (wrap at column 26 #2)
1   sample text. sample text.
    |(sample text)
<note how cursor skips over period>

pressing left arrow key at C results in B again.

This is not just graphical; typing will insert text at cursor location.

To reproduce:
Type text long enough to wrap. Ensure that it wraps either directly before a
'(', '[', '{', '\', '+', or '$' character and immediately after a non-
whitespace character, or directly before a non-whitespace character and
immediately after a '!', '%', ')', ']', '}', '|', '/', '-', or '?' character (I
did some testing myself to try to isolate the character combinations that
caused this effect). Try using the arrow keys (or the mouse) to place the
cursor directly before where the line wraps.

#581656#10
Date:
2010-05-14 18:38:37 UTC
From:
To:
I'm not sure why this got tagged 'sid'; I intended for it to have no
tags. Sorry, I'm new.

Zach