Pike v8.1 release 6

Method GTK2.TextBuffer()->select_range()


Method select_range

GTK2.TextBuffer select_range(GTK2.TextIter ins, GTK2.TextIter bound)

Description

This function removes the "insert" and "selection_bound" marks simultaneously. If you move them in two steps with move_mark(), you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized.