tAdd missing comment - ve - a minimal text editor (work in progress)
(HTM) git clone git://src.adamsgaard.dk/ve
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e19cbd3366fe14e6475845d5a686d2c938cf3b6b
(DIR) parent 571d507abc7fd2099ec09d42702e20d541759417
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 6 Aug 2019 21:14:49 +0200
Add missing comment
Diffstat:
M input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) 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 */