notcurses_multiselector(3): fix up _selected

pull/592/head
nick black 4 years ago committed by Nick Black
parent 989ca7ff9a
commit a859a3d652

@ -44,7 +44,7 @@ typedef struct ncmultiselector_options {
**struct ncmultiselector* ncmultiselector_create(struct notcurses* n, int y, int x, const ncmultiselector_options* opts);**
**int ncselector_selected(bool* selected, unsigned n);**
**int ncmultiselector_selected(bool* selected, unsigned n);**
**struct ncplane* ncmultiselector_plane(struct ncmultiselector* n);**

@ -36,7 +36,12 @@ namespace ncpp
NotCurses (NotCurses &&other) = delete;
~NotCurses ();
notcurses* operator*() noexcept
operator notcurses* () noexcept
{
return nc;
}
operator notcurses const* () const noexcept
{
return nc;
}
@ -53,7 +58,7 @@ namespace ncpp
static bool is_notcurses_stopped ()
{
return _instance == nullptr || _instance->nc == nullptr;
return *_instance == nullptr || _instance->nc == nullptr;
}
static const char* ncmetric (uintmax_t val, unsigned decimal, char *buf, int omitdec, unsigned mult, int uprefix) noexcept

Loading…
Cancel
Save