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

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

[elpa] externals/nano-modeline 03ab175441 2/6: line and column mode chec


From: ELPA Syncer
Subject: [elpa] externals/nano-modeline 03ab175441 2/6: line and column mode checks
Date: Thu, 20 Apr 2023 11:58:45 -0400 (EDT)

branch: externals/nano-modeline
commit 03ab1754419af015e0bf7e1eac8ea695f2897c0a
Author: Toni Jarjour <39845673+tonijarjour@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    line and column mode checks
---
 nano-modeline.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/nano-modeline.el b/nano-modeline.el
index 3ab2b7f73d..d0a2d7c707 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -1080,9 +1080,13 @@ depending on the version of mu4e."
         (mode-name   (nano-modeline-mode-name))
         (branch      (nano-modeline-vc-branch))
         (position    (format-mode-line
-                     (if (bound-and-true-p column-number-mode)
-                         '("%l:%c")
-                       '("%l")))))
+                      (if (bound-and-true-p line-number-mode)
+                          (if (bound-and-true-p column-number-mode)
+                              '("%l:%c")
+                            '("%l"))
+                        (if (bound-and-true-p column-number-mode)
+                            '("%c")
+                          '(""))))))
     (nano-modeline-render icon
                           buffer-name
                           (if branch (concat "(" branch ")") "")



reply via email to

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