diff options
| author | Felix Schlitter <felixschlitter@protonmail.com> | 2018-12-01 19:48:09 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-01 19:48:09 +1300 |
| commit | d0a42539ef3f6022db17876ca6f37f1fe58e345d (patch) | |
| tree | 3d9360de98c1721b08999bf247e533abff292efa | |
| parent | b6d652a9163d3430a9e0933a554bdbee5244bbf6 (diff) | |
Fix #42
Add support for removing empty numbered/"+"-prefixed lists when hitting return
| -rw-r--r-- | evil-org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-org.el b/evil-org.el index 4ef96ae..6d5ccad 100644 --- a/evil-org.el +++ b/evil-org.el @@ -300,7 +300,7 @@ The behavior of this function can be controlled using `evil-org-special-o/O’." (row (nth (1- (org-table-current-line)) rows))) (cl-every 'string-empty-p row))) ((org-at-item-p) - (string-match-p "^[[:space:]]*-[[:space:]]*\\(::[[:space:]]*\\)?$" + (string-match-p "^[[:space:]]*\\([+-]\\|[1-9]+\\.\\)[[:space:]]*\\(::[[:space:]]*\\)?$" (thing-at-point 'line))))) ;; other |
