We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e346c77 commit 3deb1fbCopy full SHA for 3deb1fb
autoload/lsp/utils.vim
@@ -164,14 +164,19 @@ endfunction
164
165
function! lsp#utils#echo_with_truncation(msg) abort
166
let l:msg = a:msg
167
- let l:winwidth = winwidth(0)
168
169
- if &showcmd
170
- let l:winwidth -= 11
+ if &laststatus == 0 || (&laststatus == 1 && tabpagewinnr(tabpagenr(), '$') == 1)
+ let l:winwidth = winwidth(0)
+
171
+ if &ruler
172
+ let l:winwidth -= 18
173
+ endif
174
+ else
175
+ let l:winwidth = &columns
176
endif
177
- if &laststatus != 2 && &ruler
- let l:winwidth -= 18
178
+ if &showcmd
179
+ let l:winwidth -= 11
180
181
182
if l:winwidth > 5 && l:winwidth < strdisplaywidth(l:msg)
0 commit comments