Function: viper-minibuffer-trim-tail

viper-minibuffer-trim-tail is a byte-compiled function defined in viper-cmd.el.gz.

Signature

(viper-minibuffer-trim-tail)

Documentation

Delete junk at the end of the first line of the minibuffer input.

Remove this function from viper-minibuffer-exit-hook, if this causes problems.

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/viper-cmd.el.gz
(defun viper-minibuffer-trim-tail ()
  "Delete junk at the end of the first line of the minibuffer input.
Remove this function from `viper-minibuffer-exit-hook', if this causes
problems."
  (if (viper-is-in-minibuffer)
      (let ((inhibit-field-text-motion t))
	(goto-char (viper-minibuffer-real-start))
	(end-of-line)
	(delete-region (point) (point-max)))))