From 8d002ae62b1d8e4f40c4333dc81b97b59041d9b7 Mon Sep 17 00:00:00 2001 From: Yoann Blein Date: Sun, 1 Oct 2017 10:02:55 +0200 Subject: [PATCH] Rename hint-number-same-length into hint-keys-same-length fix #425 --- CHANGELOG.md | 1 + doc/vimb.1 | 4 ++-- src/hints.c | 2 +- src/setting.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90a7cd2..9523049 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. hinting is done might be security relevant. * Allow extended hints mode also for open `g;o` to allow the user to toggle checkboxes and radiobuttons of forms. +* Rename `hint-number-same-length` into `hint-keys-same-length` for consistency. ### Fixed diff --git a/doc/vimb.1 b/doc/vimb.1 index 1a9c3d0..86d2f1b 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -1055,8 +1055,8 @@ Header completely from request. If on, vimb automatically follows the last remaining hint on the page. If off hints are fired only if enter is pressed. .TP -.B hint-number-same-length (bool) -If on, all hint numbers will have the same length, so no hints will be +.B hint-keys-same-length (bool) +If on, all hint labels will have the same length, so no hints will be ambiguous. .TP .B hint-timeout (int) diff --git a/src/hints.c b/src/hints.c index e196861..6360460 100644 --- a/src/hints.c +++ b/src/hints.c @@ -152,7 +152,7 @@ void hints_create(Client *c, const char *input) MAXIMUM_HINTS, GET_CHAR(c, "hint-keys"), GET_BOOL(c, "hint-follow-last") ? "true" : "false", - GET_BOOL(c, "hint-number-same-length") ? "true" : "false" + GET_BOOL(c, "hint-keys-same-length") ? "true" : "false" ); call_hints_function(c, "init", jsargs, FALSE); diff --git a/src/setting.c b/src/setting.c index cb61cbb..98b06af 100644 --- a/src/setting.c +++ b/src/setting.c @@ -96,7 +96,7 @@ void setting_init(Client *c) setting_add(c, "hint-timeout", TYPE_INTEGER, &i, NULL, 0, NULL); setting_add(c, "hint-keys", TYPE_CHAR, &"0123456789", NULL, 0, NULL); setting_add(c, "hint-follow-last", TYPE_BOOLEAN, &on, NULL, 0, NULL); - setting_add(c, "hint-number-same-length", TYPE_BOOLEAN, &off, NULL, 0, NULL); + setting_add(c, "hint-keys-same-length", TYPE_BOOLEAN, &off, NULL, 0, NULL); setting_add(c, "html5-database", TYPE_BOOLEAN, &on, webkit, 0, "enable-html5-database"); setting_add(c, "html5-local-storage", TYPE_BOOLEAN, &on, webkit, 0, "enable-html5-local-storage"); setting_add(c, "hyperlink-auditing", TYPE_BOOLEAN, &off, webkit, 0, "enable-hyperlink-auditing"); -- 2.20.1