Logo Search packages:      
Sourcecode: ibus-table version File versions  Download package

def table::editor::remove_before_string (   self  ) 

Remove string before cursor

Definition at line 238 of file table.py.

00238                                    :
        '''Remove string before cursor'''
        if self._cursor[1] != 0:
            self.split_phrase()
        if self._cursor[0] > 0:
            self._strings.pop(self._cursor[0]-1)
            self._cursor[0] -= 1
        else:
            pass
        # if we remove all characters in preedit string, we need to clear the self._t_chars
        if self._cursor == [0,0]:
            self._t_chars =[]
    
    def remove_after_string (self):


Generated by  Doxygen 1.6.0   Back to index