From 6e06ed1a430f558e17638286e7c9cc2b2acb1eee Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Thu, 14 Aug 2025 16:29:07 -0400 Subject: [PATCH] Reformat status line with row,col at end --- builtin_apps/editor/adafruit_editor/editor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builtin_apps/editor/adafruit_editor/editor.py b/builtin_apps/editor/adafruit_editor/editor.py index 03668dd..ee0159c 100644 --- a/builtin_apps/editor/adafruit_editor/editor.py +++ b/builtin_apps/editor/adafruit_editor/editor.py @@ -300,9 +300,11 @@ def editor(stdscr, filename, mouse=None, terminal_tilegrid=None): # pylint: dis not absolute_filepath.startswith("/sd/") and util.readonly()): - line = f"{cursor.row+1},{cursor.col+1} {absolute_filepath:12} (mnt RO ^W)|^R Run|^O Open|^F Find|^G GoTo|^C quit{gc_mem_free_hint()}" + line = f"{absolute_filepath:12} (mnt RO ^W) | ^R Run | ^O Open | ^F Find | ^G GoTo|^C quit {gc_mem_free_hint()}" else: - line = f"{cursor.row+1},{cursor.col+1} {absolute_filepath:12} (mnt RW ^W)|^R Run|^O Open|^F Find|^G GoTo|^S Save|^X save & eXit|^C quit{gc_mem_free_hint()}" + line = f"{absolute_filepath:12} (mnt RW ^W) | ^R Run | ^O Open | ^F Find | ^G GoTo | ^S Save|^X save & eXit | ^C quit {gc_mem_free_hint()}" + line = line + " " * (window.n_cols - len(line)) + line = line[:window.n_cols-len(f'{cursor.row+1},{cursor.col+1}')] + f"{cursor.row+1},{cursor.col+1}" elif user_message is not None: line = user_message