mirror of
https://github.com/tstack/lnav
synced 2024-11-19 15:25:34 +00:00
[sql] do not switch to the DB view if only the log_line column is selected
Fixes #78
This commit is contained in:
parent
5b66441378
commit
1453c8e787
11
src/lnav.cc
11
src/lnav.cc
@ -2365,8 +2365,17 @@ static void rl_callback(void *dummy, readline_curses *rc)
|
|||||||
lnav_data.ld_views[LNV_DB].set_left(0);
|
lnav_data.ld_views[LNV_DB].set_left(0);
|
||||||
|
|
||||||
if (dls.dls_rows.size() > 0) {
|
if (dls.dls_rows.size() > 0) {
|
||||||
|
vis_bookmarks &bm =
|
||||||
|
lnav_data.ld_views[LNV_LOG].get_bookmarks();
|
||||||
|
|
||||||
if (dls.dls_rows.size() == 1) {
|
if (dls.dls_headers.size() == 1 && !bm[&BM_QUERY].empty()) {
|
||||||
|
rc->set_value("");
|
||||||
|
rc->set_alt_value(HELP_MSG_2(
|
||||||
|
y, Y,
|
||||||
|
"to move forward/backward through query results "
|
||||||
|
"in the log view"));
|
||||||
|
}
|
||||||
|
else if (dls.dls_rows.size() == 1) {
|
||||||
string row;
|
string row;
|
||||||
|
|
||||||
hs.text_value_for_line(lnav_data.ld_views[LNV_DB], 1, row, true);
|
hs.text_value_for_line(lnav_data.ld_views[LNV_DB], 1, row, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user