aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJason Cox <dev@jasoncarloscox.com>2021-08-31 20:16:03 -0600
committerJason Cox <dev@jasoncarloscox.com>2021-09-02 13:07:29 -0600
commit85ba41a4b343d0a8fe6d3d5af90a74640220f5cb (patch)
tree9dc771a9bb0b9f845ea9c03c6622265cf8f1e1d4 /src/nvim/option.c
parent284199bc4bf36bb74c481da9c8b2a43c1bbbeb51 (diff)
downloadrneovim-85ba41a4b343d0a8fe6d3d5af90a74640220f5cb.tar.gz
rneovim-85ba41a4b343d0a8fe6d3d5af90a74640220f5cb.tar.bz2
rneovim-85ba41a4b343d0a8fe6d3d5af90a74640220f5cb.zip
vim-patch:8.2.3385: escaping for fish shell does not work properly
Problem: Escaping for fish shell does not work properly. Solution: Insert a backslash before a backslash. (Jason Cox, closes vim/vim#8810) https://github.com/vim/vim/commit/6e82351130ddb8d13cf3748b47f07cae77886fc7
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index d11bbc8ecc..fbf19ab9ff 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -7618,6 +7618,12 @@ int csh_like_shell(void)
return strstr((char *)path_tail(p_sh), "csh") != NULL;
}
+/// Return true when 'shell' has "fish" in the tail.
+bool fish_like_shell(void)
+{
+ return strstr((char *)path_tail(p_sh), "fish") != NULL;
+}
+
/// Return the number of requested sign columns, based on current
/// buffer signs and on user configuration.
int win_signcol_count(win_T *wp)