Skip to content

Commit

Permalink
simplified del-word
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotlinski committed Jun 24, 2015
1 parent acd1a7e commit 65309af
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions forth_src/vi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -379,16 +379,11 @@ force-cur-right else cur-right then ;
;

: del-word
line-dirty!
begin
editpos c@ 20 = if
del-char exit
then
editpos c@ d = if exit then
editpos c@ 0 = if exit then
del-char
again
;
line-dirty!
begin
editpos c@ eol= if exit then
editpos c@ del-char space= if exit then
again ;

28 allot value clipboard
variable clipboard-count
Expand Down

0 comments on commit 65309af

Please sign in to comment.