diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-03 10:28:53 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-03-03 10:28:53 +0100 |
commit | 1e9ec347b28a884f6fee8f1f42c6d5360546dd08 (patch) | |
tree | 3bb177e1de8e39097ae5e0e786e53c2282a24df4 /src | |
parent | ad7f295f0c91b146a8909263e223690314c9b052 (diff) | |
download | ratpoison-1e9ec347b28a884f6fee8f1f42c6d5360546dd08.zip |
Rename string_to_window_number to string_to_number.
* The previous name didn't make sense since it was also used for group
numbers.
* This function should probably make more checks or be deleted.
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index eb800f8..80e2c20 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1289,7 +1289,7 @@ cmd_other (int interactive UNUSED, struct cmdarg **args UNUSED) } static int -string_to_window_number (char *str) +string_to_number (char *str) { int i; char *s; @@ -1390,7 +1390,7 @@ cmd_select (int interactive UNUSED, struct cmdarg **args) ret = cmdret_new (RET_SUCCESS, NULL); } /* try by number */ - else if ((n = string_to_window_number (str)) >= 0) + else if ((n = string_to_number (str)) >= 0) { rp_window_elem *elem = group_find_window_by_number (rp_current_group, n); @@ -1892,7 +1892,7 @@ read_window (struct argspec *spec, struct sbuf *s, struct cmdarg **arg) if (name) { /* try by number */ - if ((n = string_to_window_number (name)) >= 0) + if ((n = string_to_number (name)) >= 0) { rp_window_elem *elem = group_find_window_by_number (rp_current_group, n); if (elem) @@ -1996,7 +1996,7 @@ find_group (char *str) return group; /* Check if the user typed a group number. */ - n = string_to_window_number (str); + n = string_to_number (str); if (n >= 0) { group = groups_find_group_by_number (n); |