Skip to content

Commit

Permalink
address geier comment
Browse files Browse the repository at this point in the history
  • Loading branch information
choucavalier committed Oct 24, 2023
1 parent 56d36c9 commit 5d7daab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions khal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def mouse_option(f):
o = click.option(
'--mouse/--no-mouse',
is_flag=True,
default=True,
default=None,
help='Disable mouse in interactive UI'
)
return o(f)
Expand Down Expand Up @@ -494,7 +494,8 @@ def isatty(_file):
@click.pass_context
def interactive(ctx, include_calendar, exclude_calendar, mouse):
'''Interactive UI. Also launchable via `ikhal`.'''
ctx.obj['conf']['default']['enable_mouse'] = mouse
if mouse is not None:
ctx.obj['conf']['default']['enable_mouse'] = mouse
controllers.interactive(
build_collection(
ctx.obj['conf'],
Expand All @@ -511,7 +512,8 @@ def interactive(ctx, include_calendar, exclude_calendar, mouse):
def interactive_cli(ctx, config, include_calendar, exclude_calendar, mouse):
'''Interactive UI. Also launchable via `khal interactive`.'''
prepare_context(ctx, config)
ctx.obj['conf']['default']['enable_mouse'] = mouse
if mouse is not None:
ctx.obj['conf']['default']['enable_mouse'] = mouse
controllers.interactive(
build_collection(
ctx.obj['conf'],
Expand Down

0 comments on commit 5d7daab

Please sign in to comment.