GithubHelp home page GithubHelp logo

rust-text-editor's People

Contributors

ahmednr123 avatar

Watchers

 avatar  avatar

rust-text-editor's Issues

log.txt shouldn't be there in the repo

The log.txt file needs to manually created for the application to work, as I was too lazy to handle this in code.. oopsie..
Also I have already commited the log.txt file, either fix this issue or dont commit the log.txt changes, lets see how far we can go without solving this issue. ;)

Backspace moves the cursor to start of the line

When the line_offset is more than 0 and the cursor is in the last line of the editor window, on pressing backspace from the 0th index of that last line, the cursor moves to 0th index of the above line.

Cursor Position (line_offset > 0 and last line 0th index):
Screenshot from 2024-03-18 17-25-49
On backspace:
Screenshot from 2024-03-18 17-26-00

Expected result:
The cursor with the remaining characters should move to the end of the previous line. You can see this expected result if line_offset is set to 0.

Weird cursor placement on window resize

The issue only occurs when the curosr would go beyond the terminal window after resize.

Original position:
Screenshot from 2024-03-18 17-18-26
Position after resize:
Screenshot from 2024-03-18 17-22-32

Expected result:
The cursor should not move from its index but the line_offset must be updated so the line where the cursor is supposed to be, comes into view.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.