Skip to content

Commit

Permalink
refactor: rename "width_converter" into "char_width_converter"
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Oct 3, 2020
1 parent d72812c commit e832adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ace_jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from typing import Any, Dict, List, Union, cast

from .libs import width_converter
from .libs import char_width_converter
from .libs.xpinyin import Pinyin

PACKAGE_NAME = __package__.partition(".")[0]
Expand Down Expand Up @@ -533,7 +533,7 @@ def add_labels(self, edit: sublime.Edit, regions: List[sublime.Region], labels:
# if the target char is Chinese,
# use full-width label to prevent from content position shifting
if CHINESE_REGEX_OBJ.match(self.view.substr(region)):
label = width_converter.h2f(label)
label = char_width_converter.h2f(label)

self.view.replace(edit, region, label)
elif self.hinting_mode == HINTING_MODE_INLINE_PHANTOM:
Expand Down
File renamed without changes.

0 comments on commit e832adf

Please sign in to comment.