fix: Always enable mouse mode by default in gtm
This commit is contained in:
parent
985cf473cc
commit
9bf0c08fe7
6
gtm
6
gtm
|
|
@ -1473,7 +1473,7 @@ def main(stdscr, filename, show_add, show_del, mouse=True, show_diff=True, wrap_
|
||||||
state = AppState(
|
state = AppState(
|
||||||
filename=filename, width=width, height=height,
|
filename=filename, width=width, height=height,
|
||||||
show_additions=show_add,
|
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),
|
commits=get_commits(filename),
|
||||||
wrap_lines=wrap_lines,
|
wrap_lines=wrap_lines,
|
||||||
show_line_numbers=show_line_numbers
|
show_line_numbers=show_line_numbers
|
||||||
|
|
@ -1565,6 +1565,6 @@ if __name__ == "__main__":
|
||||||
print(f" git commit -m 'Add {os.path.basename(filename)}'")
|
print(f" git commit -m 'Add {os.path.basename(filename)}'")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Ensure mouse is enabled by default, only disable if --no-mouse is explicitly set
|
# Always enable mouse by default, only disable if --no-mouse is explicitly set
|
||||||
mouse_enabled = not args.no_mouse
|
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)
|
curses.wrapper(main, filename, args.diff, args.diff_additions, args.diff_deletions, mouse_enabled, not args.no_wrap, args.line_numbers)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue