evil icon indicating copy to clipboard operation
evil copied to clipboard

C-x C-; in evil-visual-line affects one too many lines

Open Atemu opened this issue 4 years ago • 0 comments

Issue type

  • Bug report

Environment

Emacs version: 26.3 (https://github.com/NixOS/nixpkgs/commit/b50ef9afa11b384c72f7123ca4760ebc6d199fe8) Operating System: NixOS (https://github.com/Atemu/nixos-config/commit/e024b6ffc1ccaa7b2bb315ce94e4b10fa5b38f05) Evil version: evil-git-015303a70 Evil installation type: MELPA Graphical/Terminal: Graphical Tested in a make emacs session (see CONTRIBUTING.md): No

(I was able to reproduce it using

nix-shell -E '{ pkgs ? import <nixpkgs> {} }:
with pkgs; mkShell {
  buildInputs = [ (emacsWithPackages [ emacsPackages.evil ]) ];
}' --run 'HOME=/var/empty emacs'

though which should be effectively the same. (evil 1.14))

Reproduction steps

  • Start Emacs
  • Have n + 2 lines of text in a writable buffer
  • Select the first n lines in evil-visual-line
  • C-x C-;

Expected behavior

It should comment/uncomment n lines

Actual behavior

It comments/uncomments n + 1 lines

Further notes

Atemu avatar Aug 09 '20 14:08 Atemu