Skip to content

Commit

Permalink
fix: kele-get: inhibit read-only in the render buffer
Browse files Browse the repository at this point in the history
Fixes #78.
  • Loading branch information
jinnovation committed Jan 16, 2023
1 parent 817e524 commit 5aebc1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/references/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ versioning][semver].

- Fixed an issue where `kele-get` results buffer incorrectly prints namespace
for un-namespaced resources as `nil`
- Fixed an issue where `kele-get` refused to display the retrieved resource, if
a buffer corresponding to that resource already exists

### Changed

Expand Down
9 changes: 5 additions & 4 deletions kele.el
Original file line number Diff line number Diff line change
Expand Up @@ -883,10 +883,11 @@ context and namespace in its name."
obj
kele-filtered-fields)))
(with-current-buffer buf
(erase-buffer)
(insert (yaml-encode filtered-obj))
(whitespace-cleanup)
(goto-char (point-min))
(let ((inhibit-read-only t))
(erase-buffer)
(insert (yaml-encode filtered-obj))
(whitespace-cleanup)
(goto-char (point-min)))

(if (featurep 'yaml-mode) (yaml-mode)
(message "[kele] For syntax highlighting, install `yaml-mode'."))
Expand Down

0 comments on commit 5aebc1e

Please sign in to comment.