Skip to content

Commit 50a5ee4

Browse files
committed
Improve code style a bit
1 parent 1ccbf96 commit 50a5ee4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cider-eldoc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ POS is the index of the currently highlighted argument."
7272
(prog1
7373
(if (or (= (1+ i) pos)
7474
(and rest-pos
75-
(> (+ 1 i) rest-pos)
75+
(> (1+ i) rest-pos)
7676
(> pos rest-pos)))
7777
(propertize argstr 'face
7878
'eldoc-highlight-function-argument)

cider-stacktrace.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ hidden count."
281281
(unless (get-text-property (point) 'collapsed)
282282
(let* ((flags (get-text-property (point) 'flags))
283283
(hide (if (seq-intersection filters flags) t nil)))
284-
(when hide (setq hidden (+ 1 hidden)))
284+
(when hide (cl-incf hidden))
285285
(put-text-property (point) (line-beginning-position 2) 'invisible hide)))
286286
(forward-line 1))
287287
(setq cider-stacktrace-hidden-frame-count hidden)))

0 commit comments

Comments
 (0)