We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d58cdf commit 0318efcCopy full SHA for 0318efc
src/term-query.cc
@@ -202,7 +202,7 @@ const char *QueryBackgroundColor() {
202
// We might've gotten some spurious bytes in the beginning from
203
// keypresses, so find where the color starts.
204
const char *found = find_str(data, len, "rgb:");
205
- return strchr(found, '\\') ? found : nullptr;
+ return found && strchr(found, '\\') ? found : nullptr;
206
});
207
208
if (!start_color) return nullptr;
0 commit comments