mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +03:00
Avoid zstr in write_debug when no *debug* buffer can be created
This commit is contained in:
parent
7176685690
commit
04a922fe1a
@ -13,7 +13,8 @@ void write_debug(StringView str)
|
||||
{
|
||||
if (not BufferManager::has_instance())
|
||||
{
|
||||
fprintf(stderr, "%s\n", (const char*)str.zstr());
|
||||
write(2, str.data(), (int)str.length());
|
||||
write(2, "\n", 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user