Mercurial > vim
comparison src/normal.c @ 26258:a74c8936794a v8.2.3660
patch 8.2.3660: overflow check uses wrong number
Commit: https://github.com/vim/vim/commit/9b0e82f35ed4e98414333e71b71ca56219683d16
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 24 13:40:29 2021 +0000
patch 8.2.3660: overflow check uses wrong number
Problem: Overflow check uses wrong number.
Solution: Divide by ten.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Nov 2021 14:45:03 +0100 |
parents | 92fbed13ca4d |
children | 2fc13817b100 |
comparison
equal
deleted
inserted
replaced
26257:e3534fa157a0 | 26258:a74c8936794a |
---|---|
628 ca.count0 /= 10; | 628 ca.count0 /= 10; |
629 #ifdef FEAT_CMDL_INFO | 629 #ifdef FEAT_CMDL_INFO |
630 del_from_showcmd(4); // delete the digit and ~@% | 630 del_from_showcmd(4); // delete the digit and ~@% |
631 #endif | 631 #endif |
632 } | 632 } |
633 else if (ca.count0 >= 999999999L) | 633 else if (ca.count0 > 99999999L) |
634 { | 634 { |
635 ca.count0 = 999999999L; | 635 ca.count0 = 999999999L; |
636 } | 636 } |
637 else | 637 else |
638 { | 638 { |