summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleo-arch <leonardoabramovich2@gmail.com>2022-07-24 17:32:49 -0300
committerleo-arch <leonardoabramovich2@gmail.com>2022-07-24 17:32:49 -0300
commit91398a54cbc86d257cbe563bb883a465e15e7f4e (patch)
treeb2e8555c691a2d1c4a1d9092f34e4db2614a06d0
parent6c517a7cd15d68e6000dfed5916ef61f078ddae1 (diff)
Fix typo
-rw-r--r--src/highlight.c1
-rw-r--r--src/history.c2
-rw-r--r--src/misc.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/highlight.c b/src/highlight.c
index 18555585..b4d3d78d 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -262,6 +262,7 @@ recolorize_line(void)
rl_point = rl_end = start;
// TESTING HIGHLIGHT!
if (start == 0 && end_bk > 1)
+ /* First char of a non-empty recolored line (recovering from wrong cmd) */
rl_redisplay();
// TESTING HIGHLIGHT!
i = 0;
diff --git a/src/history.c b/src/history.c
index 1eb77c15..252c5078 100644
--- a/src/history.c
+++ b/src/history.c
@@ -263,7 +263,7 @@ send_desktop_notification(char *msg)
"for details) or %s to silence this "
"warning (original message printed below)\n", PROGRAM_NAME,
strerror(ret), ret == ENOENT ? "install a notification daemon"
- : "fix this error (consult your daemon documentation)");
+ : "fix this error (consult your daemon's documentation)");
fprintf(stderr, "%s\n", msg);
}
diff --git a/src/misc.c b/src/misc.c
index b32ecc53..b7908556 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -143,7 +143,7 @@ _err(int msg_type, int prompt_flag, const char *format, ...)
}
}
- int logme = msg_type == ERR_NO_LOG ? 0 : msg_type == 'n' ? -1 : 1;
+ int logme = msg_type == ERR_NO_LOG ? 0 : (msg_type == 'n' ? -1 : 1);
int add_to_msgs_list = 1;
if (msg_type == ERR_NO_STORE) {
add_to_msgs_list = 0;