(self, edit, fileslist)
apply changes to view
apply changes to view
apply changes to view
def write(self, edit, fileslist):
        '''apply changes to view'''
        self.view.set_read_only(False)
        self.view.erase(edit, Region(0, self.view.size()))
        self.view.insert(edit, 0, '\n'.join(fileslist))
        self.view.set_read_only(True)

        fileregion = self.fileregion()
        count = len(self.view.lines(fileregion)) if fileregion else 0
        self.view.settings().set('dired_count', count)
        self.view.settings().set('dired_index', self.index)
def write ( self , edit , fileslist ) : self . view . set_read_only ( False ) self . view . erase ( edit , Region ( 0 , self . view . size ( ) ) ) self . view . insert ( edit , 0 , '\n' . join ( fileslist ) ) self . view . set_read_only ( True ) fileregion = self . fileregion ( ) count = len ( self . view . lines ( fileregion ) ) if fileregion else 0 self . view . settings ( ) . set ( 'dired_count' , count ) self . view . settings ( ) . set ( 'dired_index' , self . index )