summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/__git.lua
diff options
context:
space:
mode:
authorReed Koser <srkoser+GitHub@gmail.com>2022-06-30 03:09:36 -0700
committerGitHub <noreply@github.com>2022-06-30 12:09:36 +0200
commitb98b9a93c67cb999493ccdc602e711c8a7a98d64 (patch)
tree619d4051e4797e026558414d87e798119c0c2d16 /lua/telescope/builtin/__git.lua
parentd88b44ddf14670cffa9fdb1eaca7a0429a973653 (diff)
fix: grep_string crashes when string has newline (#2026)
Fixes the crash below by sanitizing the title to not include the linebreak (replacing it by a "\n" string) stack traceback: [C]: in function 'nvim_buf_set_lines' .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:222: in function '__align_calc_config' .../nvim/plugged/plenary.nvim/lua/plenary/window/border.lua:266: in function 'new' ...are/nvim/plugged/plenary.nvim/lua/plenary/popup/init.lua:384: in function 'create' ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:326: in function '_create_window' ...re/nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:399: in function 'find' ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:151: in function 'v' ...m/plugged/telescope.nvim/lua/telescope/builtin/files.lua:475: in function 'v' ...im/plugged/telescope.nvim/lua/telescope/builtin/init.lua:487: in function 'grep_string' Fixes #2023
Diffstat (limited to 'lua/telescope/builtin/__git.lua')
0 files changed, 0 insertions, 0 deletions