enhance: only apply DWIM to list item when cursor at EOL

This commit is contained in:
Junyi Du
2021-11-29 17:08:32 +08:00
committed by Tienson Qin
parent 1ae8087ae3
commit eeb48ba6b8

View File

@@ -2421,7 +2421,8 @@
(when (thingatpt/get-setting :properties?)
(thingatpt/properties-at-point input))
(when (thingatpt/get-setting :list?)
(thingatpt/list-item-at-point input)))]
(and (cursor/end-of-line? input) ;; only apply DWIM when cursor at EOL
(thingatpt/list-item-at-point input))))]
(cond
thing-at-point
(case (:type thing-at-point)