mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
158 stars 66 forks source link

Can't find rows starting by space using `^ ` regular expression #633

Open N0rbert opened 3 years ago

N0rbert commented 3 years ago

Expected behaviour

Pluma finds rows which start with a space.

Actual behaviour

Pluma can't find rows which start with a space.

Steps to reproduce the behaviour

  1. Create simple test document by using command below echo -e "\t1tab\t1tab\n 2space 2space" > /tmp/file
  2. Open this file in Pluma by pluma /tmp/file
  3. Press <Ctrl>+<F>, check Match regular expression and Parse escape sequences (e.g. \n), put ^ in search for
  4. Click find

pluma

MATE general version

1.24.1

Package version

1.24.2-0ubuntu1

Linux Distribution

Ubuntu MATE 21.04

Link to bugreport of your Distribution (requirement)

https://bugs.launchpad.net/ubuntu/+source/pluma/+bug/1934573

mbkma commented 2 years ago

thanks for reporting! I even got a crash when I tried this out:

(pluma:157034): Gtk-WARNING **: 23:21:56.901: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators

(pluma:157034): Gtk-WARNING **: 23:21:56.901: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created.
You must use marks, character numbers, or line numbers to preserve a position across buffer modifications.
You can apply tags and insert marks without invalidating your iterators,
but any mutation that affects 'indexable' buffer contents (contents that can be referred to by character offset)
will invalidate all outstanding iterators
Segmentation fault (core dumped)
rbuj commented 2 years ago

641 may the issue

mbkma commented 2 years ago

no, for me it still crashes with #641 applied