mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 01:24:52 +03:00
Merge remote-tracking branch 'eraserhd/notify_fatal_error-undefined-behavior'
This commit is contained in:
commit
98da5dd13a
@ -34,6 +34,8 @@ bool notify_fatal_error(StringView msg)
|
||||
auto cmd = format("xmessage -buttons 'quit:0,ignore:1' '{}'", msg);
|
||||
int status = system(cmd.c_str());
|
||||
return (WIFEXITED(status)) ? (WEXITSTATUS(status)) == 1 : false;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user