Created
July 12, 2012 21:55
-
-
Save ThomasAdam/3101343 to your computer and use it in GitHub Desktop.
Quick tmux choose-mode hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/trunk/window-choose.c b/trunk/window-choose.c | |
index f385763..4967a4c 100644 | |
--- a/trunk/window-choose.c | |
+++ b/trunk/window-choose.c | |
@@ -391,7 +391,7 @@ window_choose_write_line( | |
int | |
window_choose_key_index(struct window_choose_mode_data *data, u_int idx) | |
{ | |
- static const char keys[] = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
+ static const char keys[] = "abcdefghijklmnopqrstuvwxyz0123456789"; | |
const char *ptr; | |
int mkey; | |
@@ -408,7 +408,7 @@ window_choose_key_index(struct window_choose_mode_data *data, u_int idx) | |
int | |
window_choose_index_key(struct window_choose_mode_data *data, int key) | |
{ | |
- static const char keys[] = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
+ static const char keys[] = "abcdefghijklmnopqrstuvwxyz0123456789"; | |
const char *ptr; | |
int mkey; | |
u_int idx = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment