summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 14:37:21 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 14:37:21 -0500
commitc91c49ab846603e332be8e6eacebcbbb0c45017d (patch)
tree4a6ab88f03afb20b767825a9db4ca26783e9f9a6 /ide-hover.c
parentfd866bf94487ee39cccdaea749407faa487fcee5 (diff)
clean some stuff up
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ide-hover.c b/ide-hover.c
index 254f56d..aed5dbd 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -67,7 +67,7 @@ void hover_process_lsp_response(Ted *ted, LSPResponse *response) {
char *p = hover->text + strlen(hover->text) - 1;
// remove trailing whitespace
// (rust-analyzer gives us trailing newlines for local variables)
- for (; p > hover->text && isspace(*p); --p)
+ for (; p > hover->text && strchr("\n \t", *p); --p)
*p = '\0';
}
}