GNOME Bugzilla – Bug 737750
The searching by # and * work incorrectly
Last modified: 2014-10-07 11:07:17 UTC
Created attachment 287544 [details] Builder - incorrectly searching Put the cursor under ->|priv (before priv), and than hit # (or *). It will move to more priv, and than to part of FooBarPrivate. at the next one you hit # it will find for FooBarPrivate instead of only priv. To make sense, I attached a screencast.
So this is half way fixed now by fixing word boundaries to look more like VIM. The next step is to make the gtksourcesearchcontext only match whole words.
Created attachment 287883 [details] [review] vim: make search with * and # match closer to VIM. * wrap-around: allows us to jump to the end of the buffer when we reach the top. (and vice-versa) * case-sensitive: makes priv not match FooPrivate * word-boundaries: forces us to find whole words that match
Fixed in master. Attachment 287883 [details] pushed as d8f9ac0 - vim: make search with * and # match closer to VIM.
(In reply to comment #3) > Fixed in master. > > Attachment 287883 [details] pushed as d8f9ac0 - vim: make search with * and # match > closer to VIM. There's still a very noticeable difference though, given that gtksourceview's search uses pango word boundaries rather than vim words ...