Skip to content

Commit

Permalink
Merge branch 'pull/425'
Browse files Browse the repository at this point in the history
Closes: #425

* pull/425:
  docs: update command-t-authors
  refactor: move set call after error check
  style: run `bin/format`
  fix: make created buffers modifiable, even when the original buffer is not
  • Loading branch information
wincent committed Sep 29, 2024
2 parents 0e84b60 + a9e8644 commit b08e97b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
58 changes: 29 additions & 29 deletions doc/command-t.txt
Original file line number Diff line number Diff line change
Expand Up @@ -590,35 +590,34 @@ AUTHORS *command-t-authors*
Command-T is written and maintained by Greg Hurrell <greg@hurrell.net>.
Other contributors that have submitted patches include, in alphabetical order:


Abhinav Gupta Nadav Samet
Adrian Keet Nate Kane
Aleksandrs Ļedovskis Nicholas T.
Alexey Terekhov Nicolas Alpi
Andrea Cedraro Nikolai Aleksandrovich Pavlov
Andrius Grabauskas Nilo César Teixeira
Andy Waite Noon Silk
Anthony Panozzo Ole Petter Bang
Artem Nezvigin Patrick Hayes
Ben Boeckel Paul Jolly
Brendan Mulholland Pavel Sergeev
Cody Buell Rainux Luo
Daniel Burgess Richard Feldman
Daniel Hahler Roland Puntaier
David Emett Ross Lagerwall
David Szotten Sam Morris
Douglas Drumond Scott Bronson
Elanora Manson Seth Fowler
Emily Strickland Sherzod Gapirov
Felix Tjandrawibawa Shlomi Fish
Gary Bernhardt Stefan Schmidt
Henric Trotzig Stephen Gelman
Ivan Ukhov Steve Herrell
Jakob Pfender Steven Moazami
Jeff Kreeftmeijer Steven Stallion
Jerome Castaneda Sung Pae
Joe Lencioni Thomas Pelletier
KJ Tsanaktsidis Todd Derr
Abhinav Gupta Nate Kane
Adrian Keet Nicholas T.
Aleksandrs Ļedovskis Nicolas Alpi
Alexey Terekhov Nikolai Aleksandrovich Pavlov
Andrea Cedraro Nilo César Teixeira
Andrius Grabauskas Noon Silk
Andy Waite Ole Petter Bang
Anthony Panozzo Patrick Hayes
Artem Nezvigin Paul Jolly
Ben Boeckel Pavel Sergeev
Brendan Mulholland Rainux Luo
Cody Buell Richard Feldman
Daniel Burgess Roland Puntaier
Daniel Hahler Ross Lagerwall
David Emett Sam Morris
David Szotten Scott Bronson
Douglas Drumond Seth Fowler
Elanora Manson Sherzod Gapirov
Emily Strickland Shlomi Fish
Felix Tjandrawibawa Stefan Schmidt
Gary Bernhardt Stephen Gelman
Henric Trotzig Steve Herrell
Ivan Ukhov Steven Moazami
Jakob Pfender Steven Stallion
Jeff Kreeftmeijer Sung Pae
Jerome Castaneda Thomas Pelletier
Joe Lencioni Todd Derr
KJ Tsanaktsidis Tom Spurling
Kevin Webster Ton van den Heuvel
Kien Nguyen Duc Victor Hugo Borja
Lucas de Vries Vlad Seghete
Expand All @@ -627,6 +626,7 @@ Other contributors that have submitted patches include, in alphabetical order:
Matthew Todd Yan Pritzker
Max Timkovich Zak Johnson
Mike Lundy xiaodezhang
Nadav Samet

This list produced with:

Expand Down
2 changes: 2 additions & 0 deletions lua/wincent/commandt/private/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ function Window:show()
end
local ps1 = self._prompt or '> '
vim.api.nvim_buf_set_name(self._main_buffer, self:description() .. ' (main)')
vim.api.nvim_set_option_value('modifiable', true, { buf = self._main_buffer })
vim.api.nvim_buf_set_option(self._main_buffer, 'buftype', self._buftype)
if self._buftype == 'prompt' then
vim.fn.prompt_setprompt(self._main_buffer, ps1)
Expand Down Expand Up @@ -335,6 +336,7 @@ function Window:show()
error('Window:show(): nvim_create_buf() failed')
end
vim.api.nvim_buf_set_name(self._title_buffer, self:description() .. ' (title)')
vim.api.nvim_set_option_value('modifiable', true, { buf = self._title_buffer })
vim.api.nvim_buf_set_option(self._title_buffer, 'filetype', 'CommandTTitle')
end
-- TODO: trim title if too wide
Expand Down

0 comments on commit b08e97b

Please sign in to comment.