commit 2b97d6563dc023888b32b6178b51395cea389211
parent a0506a15eea1cf72e87f9524c0709d362af4473f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 14 Feb 2020 16:03:15 +0100
tweaks: correct a typo, improve two indentations, and rewrap a line
Diffstat:
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/prompt.c b/src/prompt.c
@@ -173,7 +173,7 @@ int do_statusbar_input(bool *finished)
return input;
}
-/* Insert the given short burst of bytes into the anwer. */
+/* Insert the given short burst of bytes into the answer. */
void inject_into_answer(char *burst, size_t count)
{
/* First encode any embedded NUL byte as 0x0A. */
diff --git a/src/text.c b/src/text.c
@@ -3113,7 +3113,7 @@ void do_wordlinechar_count(void)
* until we reach the end of the file, incrementing the total word
* count whenever we're on a word just before moving. */
while (openfile->current != openfile->filebot ||
- openfile->current->data[openfile->current_x] != '\0') {
+ openfile->current->data[openfile->current_x] != '\0') {
if (do_next_word(FALSE, TRUE))
words++;
}
@@ -3145,8 +3145,7 @@ void do_verbatim_input(void)
char *bytes;
size_t count;
- /* TRANSLATORS: This is displayed when the next keystroke will be
- * inserted verbatim. */
+ /* TRANSLATORS: Shown when the next keystroke will be inserted verbatim. */
statusbar(_("Verbatim Input"));
place_the_cursor();
@@ -3279,7 +3278,7 @@ void complete_a_word(void)
/* If this match is the shard itself, ignore it. */
if (pletion_line == openfile->current &&
- i == openfile->current_x - shard_length)
+ i == openfile->current_x - shard_length)
continue;
completion = copy_completion(pletion_line->data + i);