nano

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

commit 65ef166a406e7250a41e94d6151c4b6fc6d27752
parent b6e79fddafd6a33cf8f54f5406dbb19dca3a90b2
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 25 Feb 2005 20:21:45 +0000

cosmetic fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2328 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/nano.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -2951,7 +2951,9 @@ void do_justify(bool full_justify) * just go on to the next. */ goto continue_loc; break_pos += indent_len; + assert(break_pos < line_len); + if (par_len == 1) { /* There is no next line in this paragraph. We make * a new line and copy text after break_pos into @@ -3070,8 +3072,8 @@ void do_justify(bool full_justify) charmove(current->next->data + indent_len, current->next->data + indent_len + break_pos + 1, next_line_len - break_pos - indent_len); - null_at(&current->next->data, next_line_len - - break_pos); + null_at(&current->next->data, + next_line_len - break_pos); /* Go to the next line. */ current = current->next;