Minor formatting tweaks
This commit is contained in:
parent
e090131b87
commit
0a06d9acbd
|
@ -31,6 +31,7 @@ enum class PromptEvent
|
||||||
Validate
|
Validate
|
||||||
};
|
};
|
||||||
using PromptCallback = std::function<void (StringView, PromptEvent, Context&)>;
|
using PromptCallback = std::function<void (StringView, PromptEvent, Context&)>;
|
||||||
|
|
||||||
enum class PromptFlags
|
enum class PromptFlags
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
@ -40,7 +41,6 @@ enum class PromptFlags
|
||||||
};
|
};
|
||||||
constexpr bool with_bit_ops(Meta::Type<PromptFlags>) { return true; }
|
constexpr bool with_bit_ops(Meta::Type<PromptFlags>) { return true; }
|
||||||
|
|
||||||
|
|
||||||
using KeyCallback = std::function<void (Key, Context&)>;
|
using KeyCallback = std::function<void (Key, Context&)>;
|
||||||
|
|
||||||
class InputMode;
|
class InputMode;
|
||||||
|
|
|
@ -44,6 +44,7 @@ constexpr auto enum_desc(Meta::Type<SelectMode>)
|
||||||
{ SelectMode::Append, "append" },
|
{ SelectMode::Append, "append" },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void merge_selections(Selection& sel, const Selection& new_sel)
|
void merge_selections(Selection& sel, const Selection& new_sel)
|
||||||
{
|
{
|
||||||
const bool forward = sel.cursor() >= sel.anchor();
|
const bool forward = sel.cursor() >= sel.anchor();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user