enable sync scroll #8

This commit is contained in:
Mathieu PATUREL
2017-01-12 08:46:48 +11:00
parent 3b920f4336
commit 37703e9bab
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,6 @@ def show_html(md_view, preview):
lambda href: sublime.run_command('open_url', lambda href: sublime.run_command('open_url',
{'url': href})) {'url': href}))
return
# set viewport position # set viewport position
# 0 < y < 1 # 0 < y < 1
y = md_view.text_to_layout(md_view.sel()[0].begin())[1] / md_view.layout_extent()[1] y = md_view.text_to_layout(md_view.sel()[0].begin())[1] / md_view.layout_extent()[1]

View File

@ -12,4 +12,6 @@ if DEBUG:
> Only a fool knows everything. A wise man knows how little he knows > Only a fool knows everything. A wise man knows how little he knows
Hello world
The only think I know right now is that Boxy Theme's just awesome. The only think I know right now is that Boxy Theme's just awesome.