screen: refresh when a new magicline is added in line-numbering mode

This fixes https://savannah.gnu.org/bugs/?49406.
master
Benno Schulenberg 2016-10-21 15:59:16 +02:00
parent 023edffe3d
commit ae648778e2
1 changed files with 4 additions and 1 deletions

View File

@ -1892,8 +1892,11 @@ void do_output(char *output, size_t output_len, bool allow_cntrls)
continue;
/* If we're adding to the magicline, create a new magicline. */
if (!ISSET(NO_NEWLINES) && openfile->filebot == openfile->current)
if (!ISSET(NO_NEWLINES) && openfile->filebot == openfile->current) {
new_magicline();
if (margin > 0)
refresh_needed = TRUE;
}
assert(openfile->current_x <= current_len);