bool find_del = true, bool onlysel = false)
{
for (; cur; cur.forwardChar()) {
- if (onlysel && endcur.pit() == cur.pit()
+ if (onlysel && cur.inTexted() && endcur.pit() == cur.pit()
&& endcur.idx() == cur.idx() && endcur.pos() < cur.pos())
break;
if (cur.inTexted()) {
{
while (cur) {
cur.backwardChar();
- if (onlysel && endcur.pit() == cur.pit()
+ if (onlysel && cur.inTexted() && endcur.pit() == cur.pit()
&& endcur.idx() == cur.idx() && endcur.pos() > cur.pos())
break;
if (cur.inTexted()) {
* USER INTERFACE
+- Fix crash when attempting to search in selection that contains only math.
+
- Fix bug where the dialog asking for saving unapplied changes on buffer change
popped up twice, or sometimes not at all (bug 12954).
* BUILD/INSTALLATION
- Fix 'make install' target for autotools builds with autoconf >= 2.72.
+