Skip to content

Empty questions cause misbehaviour/Pointer glitches #11

@rmoehn

Description

@rmoehn

Exhibit 1:

What is your root question?
> <Enter>
Question: [$1: ]
Scratchpad: [$1: ]
Subquestions:

>

Exhibit 2:

What is your root question?
> What is the capital of Assyria?
Question: [$1: What is the capital of Assyria?]
Scratchpad: [$2: ]
Subquestions:

> ask<Enter>
Question: [$1: What is the capital of Assyria?]
Scratchpad: [$q1: ]
Subquestions:
1.
  [$q1: ]
  $a1
  $w1

> unlock $a1
Question: [$1: ]
Scratchpad: [$1: ]
Subquestions:

>
  • Question and scratchpad shouldn't have the same pointer.
  • Empty questions don't make sense, so I would just forbid them.

I could probably fix this easily, but I don't want to switch context now. Besides, this is a good bug to fix for someone who wants to get to know the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions