The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Case insensitive search in overview

Changes made to libbirdfont/OverView.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OverView.vala +++ libbirdfont/OverView.vala @@ -214,7 +214,13 @@ listener.signal_submit.connect (() => { OverView o = MainWindow.get_overview (); - GlyphRange r = CharDatabase.search (o.search_query); + string q = o.search_query; + + if (q.char_count () > 1) { + q = q.down (); + } + + GlyphRange r = CharDatabase.search (q); o.set_current_glyph_range (r); TabContent.hide_text_input (); MainWindow.get_tab_bar ().select_tab_name ("Overview");