index : yed
VimLike Text Editor in Rust
about summary refs log tree commit diff

Diffstat

-rw-r--r-- src/editor.rs 4
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/editor.rs b/src/editor.rs
index 49aadef..613c625 100644
--- a/src/editor.rs
+++ b/src/editor.rs
@@ -1,7 +1,7 @@
use std::io::{Write, stdout};

use anyhow::Ok;
use crossterm::{ExecutableCommand, QueueableCommand, cursor, event::{self, read}, style::{self, Color, Stylize, style}, terminal};
use crossterm::{ExecutableCommand, QueueableCommand, cursor, event::{self, read}, style::{self, Color, Stylize}, terminal};

enum Action {
    Quit,
@@ -64,7 +64,7 @@
    }

    pub fn draw_statuline(&mut self) -> anyhow::Result<()> {
        let (bg, fg) = ("#fff", "#000");
        // let (bg, fg) = ("#fff", "#000");
        let mode = format!(" {:?} ", self.mode).to_uppercase();
        let file = " src/main.rs ";
        let pos = format!(" {}:{} ", self.cy, self.cx);