We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bab6479 commit fdfe754Copy full SHA for fdfe754
1 file changed
meld/filediff.py
@@ -1698,9 +1698,10 @@ def on_revert_activate(self, *extra):
1698
dialog.widget.destroy()
1699
1700
if response == Gtk.ResponseType.OK:
1701
- gfiles = [b.data.gfile for b in self.textbuffer[:self.num_panes]]
1702
- # TODO: Make sure to reuse file encodings if present
1703
- self.set_files(gfiles)
+ buffers = self.textbuffer[:self.num_panes]
+ gfiles = [b.data.gfile for b in buffers]
+ encodings = [b.data.encoding for b in buffers]
1704
+ self.set_files(gfiles, encodings=encodings)
1705
1706
def on_refresh_activate(self, *extra):
1707
self.refresh_comparison()
0 commit comments