diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-01 07:05:08 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-01 07:05:08 -0700 |
commit | a268abc3d1b980a4a19a7275108287dc3ce1e492 (patch) | |
tree | b063d0b25187dcc12d85409225d1a6edebddcb59 /glob.c | |
parent | a997f22131a7c98505cebcc88f3badd67a50518d (diff) | |
download | txr-a268abc3d1b980a4a19a7275108287dc3ce1e492.tar.gz txr-a268abc3d1b980a4a19a7275108287dc3ce1e492.tar.bz2 txr-a268abc3d1b980a4a19a7275108287dc3ce1e492.zip |
linenoise: clear need_refresh in refresh_line.
* linenoise/linenoise.c (refresh_line): Clear the need_refresh
flag here.
(edit): No need to clear it here any more. This will prevent
some useless calls to refresh_line. Some edit operations set
refresh_line, but then execute something that performs
refresh_line unconditionally. If the flag is then reset, the
top of the loop doesn't have to do another wasteful refresh.
Diffstat (limited to 'glob.c')
0 files changed, 0 insertions, 0 deletions