Static code for the special built-in key sequences

This commit is contained in:
Markus Gans 2020-04-29 02:24:48 +02:00
parent 4840978273
commit 0fd6439f5a
2 changed files with 8 additions and 6 deletions

View File

@ -231,7 +231,9 @@ void FTermcap::termcapKeys (char*& buffer)
// Get termcap keys
// Read termcap key sequences
for (std::size_t i{0}; fc::fkey[i].tname[0] != 0; i++)
for ( std::size_t i{0};
fc::fkey[i].string == nullptr && fc::fkey[i].tname[0] != 0;
i++ )
fc::fkey[i].string = tgetstr(C_STR(fc::fkey[i].tname), &buffer);
}