Skip to content
Permalink
Browse files

exception in filtered menu

  • Loading branch information...
alabuzhev committed Jun 21, 2017
1 parent 4087117 commit ab6492bb51c01b341592b649e327aa582b54853a
Showing with 8 additions and 3 deletions.
  1. +4 −0 far/changelog
  2. +1 −1 far/vbuild.m4
  3. +3 −2 far/vmenu.hpp
@@ -1,3 +1,7 @@
drkns 21.06.2017 07:30:17 +0000 - build 4976

1. В некоторых случаях плагин мог вызвать исключение в меню со включенным фильтром.

svs 19.06.2017 07:24:13 +0300 - build 4975

1. SQLite 3.19.3
@@ -1 +1 @@
m4_define(BUILD,4975)m4_dnl
m4_define(BUILD,4976)m4_dnl
@@ -232,8 +232,9 @@ class VMenu: public SimpleModal
void SetFilterLocked(bool bLocked) { bFilterEnabled = bLocked; }
bool AddToFilter(const wchar_t *str);
void SetFilterString(const wchar_t *str);
size_t size() const { return Items.size(); }
bool empty() const { return Items.empty(); }
// SelectPos == -1 & non-empty Items - everything is filtered
size_t size() const { return SelectPos == -1? 0 : Items.size(); }
bool empty() const { return SelectPos == -1 || Items.empty(); }
int GetShowItemCount() const { return static_cast<int>(Items.size() - ItemHiddenCount); }
int GetVisualPos(int Pos);
int VisualPosToReal(int VPos);

0 comments on commit ab6492b

Please sign in to comment.
You can’t perform that action at this time.