(fix)buffer: buffer-toggle: don't destroy window if org-roam-node-toggle reuses window (#2082)

* (fix)buffer: buffer-toggle: don't destroy buffer if reused

Closes #2077

* add changelog
This commit is contained in:
Jethro Kuan
2022-02-06 14:20:24 -08:00
committed by GitHub
parent ccfa97ec3a
commit 0432b00485
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
### Removed ### Removed
### Fixed ### Fixed
- [#2082](https://github.com/org-roam/org-roam/pull/2082) buffer: don't destroy window if `org-roam-node-toggle` reuses window
- [#2080](https://github.com/org-roam/org-roam/pull/2080) dailies: prevent multiple "dailies/" subdir expansions - [#2080](https://github.com/org-roam/org-roam/pull/2080) dailies: prevent multiple "dailies/" subdir expansions
- [#2055](https://github.com/org-roam/org-roam/pull/2055) dailies: removed stray f require, which was causing require and compilation errors - [#2055](https://github.com/org-roam/org-roam/pull/2055) dailies: removed stray f require, which was causing require and compilation errors
### Changed ### Changed

View File

@ -289,7 +289,7 @@ To toggle its display use `org-roam-buffer-toggle' command.")
(pcase (org-roam-buffer--visibility) (pcase (org-roam-buffer--visibility)
('visible ('visible
(progn (progn
(delete-window (get-buffer-window org-roam-buffer)) (quit-window nil (get-buffer-window org-roam-buffer))
(remove-hook 'post-command-hook #'org-roam-buffer--redisplay-h))) (remove-hook 'post-command-hook #'org-roam-buffer--redisplay-h)))
((or 'exists 'none) ((or 'exists 'none)
(progn (progn