Skip to content

Commit 9ee2a80

Browse files
committed
fix: syntax error for python3.8
1 parent fb8a444 commit 9ee2a80

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

easymotion.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ def setup_logging():
189189
logging.basicConfig(
190190
filename=log_file,
191191
level=logging.DEBUG,
192-
format=f'%(asctime)s - %(levelname)s - {
193-
"CURSE" if USE_CURSES else "ANSI"} - %(message)s'
192+
format=f'%(asctime)s - %(levelname)s - {"CURSE" if USE_CURSES else "ANSI"} - %(message)s'
194193
)
195194

196195

@@ -565,8 +564,7 @@ def find_matches(panes, search_ch):
565564
def update_hints_display(screen, positions, current_key):
566565
"""Update hint display based on current key sequence"""
567566
for screen_y, screen_x, pane_right_edge, char, next_char, hint in positions:
568-
logging.debug(f'{screen_x} {pane_right_edge} {
569-
char} {next_char} {hint}')
567+
logging.debug(f'{screen_x} {pane_right_edge} {char} {next_char} {hint}')
570568
if hint.startswith(current_key):
571569
next_x = screen_x + get_char_width(char)
572570
if next_x < pane_right_edge:
@@ -640,8 +638,7 @@ def main(screen: Screen):
640638
current_pane = next(p for p in panes if p.active)
641639
cursor_y = current_pane.start_y + current_pane.cursor_y
642640
cursor_x = current_pane.start_x + current_pane.cursor_x
643-
logging.debug(f"Cursor position: {current_pane.pane_id}, {
644-
cursor_y}, {cursor_x}")
641+
logging.debug(f"Cursor position: {current_pane.pane_id}, {cursor_y}, {cursor_x}")
645642

646643
# Replace HintTree with direct hint assignment
647644
hint_mapping = assign_hints_by_distance(matches, cursor_y, cursor_x)

0 commit comments

Comments
 (0)