Commits

Anonymous committed 2087d15

fix for Sublime Text 3

Comments (0)

Files changed (1)

 			# replace leading space by tabs if the format of the file is using tabs
 			if(use_tabs):
 				idx = s_line.index(s_line.lstrip()[0])
-				s_line = s_line.replace(tabspc, "\t", idx / tabsize)
+				s_line = s_line.replace(tabspc, "\t", int(idx / tabsize))
 			if(pos_end_line_prev!=pos_start_line):
 				pos_end_line_prev = pos_start_line + len(s_line)
 				row=row+1