Commit 7620dcc5 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(c-delete-backslash): Do nothing if empty line.

parent 9f370a90
......@@ -1314,10 +1314,12 @@ definition and conveniently use this command."
(defun c-delete-backslash ()
(end-of-line)
(forward-char -1)
(if (looking-at "\\\\")
(delete-region (1+ (point))
(progn (skip-chars-backward " \t") (point)))))
(or (bolp)
(progn
(forward-char -1)
(if (looking-at "\\\\")
(delete-region (1+ (point))
(progn (skip-chars-backward " \t") (point)))))))
(defun c-up-conditional (count)
"Move back to the containing preprocessor conditional, leaving mark behind.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment