ehuss / Sublime-Wrap-Plus

Enhanced "wrap lines" command for Sublime Text 2 or 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad wrapping behavior on version 2012.10.29

cabello opened this issue · comments

I have this piece of code:

  /**
     * UploadQueue is a "mediator" without a view, the component is
     * responsible to upload a file using a XHR POST request and it's
     * generic enough to probably meet your needs to upload file to
     * something that is not an album.
     */
    var Mediator = function () {
        EventTarget.call(this)

I got this wrapped text using the old version of Wrap plugin, 😄, but after the update when I run the wrap on this piece of text, that's the final result:

            /**          * UploadQueue is a "mediator" without a view, the
component is          * responsible to upload a file using a XHR POST request
and it's          * generic enough to probably meet your needs to upload file
to          * something that is not an album.          */         var Mediator
= function () {             EventTarget.call(this);

Maybe some commit broke this?

Hm, I can't reproduce that. I assume this is with JavaScript syntax. What kind of wrap, indentation, line ending settings do you have? What platform are you on?

Also, that looks like the exact behavior you would get with the stock wrap-lines command. Use "sublime.log_commands(1)" in the console to verify that the wrap_lines_plus command is being run. If it's not, make sure the plugin is installed correctly (check the sublime-keymap files, uninstall/reinstall if necessary).

I removed the current wrap plus installation, and reinstalled it, and everything is working now, probably was some problem during the update. Thank you for the fast reply and sorry for my late one.