summaryrefslogtreecommitdiffhomepage
path: root/src/edit_builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit_builtin.c')
-rw-r--r--src/edit_builtin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit_builtin.c b/src/edit_builtin.c
index aee4d8e..4b8904b 100644
--- a/src/edit_builtin.c
+++ b/src/edit_builtin.c
@@ -546,7 +546,7 @@ static int bind_keys(const char *s, size_t len, char *out, size_t *outlen) {
int edit_bind(const char *spec) {
const char *eq = strchr(spec, '=');
- if (eq == NULL) {
+ if (eq == nullptr) {
sh_warn("bind: %s: expected keys=action", spec);
return -1;
}
@@ -1496,7 +1496,7 @@ static bool edit_key(int k) {
* prompt that is redrawn.
* @param len Receives the length of the line.
* @return The line, NUL-terminated and without a newline, valid until the
- * next call. NULL at end of input (`^D` on an empty line).
+ * next call. nullptr at end of input (`^D` on an empty line).
*/
char *edit_readline(const char *prompt, size_t *len) {
const char *last = strrchr(prompt, '\n');
@@ -1548,7 +1548,7 @@ char *edit_readline(const char *prompt, size_t *len) {
ob_flush();
raw_off();
if (eof)
- return NULL;
+ return nullptr;
ed.buf[ed.len] = '\0';
*len = ed.len;
return ed.buf;