tAdd missing comment - ve - a minimal text editor (work in progress) | |
git clone git://src.adamsgaard.dk/ve | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e19cbd3366fe14e6475845d5a686d2c938cf3b6b | |
parent 571d507abc7fd2099ec09d42702e20d541759417 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 6 Aug 2019 21:14:49 +0200 | |
Add missing comment | |
Diffstat: | |
M input.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/input.c b/input.c | |
t@@ -28,7 +28,7 @@ editor_prompt(char *prompt) | |
editor_refresh_screen(); | |
c = editor_read_key(); | |
- if (c == CTRL_KEY('h') || c == 127) { | |
+ if (c == CTRL_KEY('h') || c == 127) { /* detect backspace */ | |
if (buflen != 0) | |
buf[--buflen] = '\0'; | |
} else if (c == '\x1b') { /* detect escape */ |