Support UTF-8 with choose-buffer, from Kosuke ASAMI. Also make

buffer_sample bigger to let it trim at window right edge.
This commit is contained in:
nicm
2014-04-02 18:12:18 +00:00
parent 82f3e0e9e6
commit 252a7373d6
7 changed files with 70 additions and 21 deletions

View File

@ -55,7 +55,7 @@ cmd_list_buffers_exec(unused struct cmd *self, struct cmd_q *cmdq)
while ((pb = paste_walk_stack(&global_buffers, &idx)) != NULL) {
ft = format_create();
format_add(ft, "line", "%u", idx - 1);
format_paste_buffer(ft, pb);
format_paste_buffer(ft, pb, 0);
line = format_expand(ft, template);
cmdq_print(cmdq, "%s", line);