From 43fa1dc529e1445863185f07823e69b25c177df6 Mon Sep 17 00:00:00 2001 From: n loewen Date: Sat, 7 Jun 2025 23:32:49 +0100 Subject: [PATCH] fix: Left-align commit message in status bar instead of centering --- gtm2.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtm2.py b/gtm2.py index 7fd516b..039909c 100755 --- a/gtm2.py +++ b/gtm2.py @@ -405,15 +405,14 @@ def draw_status_bars(stdscr, state): except curses.error: pass - # Add commit message centered in the commit message bar + # Add commit message in the commit message bar if commit_message: max_msg_width = state.width - 4 # Leave a small margin if len(commit_message) > max_msg_width: commit_message = commit_message[:max_msg_width-3] + "..." - msg_x = (state.width - len(commit_message)) // 2 try: - stdscr.addstr(state.height - 1, msg_x, commit_message, status_attr) + stdscr.addstr(state.height - 1, 0, commit_message, status_attr) except curses.error: pass