mc/lib/edit.spell.rc
Pavel Roskin 36b103997c * lib/edit.spell.rc: New file. Invoke ispell on Ctrl-p in the editor.
* lib/Makefile.am: Add lib/edit.spell.rc.
2001-07-31 22:13:55 +00:00

15 lines
273 B
Bash

#!/bin/sh
# *** External Spell Checker for Cooledit.
# arguments:
# $1 - edit file name
# $2 - highlight block file name
# $3 - error file name
# The editor doesn't save stty. Save it manually.
stty_save=`stty -g`
reset
clear
ispell $2 2>$3
clear
stty $stty_save