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

Method disp

src/query.cpp:582–599  ·  view source on GitHub ↗

view one row of text by drawing it on screen

Source from the content-addressed store, hash-verified

580
581// view one row of text by drawing it on screen
582void Query::disp(int row)
583{
584 Screen::normal();
585 if (row < rows_ + append_)
586 {
587 if (selected_[row])
588 Screen::select();
589 int nulls = !flag_text ? 2 : 0; // how many nulls to ignore in marked pathnames?
590 Screen::put(row - row_ + 1, 0, view_[row], skip_, -1, nulls);
591 if (selected_[row])
592 Screen::deselect();
593 }
594 else if (row - row_ + 1 < maxrows_)
595 {
596 Screen::setpos(row - row_ + 1, 0);
597 Screen::erase();
598 }
599}
600
601// redraw the screen
602void Query::redraw()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected