Skip to content

Instantly share code, notes, and snippets.

View justinmk's full-sized avatar
💦

Justin M. Keyes justinmk

💦
View GitHub Profile
Failed: F /tests/oldtests|test_cmdline :: Nvim exited with non-zero code
-tests-oldtests-test-cmdline
=================================================================
==25404==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 48 byte(s) in 1 object(s) allocated from:
#0 0x4c5e63 in malloc /tmp/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:146:3
#1 0x1118dd4 in try_malloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:71:15
#2 0x1118f9c in xmalloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:105:15
#3 0xcd7db1 in throw_exception /home/travis/build/neovim/neovim/build/../src/nvim/ex_eval.c:467:10
#4 0xcd7727 in do_errthrow /home/travis/build/neovim/neovim/build/../src/nvim/ex_eval.c:326:7
==22964==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000004490 at pc 0x0000007e96fc bp 0x7ffec5b02a30 sp 0x7ffec5b02a28
READ of size 8 at 0x60d000004490 thread T0
#0 0x7e96fb in ex_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2566:9
#1 0x7e61c6 in nv_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2415:3
#2 0x1249049 in nv_put /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:7829:7
#3 0x122102b in normal_execute /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:1137:3
#4 0x121737e in normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:8047:9
#5 0xc6aed8 in exec_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8288:5
#6 0xc6abdb in exec_normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8271:3
#7 0xca903b in ex_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8181:7
@justinmk
justinmk / macos-open-in-nvim.md
Last active November 5, 2023 20:20
macOS Automator script to open files in nvim from Finder
@justinmk
justinmk / tui.c.patch
Created May 20, 2018 19:01
tui.c Windows console patch
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c
index 65957626cbc9..86987a56ad07 100644
--- a/src/nvim/tui/tui.c
+++ b/src/nvim/tui/tui.c
@@ -1834,6 +1834,8 @@ static const char *tui_tk_ti_getstr(const char *name, const char *value,
// for mouse input, which by accident only supports X10 protocol.
// Force libtermkey to fallback to its CSI driver (driver-csi.c). #7948
return NULL;
+ } else if (strequal(name, "key_home")) {
+ return "\x1b[1~";
/*
* Catch v1.10.0
* Generated: 2017-08-26 15:16:46.676990
* ----------------------------------------------------------
* This file has been merged from multiple headers. Please don't edit it directly
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
{'nvim_feedkeys': {'data': {'_TYPE': [], '_VAL': ['&handle_nvim_feedkeys']},
'func': {'_TYPE': [], '_VAL': ['api_wrapper']}, 'args': 3}, 'mkdir': {'args':
[1, 3]}, 'getcompletion': {'args': [2, 3]}, 'jobstop': {'args': 1},
'nvim_buf_set_lines': {'data': {'_TYPE': [], '_VAL':
['&handle_nvim_buf_set_lines']}, 'func': {'_TYPE': [], '_VAL':
['api_wrapper']}, 'args': 5}, 'assert_notmatch': {'args': [2, 3]},
'nvim_win_is_valid': {'data': {'_TYPE': [], '_VAL':
['&handle_nvim_win_is_valid']}, 'func': {'_TYPE': [], '_VAL':
['api_wrapper']}, 'args': 1}, 'empty': {'args': 1}, 'getftype': {'args': 1},
'nvim_list_tabpages': {'data': {'_TYPE': [], '_VAL':
{'types': {'Window': {'id': 1, 'prefix': {'_TYPE': [], '_VAL':
['nvim_win_']}}, 'Tabpage': {'id': 2, 'prefix': {'_TYPE': [], '_VAL':
['nvim_tabpage_']}}, 'Buffer': {'id': 0, 'prefix': {'_TYPE': [], '_VAL':
['nvim_buf_']}}}, 'functions': [{'method': v:true, 'name': {'_TYPE': [],
'_VAL': ['nvim_buf_line_count']}, 'return_type': {'_TYPE': [], '_VAL':
['Integer']}, 'parameters': [[{'_TYPE': [], '_VAL': ['Buffer']}, {'_TYPE':
[], '_VAL': ['buffer']}]], 'since': 1}, {'method': v:false,
'deprecated_since': 1, 'name': {'_TYPE': [], '_VAL': ['buffer_get_line']},
'return_type': {'_TYPE': [], '_VAL': ['String']}, 'parameters': [[{'_TYPE':
[], '_VAL': ['Buffer']}, {'_TYPE': [], '_VAL': ['buffer']}], [{'_TYPE': [],
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Reading data from 'callgrind.out.31506'...
--------------------------------------------------------------------------------
Profile data file 'callgrind.out.31506' (creator: callgrind-3.10.1)
--------------------------------------------------------------------------------
I1 cache:
D1 cache:
LL cache:
Timerange: Basic block 0 - 15885896
Trigger: Program termination
Profiled target: build/bin/nvim -n -u NONE -i NONE +:e ~/.local/share/nvim/bundle/vim-sexp/plugin/sexp.vim +so % (PID 31506, part 1)
@justinmk
justinmk / callgrind-c60e409
Last active April 13, 2017 12:15
nvim callgrind c60e409 (#5119)
Reading data from 'callgrind.out.2458'...
--------------------------------------------------------------------------------
Profile data file 'callgrind.out.2458' (creator: callgrind-3.10.1)
--------------------------------------------------------------------------------
I1 cache:
D1 cache:
LL cache:
Timerange: Basic block 0 - 15854000
Trigger: Program termination
Profiled target: build/bin/nvim -n -u NONE -i NONE +:e ~/.local/share/nvim/bundle/vim-sexp/plugin/sexp.vim +so % (PID 2458, part 1)