From f18833c78bc05e4ee16aa8e835cc5d9760098912 Mon Sep 17 00:00:00 2001 From: 4ourbit <4ourbit@gmail.com> Date: Mon, 23 Dec 2013 14:06:20 +0100 Subject: fix for unexpected point movement bug fixed: point moves to previous char when called at whitespace-only line --- lisp/ledger-context.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/ledger-context.el') diff --git a/lisp/ledger-context.el b/lisp/ledger-context.el index aafcc5d8..eb3d4353 100644 --- a/lisp/ledger-context.el +++ b/lisp/ledger-context.el @@ -113,7 +113,7 @@ Leave point at the beginning of the thing under point" (cond ((looking-at "^[0-9/.=-]+\\(\\s-+\\*\\)?\\(\\s-+(.+?)\\)?\\s-+") (goto-char (match-end 0)) 'transaction) - ((looking-at "^\\s-+\\([*!]\\s-+\\)?[[(]?\\(.\\)") + ((looking-at "^\\s-+\\([*!]\\s-+\\)?[[(]?\\([^\\s-]\\)") (goto-char (match-beginning 2)) 'posting) ((looking-at "^\\(sun\\|mon\\|tue\\|wed\\|thu\\|fri\\|sat\\)\\s-+") -- cgit v1.2.3