Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
liner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AdminXVII
liner
Commits
8a760ac0
Commit
8a760ac0
authored
Jun 21, 2019
by
AdminXVII
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests too
parent
af7084b4
Pipeline
#4811
passed with stage
in 2 minutes and 57 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
src/keymap/emacs.rs
src/keymap/emacs.rs
+1
-4
src/keymap/mod.rs
src/keymap/mod.rs
+1
-1
src/keymap/vi.rs
src/keymap/vi.rs
+1
-5
No files found.
src/keymap/emacs.rs
View file @
8a760ac0
...
...
@@ -171,12 +171,9 @@ fn emacs_move_word<W: Write>(ed: &mut Editor<W>, direction: EmacsMoveDir) -> io:
#[cfg(test)]
mod
tests
{
use
super
::
*
;
use
crate
::{
Completer
,
Context
,
Editor
,
KeyMap
};
use
std
::
io
::
Write
;
use
termion
::
event
::
Key
;
use
Completer
;
use
Context
;
use
Editor
;
use
KeyMap
;
fn
simulate_keys
<
'a
,
'b
,
W
:
Write
,
M
:
KeyMap
,
I
>
(
keymap
:
&
mut
M
,
...
...
src/keymap/mod.rs
View file @
8a760ac0
...
...
@@ -82,9 +82,9 @@ pub use emacs::Emacs;
#[cfg(test)]
mod
tests
{
use
super
::
*
;
use
crate
::
Context
;
use
std
::
io
::
ErrorKind
;
use
termion
::
event
::
Key
::
*
;
use
Context
;
#[derive(Default)]
struct
TestKeyMap
;
...
...
src/keymap/vi.rs
View file @
8a760ac0
...
...
@@ -1060,14 +1060,10 @@ impl KeyMap for Vi {
#[cfg(test)]
mod
tests
{
use
super
::
*
;
use
crate
::{
Buffer
,
Completer
,
Context
,
Editor
,
KeyMap
};
use
std
::
io
::
Write
;
use
termion
::
event
::
Key
;
use
termion
::
event
::
Key
::
*
;
use
Buffer
;
use
Completer
;
use
Context
;
use
Editor
;
use
KeyMap
;
fn
simulate_keys
<
'a
,
'b
,
W
:
Write
,
M
:
KeyMap
,
I
>
(
keymap
:
&
mut
M
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment