Nicholas Dudfield  committed e962b6f

windows warning

  • Participants
  • Parent commits fdc28b5
  • Branches default

Comments (0)

Files changed (2)

+(Currently Windows Only)
 "Automatic Backups" is a plugin by Steve Cooper.
 When you edit text files (scripts, prose, whatever) you often find yourself


 WINMERGE = '"D:\portable_sync\PortableApps\WinMergePortable\WinMergePortable.exe"'
 KEY      = "AutoBackups"
-class StateManager(sublime_plugin.EventListener):
+class NavigateBackupsStateManager(sublime_plugin.EventListener):
     def on_close(self, view):
     def is_enabled(self, **args):
         return self.view.file_name()
-class AutomaticBackupsPlugin(sublime_plugin.EventListener):
+class AutomaticBackups(sublime_plugin.EventListener):
     """Creates an automatic backup of every file you save. This
     gives you a rudimentary mechanism for making sure you don't lose
     information while working."""
       if backup_dir == None:
-      filepart, extensionpart = os.path.splitext(os.path.split(buffer_file_name)[1])
-      newname = os.path.join(backup_dir, filepart + "-0000-00-00-00-00-00" + extensionpart)
+      filepart, extensionpart = os.path.splitext (
+                                            os.path.split(buffer_file_name)[1])
+      newname = os.path.join( backup_dir, 
+                              filepart + "-0000-00-00-00-00-00" + extensionpart)
       if os.path.isfile(newname):
         # Backup of original file already exists