Reformat status line with row,col at end
This commit is contained in:
parent
4d38040567
commit
6e06ed1a43
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue