From c61ce5251fbfe32daaf3966eac78e4f357e83446 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 18 Jan 2014 18:15:08 +0900 Subject: [PATCH] fix bug of isdcv-bol --- emacs.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index f1a88a2..8e58701 100644 --- a/emacs.el +++ b/emacs.el @@ -2333,6 +2333,9 @@ this is test, does not rename files." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; isdcv +;; TODO: remove dependant of sdcv, and change the name to something like +;; `ilookup` + (defvar isdcv-prompt "> " "Prompt string for isdcv input.") @@ -2410,8 +2413,10 @@ Freeze current input and show next prompt." "Return point to bol ignoring prompt." (save-excursion (beginning-of-line) - (search-forward isdcv-prompt - (point-at-eol)))) + (or (search-forward isdcv-prompt + (point-at-eol) + t) + (point)))) (defun isdcv--get-output-start () "Return point where outputs should be inserted.