oh-my-fish / plugin-sudope

sudope plugin for Oh-My-Fish. Quickly put 'sudo' in your command
ISC License
32 stars 10 forks source link

Errors when cursor is on line below the command #3

Closed Strum355 closed 6 years ago

Strum355 commented 6 years ago

When copy-pasting commands from websites, they often have a trailing newline. When i press ctrl+s to add sudo, i get test: unexpected argument at index 2: ''

 ~  omf install something
     test: unexpected argument at index 2: ''

fish version: 2.6.0

oranja commented 6 years ago

Hi @Strum355, Sorry for the complete silence. I was travelling abroad but I'm back now and this error should be gone now. Let me know how it works for you.

Strum355 commented 6 years ago

That seems to have fixed it for me :+1: thanks a mil, and thanks for making this plugin!