index : yed
VimLike Text Editor in Rust
about summary refs log tree commit diff
author y2w8 <yousefalharby416@gmail.com> 2025-11-19 08:40:08 +0300
committer y2w8 <yousefalharby416@gmail.com> 2025-11-19 08:40:08 +0300
commit 895b12de66ee2b09561eabf3481a1d0a9bb3cbf3 [patch]
tree 995f5e6c9f9e3cff5f1cb3df7502747456368b0c
parent 5bd0ae59cbe05b132402939c8e19b8796727fb6e
download 895b12de66ee2b09561eabf3481a1d0a9bb3cbf3.tar.gz

fix: warnings

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);