File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,10 @@ def run(self, edit):
55
55
max_author_len = max (len (b ["author" ]) for b in blames )
56
56
for blame in blames :
57
57
line_number = int (blame ["line_number" ])
58
- line_point = self .get_line_point (line_number - 1 )
59
-
60
58
author = blame ["author" ]
61
59
62
60
phantom = sublime .Phantom (
63
- line_point ,
61
+ self . phantom_region ( line_number ) ,
64
62
blame_all_phantom_html_template .format (
65
63
css = blame_all_phantom_css ,
66
64
sha = blame ["sha" ],
@@ -93,9 +91,9 @@ def handle_phantom_button(self, href):
93
91
if href == "close" :
94
92
self .view .run_command ("blame_erase_all" )
95
93
96
- def get_line_point (self , line ):
97
- """Get the point of specified line in a view."""
98
- return self . view . line ( self . view . text_point ( line , 0 ) )
94
+ def phantom_region (self , line_number ):
95
+ line_begins_pt = self . view . text_point ( line_number - 1 , 0 )
96
+ return sublime . Region ( line_begins_pt )
99
97
100
98
def store_rulers (self ):
101
99
self .view .settings ().set (
You can’t perform that action at this time.
0 commit comments