Skip to content

Commit f5d8a45

Browse files
committed
[notcurses] avoid notcurses_refresh() since it flashes the screen
Related to #1509
1 parent 53b4d8a commit f5d8a45

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/lnav_commands.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,6 @@ com_config(exec_context& ec,
34043404
}
34053405

34063406
if (!errors.empty()) {
3407-
lnav_data.ld_winched = true;
34083407
lnav_config = rollback_lnav_config;
34093408
reload_config(errors_ignored);
34103409
return Err(errors.back());

src/readline_callbacks.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,6 @@ rl_search_internal(textinput_curses& rc, ln_mode_t mode, bool complete = false)
10761076
result.unwrapErr().um_message.get_string());
10771077
}
10781078
lnav_data.ld_status[LNS_BOTTOM].set_needs_update();
1079-
lnav_data.ld_winched = true;
1080-
10811079
lnav_data.ld_preview_view[0].reload_data();
10821080
10831081
ec.ec_dry_run = false;

src/third-party/notcurses/src/lib/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ emit_scrolls(const tinfo* ti, int count, fbuf* f){
18831883
}
18841884
// fell through if we had no indn
18851885
while(count > 0){
1886-
if(fbuf_emit_parm(f, ind) < 0){
1886+
if(fbuf_emit(f, ind) < 0){
18871887
return -1;
18881888
}
18891889
--count;

0 commit comments

Comments
 (0)