Skip to content

Commit

Permalink
build(deps): require libvterm version 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptomilk committed Sep 28, 2022
1 parent e6c2140 commit 6917a2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -502,7 +502,7 @@ if(FEAT_TUI)
include_directories(SYSTEM ${LIBTERMKEY_INCLUDE_DIRS})
endif()

find_package(LIBVTERM 0.1 REQUIRED)
find_package(LIBVTERM 0.3 REQUIRED)
include_directories(SYSTEM ${LIBVTERM_INCLUDE_DIRS})

option(CLANG_ASAN_UBSAN "Enable Clang address & undefined behavior sanitizer for nvim binary." OFF)
Expand Down
4 changes: 0 additions & 4 deletions src/nvim/terminal.c
Expand Up @@ -908,7 +908,6 @@ static int term_settermprop(VTermProp prop, VTermValue *val, void *data)

case VTERM_PROP_TITLE: {
buf_T *buf = handle_get_buffer(term->buf_handle);
#if VTERM_VERSION_MAJOR > 0 || (VTERM_VERSION_MAJOR == 0 && VTERM_VERSION_MINOR >= 2)
VTermStringFragment frag = val->string;

if (frag.initial && frag.final) {
Expand All @@ -933,9 +932,6 @@ static int term_settermprop(VTermProp prop, VTermValue *val, void *data)
xfree(term->title);
term->title = NULL;
}
#else
buf_set_term_title(buf, val->string, strlen(val->string));
#endif
break;
}

Expand Down

0 comments on commit 6917a2e

Please sign in to comment.