nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 3457039ceed7529e6e6b23eca879b16ada6a8429
parent ca7725496865a60caef68314c1ba4b2d2ec71a11
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun,  9 Jun 2019 19:30:29 +0200

tweaks: rename a variable, to get out of the way of the next commit

Diffstat:
Msrc/text.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -3145,11 +3145,11 @@ void complete_a_word(void) /* Find the start of the fragment that the user typed. */ start_of_shard = openfile->current_x; while (start_of_shard > 0) { - size_t step_left = move_mbleft(openfile->current->data, start_of_shard); + size_t oneleft = move_mbleft(openfile->current->data, start_of_shard); - if (!is_word_mbchar(&openfile->current->data[step_left], FALSE)) + if (!is_word_mbchar(&openfile->current->data[oneleft], FALSE)) break; - start_of_shard = step_left; + start_of_shard = oneleft; } /* If there is no word fragment before the cursor, do nothing. */