* Gurran <[email protected]> [230126 07:44]:
> ### Steps to reproduce
> 
> In normal mode decrement (`Ctrl-X`) the following number
> `000000000`
> it returns 
> `01777777777777777777777`
> 
> ### Expected behaviour
> 
> The result should preserve the length of the number and result in
> `017777777` 

I'm not sure the current behavior is wrong.  Octal numbers are treated
as unsigned, and 64-bit arithmetic is being used.

The help says "Vim preserves the number of characters in the number when
possible."  Note that if you use Ctrl-A on 077 you get 0100.  The result
of Ctrl-X on 0000 is (2*64)-1, which requires more digits to represent.

Bram should determine what he intended here, and what makes most sense,
but I think the current behavior makes more sense and obeys the docs.

...Marvin

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/Y9KZAf9Axytr7ZGZ%40basil.wdw.

Raspunde prin e-mail lui