[ncdirect_readline] properly check for EOF (capital D) #2558

pull/2567/head
nick black 2 years ago
parent 05a5b64339
commit cc5d3b55c2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1009,7 +1009,7 @@ char* ncdirect_readline(ncdirect* n, const char* prompt){
if(ni.evtype == NCTYPE_RELEASE){
continue;
}
if(id == NCKEY_EOF || id == NCKEY_ENTER || (ncinput_ctrl_p(&ni) && id == 'd')){
if(id == NCKEY_EOF || id == NCKEY_ENTER || (ncinput_ctrl_p(&ni) && id == 'D')){
if(id == NCKEY_ENTER){
if(fputc('\n', n->ttyfp) < 0){
free(str);

Loading…
Cancel
Save