// FIXME: Mutability bugs. multiple Links on the same line // aren't getting renamed. public bool MoveNext() { Gtk.TextIter iter = buffer.GetIterAtMark(mark); if (iter.Equal(buffer.EndIter)) { range.Destroy(); buffer.DeleteMark(mark); return(false); } if (!iter.ForwardToTagToggle(tag)) { range.Destroy(); buffer.DeleteMark(mark); return(false); } if (!iter.BeginsTag(tag)) { buffer.MoveMark(mark, iter); return(MoveNext()); } range.Start = iter; if (!iter.ForwardToTagToggle(tag)) { range.Destroy(); buffer.DeleteMark(mark); return(false); } if (!iter.EndsTag(tag)) { buffer.MoveMark(mark, iter); return(MoveNext()); } range.End = iter; buffer.MoveMark(mark, iter); return(true); }