mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 18:47:32 -05:00
Cleanup: make an enum for the values of CONF_cursor_type.
These have been magic numbers 0, 1 and 2 in the source for ages. I think it's about time they had actual names, to make all the points of use clearer.
This commit is contained in:
6
config.c
6
config.c
@ -2248,9 +2248,9 @@ void setup_config_box(struct controlbox *b, bool midsession,
|
||||
HELPCTX(appearance_cursor),
|
||||
conf_radiobutton_handler,
|
||||
I(CONF_cursor_type),
|
||||
"Block", 'l', I(0),
|
||||
"Underline", 'u', I(1),
|
||||
"Vertical line", 'v', I(2));
|
||||
"Block", 'l', I(CURSOR_BLOCK),
|
||||
"Underline", 'u', I(CURSOR_UNDERLINE),
|
||||
"Vertical line", 'v', I(CURSOR_VERTICAL_LINE));
|
||||
ctrl_checkbox(s, "Cursor blinks", 'b',
|
||||
HELPCTX(appearance_cursor),
|
||||
conf_checkbox_handler, I(CONF_blink_cur));
|
||||
|
Reference in New Issue
Block a user