MCPcopy Create free account
hub / github.com/Genivia/ugrep / down

Method down

src/query.cpp:2011–2039  ·  view source on GitHub ↗

cursor down

Source from the content-addressed store, hash-verified

2009
2010// cursor down
2011void Query::down()
2012{
2013 if (select_ >= 0)
2014 {
2015 ++select_;
2016 if (select_ >= rows_)
2017 select_ = rows_ - 1;
2018 if (select_ < row_ + maxrows_ - 2)
2019 return;
2020 }
2021 if (row_ + 1 < rows_)
2022 {
2023 if (!flag_split)
2024 {
2025 Screen::normal();
2026 disp(row_ + maxrows_ - 2);
2027 ++row_;
2028 Screen::pan_up();
2029 status(true);
2030 draw();
2031 }
2032 else
2033 {
2034 // split screen
2035 ++row_;
2036 redraw();
2037 }
2038 }
2039}
2040
2041// page up the display
2042void Query::pgup(bool half_page)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected