diff --git a/gtm b/gtm index a15fd21..6aa7bd3 100755 --- a/gtm +++ b/gtm @@ -1473,7 +1473,7 @@ def main(stdscr, filename, show_add, show_del, mouse=True, show_diff=True, wrap_ state = AppState( filename=filename, width=width, height=height, show_additions=show_add, - show_deletions=show_del, enable_mouse=mouse, + show_deletions=show_del, enable_mouse=True, # Always enable mouse by default commits=get_commits(filename), wrap_lines=wrap_lines, show_line_numbers=show_line_numbers @@ -1565,6 +1565,6 @@ if __name__ == "__main__": print(f" git commit -m 'Add {os.path.basename(filename)}'") sys.exit(1) - # Ensure mouse is enabled by default, only disable if --no-mouse is explicitly set - mouse_enabled = not args.no_mouse + # Always enable mouse by default, only disable if --no-mouse is explicitly set + mouse_enabled = True if not args.no_mouse else False curses.wrapper(main, filename, args.diff, args.diff_additions, args.diff_deletions, mouse_enabled, not args.no_wrap, args.line_numbers)