Commit 43000929 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Newer version of DLR's patch based on DB's tab thing

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1283 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 81dea02c
No related merge requests found
Showing with 6 additions and 4 deletions
+6 -4
...@@ -95,7 +95,9 @@ CVS code - ...@@ -95,7 +95,9 @@ CVS code -
characters on the line is exactly one over the limit. (David characters on the line is exactly one over the limit. (David
Benbennick) Benbennick)
- Restore the previous wrapping point behavior (pre 1.1.10) - Restore the previous wrapping point behavior (pre 1.1.10)
(David Benbennick, fixes by DLR). (David Benbennick). Minor fix by DLR to prevent spaces from
being added to the ends of lines ending in spaces or lines
ending in tabs (the latter case found by David Benbennick).
do_alt_speller() do_alt_speller()
- Readd DLR's fix to preserve marking when using the alternate - Readd DLR's fix to preserve marking when using the alternate
spell checker; it was accidentally dropped. (David spell checker; it was accidentally dropped. (David
......
...@@ -1510,9 +1510,9 @@ int do_wrap(filestruct *inptr) ...@@ -1510,9 +1510,9 @@ int do_wrap(filestruct *inptr)
if (wrapping) { if (wrapping) {
/* In this case, totsize increases by 1 since we add a space /* In this case, totsize increases by 1 since we add a space
* between after_break and wrap_line. If the line already ends * between after_break and wrap_line. If the line already ends
* in a space, we don't add a space and decrement totsize to * in a tab or a space, we don't add a space and decrement
* account for that. */ * totsize to account for that. */
if (newline[strlen(newline) - 1] != ' ') if (newline[strlen(newline) - 1] != '\t' && newline[strlen(newline) - 1] != ' ')
strcat(newline, " "); strcat(newline, " ");
else else
totsize--; totsize--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment