Remove manual width calculation and handle horizontal scroll

This commit is contained in:
Jacob Niehus
2014-10-20 15:50:44 -07:00
parent 048b9dc286
commit e1a49790cb
2 changed files with 7 additions and 6 deletions

View File

@@ -341,7 +341,8 @@ def cmdline_call_signatures(signatures):
if max_num_spaces < 0:
return # No room for the message
_, column = signatures[0].bracket_start
num_spaces = min(int(vim_eval('g:jedi#first_col')) +
num_spaces = min(int(vim_eval('g:jedi#first_col +'
'wincol() - col(".")')) +
column - len(signatures[0].call_name),
max_num_spaces)
spaces = ' ' * num_spaces