mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-04 01:14:17 +03:00
Merge branch '3754_helpviewer_tabs'
* 3754_helpviewer_tabs: Ticket #3754: Help viewer doesn't handle tabs correctly.
This commit is contained in:
commit
1db93c1b60
14
src/help.c
14
src/help.c
@ -531,18 +531,22 @@ help_show (WDialog * h, const char *paint_start)
|
||||
line++;
|
||||
col = 0;
|
||||
break;
|
||||
case ' ':
|
||||
case '\t':
|
||||
/* word delimiter */
|
||||
if (painting)
|
||||
{
|
||||
help_print_word (h, word, &col, &line, c == ' ');
|
||||
if (c == '\t')
|
||||
{
|
||||
col = (col / 8 + 1) * 8;
|
||||
if (col >= HELP_WINDOW_WIDTH)
|
||||
{
|
||||
line++;
|
||||
col = 8;
|
||||
}
|
||||
break;
|
||||
case ' ':
|
||||
/* word delimiter */
|
||||
if (painting)
|
||||
help_print_word (h, word, &col, &line, TRUE);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (painting && (line < help_lines))
|
||||
|
Loading…
x
Reference in New Issue
Block a user