File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,12 @@ def about():
468468
WINDOW_MENU.Update(show_status_menu_layout)
469469
STATUS_BAR_SWITCH = True
470470

471-
Column += 1
471+
# Update the line and column values in the statusbar
472+
# with every character / escape sequences keyed-in.
473+
if EVENT == '-BODY-':
474+
Line, Column = WINDOW['-BODY-'].Widget.index('insert').split('.')
475+
WINDOW['status_bar'].update(f'| Ln {Line}, Col {Column}')
476+
472477
# record the text after each event to ensure the
473478
# file/text is saved.
474479
try:

0 commit comments

Comments
 (0)