lfilho / dotfiles

NeoVim + git + zsh + tmux bliss
BSD 2-Clause "Simplified" License
24 stars 6 forks source link

Weird cursor respositioning after completion fail #16

Closed edygar closed 7 years ago

edygar commented 7 years ago

When tab is pressed and no matches are found, cursor goes to wrong line.

captura de tela 2017-05-30 as 13 59 58

lfilho commented 7 years ago

This doesn't happen in my install. Probably is due the auto-suggestions module you have turned on? Could you test disabling it, reloading your terminal and trying again?

lfilho commented 7 years ago

image

edygar commented 7 years ago

I've tried, it isn't related, this cursor still goes to the previous line, at the right column.

Note: I've tried with master version

lfilho commented 7 years ago

Are you sure you didn't have the auto-suggestions module enabled / loaded? Try forcing its unload, quitting iTerm and opening it again.

Again, it works for me (master branch). After typing qwerty and tab, the cursor stays after y.

lfilho commented 7 years ago

And I never had the problem before (and I'm using tab all the time of course). So I'm pretty sure it must be something on your end 😇

edygar commented 7 years ago

It kind of was… kind of … https://github.com/sorin-ionescu/prezto/issues/1245

lfilho commented 7 years ago

Haha what do you mean kind of?? :-D So is it working now? Have you upgraded or downgraded your zsh? Mine is 5.3.1 and it is working fine.

Thanks for investigating it.

edygar commented 7 years ago

I said it was kind of on my side. It happened because I already had a zsh installed and it was behind a few versions. I think we could point --HEAD at brewfile for zsh, almost sure Mac includes a lower version.

lfilho commented 7 years ago

I think --HEAD is dangerous as it may included unstable code. I think the problem was that you didn't run brew update in a while...

edygar commented 7 years ago

I've just clean installed my OS X, so I thought didn't need to. But I agree, too dangerous.