mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/tibit/hexedit/00-hexedit-vi-keys.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -u hexedit/interact.c hexedit-hacked/interact.c
  23. --- hexedit/interact.c Wed Jun 19 13:55:40 2002
  24. +++ hexedit-hacked/interact.c Wed Oct 9 12:04:18 2002
  25. @@ -360,6 +360,39 @@
  26. next_line();
  27. break;
  28. + /* VI keys */
  29. + case 'h':
  30. + if (!hexOrAscii) {
  31. + setTo(key);
  32. + break;
  33. + }
  34. + backward_char();
  35. + break;
  36. +
  37. + case 'l':
  38. + if (!hexOrAscii) {
  39. + setTo(key);
  40. + break;
  41. + }
  42. + forward_char();
  43. + break;
  44. +
  45. + case 'k':
  46. + if (!hexOrAscii) {
  47. + setTo(key);
  48. + break;
  49. + }
  50. + previous_line();
  51. + break;
  52. +
  53. + case 'j':
  54. + if (!hexOrAscii) {
  55. + setTo(key);
  56. + break;
  57. + }
  58. + next_line();
  59. + break;
  60. +
  61. case KEY_UP:
  62. case CTRL('P'):
  63. previous_line();
  64. @@ -443,6 +476,14 @@
  65. case CTRL('G'):
  66. case KEY_F(4):
  67. + goto_char();
  68. + break;
  69. +
  70. + case 'g':
  71. + if (!hexOrAscii) {
  72. + setTo(key);
  73. + break;
  74. + }
  75. goto_char();
  76. break;