Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Show 'position/size' in the editor statusbar #234

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion forth_src/v.fs
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@ linelen dup if 1- then min
curx c! then cursor-scr-pos
dup @ $80 or swap c!

\ show position
$7e8 >r
eof @ bufstart - 1- 0 <# #s #>
r> over - dup >r swap move
r> 1- '/' over c! >r
editpos bufstart - 0 <# #s #>
r> over - swap move

key

\ hide cursor
Expand All @@ -479,7 +487,8 @@ dup $88 = if 2drop cleanup rom-kernal
bufstart eof @ bufstart - 1-
evaluate quit then

insert if do-insert else do-main if
insert if do-insert else
$7dd 11 bl fill do-main if
drop rom-kernal cleanup exit then then

need-refresh if show-page else
Expand Down