| 1 | package Vim::X::Cursor; | ||
| 2 | BEGIN { | ||
| 3 | 4 | ▶ | $Vim::X::Cursor::AUTHORITY = 'cpan:YANICK'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | } | ||
| 5 | # ABSTRACT: A window cursor in Vim | ||
| 6 | 4 | $Vim::X::Cursor::VERSION = '1.1.0'; | |
| 7 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 4 | ▶ | use Vim::X; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 4 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 4 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | |||
| 16 | 4 | has window => ( | |
| 17 | is => 'ro', | ||
| 18 | required => 1, | ||
| 19 | ); | ||
| 20 | |||
| 21 | 4 | has line => ( is => 'ro', required => 1 ); | |
| 22 | 4 | has col => ( is => 'ro', required => 1 ); | |
| 23 | |||
| 24 | sub append { | ||
| 25 | 0 | ▶ | my( $self, $stuff ) = @_; |
|
Subroutine
append: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 26 | |||
| 27 | 0 | my $line = $self->line; | |
| 28 | 0 | my $content = $line->content; | |
| 29 | 0 | substr( $content, $self->col + 1, 0 ) = $stuff; | |
| 30 | 0 | $line->content($content); | |
| 31 | } | ||
| 32 | |||
| 33 | 4 | 1; | |
| 34 | |||
| 35 | __END__ | ||