emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/code-cells 185c33b8b6 27/36: Fix cell movement for file


From: ELPA Syncer
Subject: [elpa] externals/code-cells 185c33b8b6 27/36: Fix cell movement for files without newline at the end
Date: Mon, 28 Feb 2022 15:57:43 -0500 (EST)

branch: externals/code-cells
commit 185c33b8b680482537a205bbfbbf9198b94a0d7e
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Fix cell movement for files without newline at the end
---
 code-cells.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/code-cells.el b/code-cells.el
index cae22651b4..d44de426aa 100644
--- a/code-cells.el
+++ b/code-cells.el
@@ -80,7 +80,8 @@ backward."
   (interactive "p")
   (let ((page-delimiter (code-cells-boundary-regexp)))
     (forward-page arg)
-    (move-beginning-of-line 1)))
+    (unless (eobp)
+      (move-beginning-of-line 1))))
 
 ;;;###autoload
 (defun code-cells-backward-cell (&optional arg)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]