'Inserts a string at the end of every current selection
:param view:
the current view
:param edit:
the current edit
:param value:
the string to insert'

def insert_at_end(self, view, edit, value):

    if value:
        new_regions = []
        for sel in view.sel():
            view.insert(edit, sel.end(), value)
            if sel.empty():
                new_start = new_end = (sel.end() + len(value))
            else:
                new_start = sel.begin()
                new_end = (sel.end() + len(value))
            new_regions.append(getRegion(new_start, new_end))
        self.update_selections(view, new_regions)
