mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-23 09:53:05 +03:00
in break_line(), handle newlines consistently when searching for the
last blank in the first group of blanks in the range of (goal - 1) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
af7677ecb6
commit
cd243f558a
@ -225,6 +225,9 @@ CVS code -
|
|||||||
break_line()
|
break_line()
|
||||||
- Fix problem where tab widths in columns would always be
|
- Fix problem where tab widths in columns would always be
|
||||||
calculated as tabsize. (DLR, found by Alexey Toptygin)
|
calculated as tabsize. (DLR, found by Alexey Toptygin)
|
||||||
|
- Handle newlines consistently when searching for the last blank
|
||||||
|
in the first group of blanks in the range of (goal - 1). (DLR,
|
||||||
|
found by Benno Schulenberg)
|
||||||
do_justify()
|
do_justify()
|
||||||
- Remove redundant key checks. (DLR)
|
- Remove redundant key checks. (DLR)
|
||||||
do_spell()
|
do_spell()
|
||||||
|
@ -848,6 +848,11 @@ ssize_t break_line(const char *line, ssize_t goal
|
|||||||
)) {
|
)) {
|
||||||
line_len = parse_mbchar(line, NULL, NULL);
|
line_len = parse_mbchar(line, NULL, NULL);
|
||||||
|
|
||||||
|
#ifndef DISABLE_HELP
|
||||||
|
if (newline && *line == '\n')
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
line += line_len;
|
line += line_len;
|
||||||
blank_loc += line_len;
|
blank_loc += line_len;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user