New option disable_center to disable center alignment

Bug-Debian: https://github.com/tats/w3m/issues/175
Bug-Debian: https://github.com/tats/w3m/issues/185
This commit is contained in:
Tatsuya Kinoshita
2021-07-03 14:33:49 +09:00
parent ce158a2f92
commit c3784c9d26
4 changed files with 19 additions and 4 deletions

3
rc.c
View File

@@ -92,6 +92,7 @@ static int OptionEncode = FALSE;
#define CMT_ALT_ENTITY N_("Use ASCII equivalents to display entities")
#define CMT_GRAPHIC_CHAR N_("Character type for border of table and menu")
#define CMT_DISP_BORDERS N_("Display table borders, ignore value of BORDER")
#define CMT_DISABLE_CENTER N_("Disable center alignment")
#define CMT_FOLD_TEXTAREA N_("Fold lines in TEXTAREA")
#define CMT_DISP_INS_DEL N_("Display INS, DEL, S and STRIKE element")
#define CMT_COLOR N_("Display with color")
@@ -422,6 +423,8 @@ struct param_ptr params1[] = {
CMT_GRAPHIC_CHAR, (void *)graphic_char_str},
{"display_borders", P_CHARINT, PI_ONOFF, (void *)&DisplayBorders,
CMT_DISP_BORDERS, NULL},
{"disable_center", P_CHARINT, PI_ONOFF, (void *)&DisableCenter,
CMT_DISABLE_CENTER, NULL},
{"fold_textarea", P_CHARINT, PI_ONOFF, (void *)&FoldTextarea,
CMT_FOLD_TEXTAREA, NULL},
{"display_ins_del", P_INT, PI_SEL_C, (void *)&displayInsDel,