Skip to content

Commit 295f3a8

Browse files
Renamed repl.vi_start_in_nav_mode to repl.vi_start_in_navigation_mode.
1 parent 30d72ec commit 295f3a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/ptpython_config/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def configure(repl):
120120
repl.enable_syntax_highlighting = True
121121

122122
# Get into Vi navigation mode at startup
123-
repl.vi_start_in_nav_mode = False
123+
repl.vi_start_in_navigation_mode = False
124124

125125
# Preserve last used Vi input mode between main loop iterations
126126
repl.vi_keep_last_used_mode = False

ptpython/python_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def __init__(
301301
self._get_signatures_thread_running: bool = False
302302

303303
# Get into Vi navigation mode at startup
304-
self.vi_start_in_nav_mode: bool = False
304+
self.vi_start_in_navigation_mode: bool = False
305305

306306
# Preserve last used Vi input mode between main loop iterations
307307
self.vi_keep_last_used_mode: bool = False

ptpython/repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def pre_run(
9090
if self.vi_keep_last_used_mode:
9191
self.app.vi_state.input_mode = last_input_mode
9292

93-
if not self.vi_keep_last_used_mode and self.vi_start_in_nav_mode:
93+
if not self.vi_keep_last_used_mode and self.vi_start_in_navigation_mode:
9494
self.app.vi_state.input_mode = InputMode.NAVIGATION
9595

9696
# Run the UI.
@@ -378,7 +378,7 @@ def get_locals():
378378
configure(repl)
379379

380380
# Set Vi input mode
381-
if repl.vi_start_in_nav_mode:
381+
if repl.vi_start_in_navigation_mode:
382382
repl.app.vi_state.input_mode = InputMode.NAVIGATION
383383

384384
# Start repl.

0 commit comments

Comments
 (0)