Skip to content

Commit

Permalink
Remove TODO as checked
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeLaffan committed Dec 23, 2024
1 parent 3441a6a commit 027c524
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions extensions/vi-mode/commands.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,10 +1140,9 @@ on the same line or at eol if there are none."

(define-command vi-switch-to-buffer (&optional (filename nil)) (:universal-nil)
"Opens the specified file name or creates a blank buffer."
;; TODO LL Switch to buffer if it exists? Does this make dupe buffers?
(switch-to-buffer (if (or (null filename) (string= filename "lee"))
(make-buffer nil :temporary t)
(execute-find-file *find-file-executor* (get-file-mode filename) filename))))
(switch-to-buffer (if (or (null filename) (string= filename ""))
(make-buffer nil :temporary t)
(execute-find-file *find-file-executor* (get-file-mode filename) filename))))

(define-command vi-window-split-horizontally-new (&optional (n 1) (filename nil)) (:universal)
"Creates an empty buffer in a new window N times."
Expand Down

0 comments on commit 027c524

Please sign in to comment.