X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=1c66f9885fe8e5058a0ef0ae20e40ec3d83e1013;hb=d605500ca2f4bf02968d963bd64e8d3ad05acbd1;hp=3212d85b1691a0082670f8dba996f1adc24193fe;hpb=9f032a71201e6ad964e46a2a06c4003503b7dd54;p=libs%2Fgltk.git diff --git a/source/entry.cpp b/source/entry.cpp index 3212d85..1c66f98 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -407,7 +407,7 @@ void Entry::adjust_edit_position_for_change(unsigned pos, int change) { if(edit_pos>=pos) edit_pos -= min(edit_pos-pos, -change); - if(selection_active) + if(selection_active && selection_pos>=pos) selection_pos -= min(selection_pos-pos, -change); }