Skip to content

Commit

Permalink
LZMA preliminary work and fix (joernhees#7) (#1)
Browse files Browse the repository at this point in the history
* LZMA test

- use of backports.lzma for sublime-text 2 (python 2.6)
- corrected header bytes
- handling of files that are smaller than the headers

* backports.lzma for all windows version

* corrected key

* Update dependencies.json

* test

* Update dependencies.json

* remove period in name

reflecting https://github.com/dvhh/package_control_channel/commit/6989ebf39ac119f5e6d7de4b6e73ac57782a91bf

* update used module for lzma

* fix for joernhees#6
For  call  in  rather than

* cleanup
  • Loading branch information
dvhh authored Jun 19, 2021
1 parent 1bb2eff commit 9171dc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ class OpenCompressedFile3(sublime_plugin.EventListener):
'''
Sublime Text Event for the compressor plugin
'''

if hasattr(sublime_plugin.EventListener, 'on_load_async'):
def on_load_async(self, view):
'''
Expand All @@ -251,3 +250,8 @@ def on_close(self, view):
remove(filepath)
# Should be empty by now
rmdir(dirname(filepath))


if sublime.version() >= '3000':
def plugin_loaded():
load_modules(COMPRESSION_MODULES)

0 comments on commit 9171dc9

Please sign in to comment.