ソースを参照

Fix PAGE_UP scroll issue

isundil 9 年 前
コミット
ce145b8933
1 ファイル変更4 行追加0 行削除
  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;
                 }