Browse Source

Fix PAGE_UP scroll issue

isundil 9 năm trước cách đây
mục cha
commit
ce145b8933
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/curseOutput.cpp

+ 4 - 0
src/curseOutput.cpp

@@ -341,7 +341,11 @@ bool CurseOutput::readInput()
                 {
                     const JSonElement *parent = selection->getParent();
                     if (parent && dynamic_cast<const JSonContainer*>(parent))
+                    {
                         selection = parent;
+                        if (selection->getParent() && dynamic_cast<const JSonObjectEntry*> (selection->getParent()))
+                            selection = selection->getParent();
+                    }
                     else
                         break;
                 }