* [sup-talk] [PATCH] Fixes alignment when printing help screen if \C-x is bound.
@ 2008-04-27 6:49 William Morgan
0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2008-04-27 6:49 UTC (permalink / raw)
Both patched merged into next. Thanks!
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [sup-talk] [PATCH] Fixes alignment when printing help screen if \C-x is bound.
2008-04-24 0:43 [sup-talk] [PATCH] Vi-style scroll keys Marc Hartstein
@ 2008-04-24 0:43 ` Marc Hartstein
0 siblings, 0 replies; 2+ messages in thread
From: Marc Hartstein @ 2008-04-24 0:43 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-27 6:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-27 6:49 [sup-talk] [PATCH] Fixes alignment when printing help screen if \C-x is bound William Morgan
-- strict thread matches above, loose matches on Subject: below --
2008-04-24 0:43 [sup-talk] [PATCH] Vi-style scroll keys Marc Hartstein
2008-04-24 0:43 ` [sup-talk] [PATCH] Fixes alignment when printing help screen if \C-x is bound Marc Hartstein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox