2000-01-25 02:35:00 +00:00
|
|
|
--- src/bin/doc/Keymap.c.org Sat Apr 11 14:29:37 1992
|
|
|
|
+++ src/bin/doc/Keymap.c Sun Jan 23 19:58:14 2000
|
|
|
|
@@ -103,6 +103,7 @@
|
|
|
|
_viewer != nil
|
|
|
|
&& e.type() == Event::key && e.mapkey(s, sizeof(s)) > 0
|
1999-12-29 07:47:39 +00:00
|
|
|
) {
|
2000-01-25 02:35:00 +00:00
|
|
|
+ long i;
|
1999-12-29 07:47:39 +00:00
|
|
|
_viewer->ref();
|
|
|
|
ItemView* view = _viewer->focus();
|
2000-01-25 02:35:00 +00:00
|
|
|
long count = _info->count();
|
|
|
|
@@ -110,7 +111,7 @@
|
1999-12-29 07:47:39 +00:00
|
|
|
if (key < 0) {
|
|
|
|
key += 256;
|
|
|
|
}
|
|
|
|
- for (long i = 0; i < count; ++i) {
|
|
|
|
+ for (i = 0; i < count; ++i) {
|
|
|
|
DocKeymapInfo& info = _info->item_ref(i);
|
|
|
|
if (info._key == key) {
|
|
|
|
boolean pending_repair;
|