From 17220dc14db64dc641254d12f50c6052db5f6c4d Mon Sep 17 00:00:00 2001 From: moculus Date: Mon, 13 Oct 2008 05:34:59 +0000 Subject: [PATCH] better hex mode --HG-- branch : pmacs2 --- mode/hex.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mode/hex.py b/mode/hex.py index 293f7f8..11d9c9c 100644 --- a/mode/hex.py +++ b/mode/hex.py @@ -20,12 +20,16 @@ class HexSetByteOrder(Method): class HexForward(Method): def _execute(self, w, **vargs): w.forward() + if w.mode.symbolic_edit: + w.forward() end = w.buffer.get_buffer_end() while w.cursor_char().isspace() and w.cursor < end: w.forward() class HexBackward(Method): def _execute(self, w, **vargs): w.backward() + if w.mode.symbolic_edit: + w.backward() start = w.buffer.get_buffer_start() while w.cursor_char().isspace() and w.cursor > start: w.backward()