-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On June 4, 2014 6:44:34 PM GMT+03:00, "Павлов Николай Александрович" <[email protected]> wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA512 > > > >On June 4, 2014 3:48:42 PM GMT+03:00, Ingo Karkat ><[email protected]> wrote: >>On 04-Jun-2014 13:34 +0200, Axel Bender wrote: >> >>> I'd already be happy if virtcol() would take into account the length >>of the showbreak string. I'm otherwise prepared to work with UTF-8 >>characters... >> >>Character widths are not directly related to this, but that little >>incorrectness in your otherwise precise and welcome bug report >>shouldn't >>have provoked such a rant. Sorry. >> >>> I consider this a flaw (well maybe a bug?) that should be fixed. >> >>I can reproduce this issue with 7.4.264. Even worse, :set linebreak >>also >>affects the virtcol() value and makes it wrong (when such wrap >occurs). >>So, one only gets correct values out of virtcol() with :set sbr= >nolbr; >>which indeed should be fixed! > >I am not sure it is a bug. Most likely it is absolutely correct >behavior: pretend you need to know on which virtual line of the current >line cursor is located and on which virtual column on this virtual >line. Please describe how you will solve this with current behavior of >virtcol() and with proposed one. > >Discussing whether this behavior is a bug or not is pointless without >showing the use-case. I know that the above task may only be solved >with "bugged" virtcol(), otherwise you will have to do option parsing >for yourself which is a waste of time. I have a use-case: if you need to move to some character you usually use bar motion and bar motion ignores additional characters from &showbreak. Thus I would suggest to patch bar motion to also take breaks into account like virtcol() does. > >I though think that virtcol() behavior is not a bug, but documentation >is incorrect (it says "the last screen position occupied by the >character at that position, when the screen would be of **unlimited >width**" which obviously contradicts with the current behavior: no >wraps are possible on the screen with unlimited width hence these >options may not apply). > >> >>-- regards, ingo >-----BEGIN PGP SIGNATURE----- >Version: APG v1.1.1 > >iQI1BAEBCgAfBQJTjzDRGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj >HhHSvg4uEAClhxgkmHRrWOvApOa70j8Zzw560RRQA6xRspJWg9UiyOEEsc2e+7O1 >3gMy2HBr3kdPz7dwtWpe3azoDPvvIQe2+cznn1HPuq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D4ZlXapZTwo3hbgvl7NnZfshtr Gpl/Vm7CLtXbt3EqeRw63oKXpbyEuh1pgpBKB43bZ29IcIuyIaihSp/ajxksQE+z ozZCpYPc+BbbYxFK5mJCg7eAucwU5hQP8OHdGIJh9Qbx2EDqrhEO84eMdo2e41oq NKgnOdFfO+xSdH/kfc4agsy56vtkMuynn1jtT/GbkKmWz4HikPFLnoHVoYsEF57g OIK9kXYPrUzeeBzqs0xBIKsMZGaLfmoxbC7Rcg+3lXUSw2JyhalXufgTTP2RVbJR kPx7DVv0iVVpigw0Xqsw1e0Px64FjJopZwibP0xEGJ+FxHSVAtgt7w== =Mj64 -----END PGP SIGNATURE----- -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
