Fixing compilation with --enable-tiny --enable-wrapping.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4999 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
cf8a296279
commit
3b47ff756e
|
@ -9,6 +9,7 @@
|
||||||
depends upon nanorc support, plus many other tweaks.
|
depends upon nanorc support, plus many other tweaks.
|
||||||
* src/global.c (strtosc): Fix compilation with --enable-tiny
|
* src/global.c (strtosc): Fix compilation with --enable-tiny
|
||||||
--enable-histories --enable-nanorc.
|
--enable-histories --enable-nanorc.
|
||||||
|
* src/text.c: Fix compilation with --enable-tiny --enable-wrapping.
|
||||||
|
|
||||||
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
|
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
|
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
|
||||||
|
|
|
@ -1215,7 +1215,9 @@ bool do_wrap(filestruct *line)
|
||||||
/* If after_break doesn't end in a blank, make sure it ends in a
|
/* If after_break doesn't end in a blank, make sure it ends in a
|
||||||
* space. */
|
* space. */
|
||||||
if (!is_blank_mbchar(end)) {
|
if (!is_blank_mbchar(end)) {
|
||||||
|
#ifndef NANO_TINY
|
||||||
add_undo(ADD);
|
add_undo(ADD);
|
||||||
|
#endif
|
||||||
line_len++;
|
line_len++;
|
||||||
line->data = charealloc(line->data, line_len + 1);
|
line->data = charealloc(line->data, line_len + 1);
|
||||||
line->data[line_len - 1] = ' ';
|
line->data[line_len - 1] = ' ';
|
||||||
|
@ -1224,7 +1226,9 @@ bool do_wrap(filestruct *line)
|
||||||
after_break_len++;
|
after_break_len++;
|
||||||
openfile->totsize++;
|
openfile->totsize++;
|
||||||
openfile->current_x++;
|
openfile->current_x++;
|
||||||
|
#ifndef NANO_TINY
|
||||||
update_undo(ADD);
|
update_undo(ADD);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
next_line = line->next->data;
|
next_line = line->next->data;
|
||||||
|
|
Loading…
Reference in New Issue