[sup-talk] [PATCH] Fixes alignment when printing help screen if \C-x is bound.
Marc Hartstein
marc.hartstein at alum.vassar.edu
Wed Apr 23 20:43:13 EDT 2008
Width calculations were getting off by one, causing truncated definitions.
---
lib/sup/keymap.rb | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/lib/sup/keymap.rb b/lib/sup/keymap.rb
index 3176415..080e11d 100644
--- a/lib/sup/keymap.rb
+++ b/lib/sup/keymap.rb
@@ -43,16 +43,10 @@ class Keymap
when :home: "<home>"
when :end: "<end>"
when :enter, :return: "<enter>"
- when :ctrl_l: "ctrl-l"
- when :ctrl_g: "ctrl-g"
when :tab: "tab"
when " ": "<space>"
else
- if k.is_a?(String) && k.length == 1
- k
- else
- raise ArgumentError, "unknown key name \"#{k}\""
- end
+ Curses::keyname(keysym_to_keycode k)
end
end
--
1.5.3.7
More information about the sup-talk
mailing list