This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import sublime | |
import sublime_plugin | |
class MinimapSetting(sublime_plugin.EventListener): | |
def on_activated(self, view): | |
show_minimap = view.settings().get('show_minimap') | |
if show_minimap: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import subprocess | |
# Unix, Windows and old Macintosh end-of-line | |
newlines = ['\n', '\r\n', '\r'] | |
def unbuffered(proc, stream='stdout'): | |
stream = getattr(proc, stream) | |
with contextlib.closing(stream): | |
while True: | |
out = [] |