diff options
Diffstat (limited to 'src/querycompleter.h')
| -rw-r--r-- | src/querycompleter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/querycompleter.h b/src/querycompleter.h index d9635c0..e2a983b 100644 --- a/src/querycompleter.h +++ b/src/querycompleter.h @@ -44,6 +44,13 @@ struct CompletionContext /// being completed, so accepting never disturbs neighbouring text. int replaceFrom = 0; int replaceLength = 0; + + /// Whether candidates that are themselves ranges may be offered. + /// + /// The relative date entries ("1week..") are complete open-ended ranges. + /// Offering one inside an existing range yields date:1week....today, which + /// is malformed, so they are withheld once a range is underway. + bool allowRangeEntries = true; }; /// Decides what the cursor position implies about completion. |
