Skip to content

Commit e739be2

Browse files
committed
Remove latextools_do_finish_edit command
Maybe an obsolete hack to scroll output view to the top after build finished.
1 parent 6b81a37 commit e739be2

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

latextools/make_pdf.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
__all__ = [
4242
"LatextoolsMakePdfCommand",
43-
"LatextoolsDoFinishEditCommand",
4443
"LatextoolsExecEventListener",
4544
]
4645

@@ -576,8 +575,6 @@ def finish(self, can_switch_to_pdf):
576575
sublime.set_timeout(functools.partial(self.do_finish, can_switch_to_pdf), 0)
577576

578577
def do_finish(self, can_switch_to_pdf):
579-
self.output_view.run_command("latextools_do_finish_edit")
580-
581578
if self.show_errors_inline:
582579
self.create_errs_by_file()
583580
self.update_annotations()
@@ -703,14 +700,6 @@ def hide_annotations(self):
703700
self.show_errors_inline = False
704701

705702

706-
class LatextoolsDoFinishEditCommand(sublime_plugin.TextCommand):
707-
def run(self, edit):
708-
self.view.sel().clear()
709-
reg = sublime.Region(0)
710-
self.view.sel().add(reg)
711-
self.view.show(reg)
712-
713-
714703
class LatextoolsExecEventListener(sublime_plugin.EventListener):
715704
def on_load(self, view):
716705
# assign latex log syntax based on view's first line

plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
)
9090
from .latextools.make_pdf import (
9191
LatextoolsMakePdfCommand,
92-
LatextoolsDoFinishEditCommand,
9392
LatextoolsExecEventListener,
9493
)
9594
from .latextools.migrate import (

0 commit comments

Comments
 (0)