Browse Source

[quickfix] scrolling issue

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

+ 1 - 1
src/curseOutput.cpp

@@ -317,7 +317,7 @@ unsigned int CurseOutput::write(const int &x, const int &y, const std::string &s
     int offsetY = y - topleft;
     if (offsetY < 0)
         return 1;
-    move(y, x);
+    move(offsetY, x);
     write(str, maxWidth, flags);
     return getNbLines(str.size() +x, maxWidth);
 }